Capturing text

Posted by Assassin on Sat 06 Mar 2004 12:23 PM — 3 posts, 14,910 views.

#0
I have a macro F9 its a spell called 'misplace'

When i press F9 and the spell works it causes the
other player to drop an item they are carrying.

The MUD output after F9 is :-

>distract
Your spell worked!

I want to create a trigger that when my spell worked
and only then, i do something.

I can do a trigger to capture 'Your spell worked!'
but that causes a problem when im casting other spells

I have tried to paste output from MUD but it doesnt like
line breaks.
Australia Forum Administrator #1
No, triggers don't match line breaks, and the reason why has been covered about 50 times.

In your case you might have a trigger that matches:

Your spell worked!

and

Your spell failed!

(or whatever it is).

Then the alias 'misplace' enables both triggers, so they only work after you type 'misplace'. Then when one matches you disable both of them again, and if the spell worked, do what you need to do.
#2
Thanks for everyone's help in pointing me in the right
direction, over the last few months.

Much appreciated.