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.
Entire forum
➜ MUSHclient
➜ General
➜ Multi-line Trigger not working
Multi-line Trigger not working
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Catthou
(5 posts) Bio
|
Date
| Wed 13 Jul 2005 06:49 AM (UTC) |
Message
| <triggers>
<trigger
enabled="y"
group="Multi Line"
lines_to_match="2"
keep_evaluating="y"
match="weave (.*)\nBut you are not holding Saidin\.\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>grasp^weave %1</send>
</trigger>
</triggers>
This is what I have going right now, but it doesn't work! I can't for the life of me figure it out. If I could, I would prefer that the entire first line be a wildcard, cuz sometimes is "Weave 1 portal 2", "weave 10 gateway 4" and sometimes its "p2", "p4", "g5" etc.
Help! | Top |
|
Posted by
| Nick Gammon
Australia (23,100 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 13 Jul 2005 07:38 AM (UTC) |
Message
| Can you copy and paste an example of the lines from the MUD that don't work? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #2 on Wed 13 Jul 2005 08:44 AM (UTC) |
Message
| Is the weave line stuff that you enter? |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Catthou
(5 posts) Bio
|
Date
| Reply #3 on Wed 13 Jul 2005 10:07 PM (UTC) |
Message
| weave 1 cure
But you are not holding Saidin.
I input "weave 1 cure" - the game gives me "But you are..."
So I end up with that two line combination, which is what I want my trigger to run off of. I want it to "grasp" and then re-weave the spell I ordered it to. (in this case, 1 cure).
One more thing: I enabled "ignore case", but it still doesn't work. | Top |
|
Posted by
| Larkin
(278 posts) Bio
|
Date
| Reply #4 on Thu 14 Jul 2005 12:31 PM (UTC) |
Message
| Flannel asked if the "weave" part was a command you entered because they are not caught by triggers. Commands are parsed via aliases, so you would have to come up with some combination of aliases and triggers to fully match on the lines you want. You could use variables to track what your command was and then have the trigger check to see if you were successful or should re-try the command. | Top |
|
Posted by
| Catthou
(5 posts) Bio
|
Date
| Reply #5 on Fri 15 Jul 2005 09:56 PM (UTC) |
Message
| "You could use variables to track what your command was and then have the trigger check to see if you were successful or should re-try the command."
Alright, can someone help me out with that? ^ ^ I'm entering unknown territory, but I would like to learn. Maybe showing me how to do this can be my first step. | 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.
19,174 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top