Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Capturing text
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Assassin
(73 posts) Bio
|
Date
| Sat 06 Mar 2004 12:23 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 07 Mar 2004 01:54 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Assassin
(73 posts) Bio
|
Date
| Reply #2 on Sun 07 Mar 2004 11:56 AM (UTC) Amended on Sun 07 Mar 2004 12:05 PM (UTC) by Assassin
|
Message
| Thanks for everyone's help in pointing me in the right
direction, over the last few months.
Much appreciated.
| Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,520 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top