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
➜ VBscript
➜ Multi-line trigger sending to script
Multi-line trigger sending to script
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Madrox
(40 posts) Bio
|
Date
| Tue 17 Oct 2006 05:21 AM (UTC) |
Message
| What i'm trying to capture is this
Taking a step back, you lunge forward with a hooking cut across * left leg.
* parries the attack with a deft maneuver.
which will then make a variable plleg true and i won't add an int to the var lleg.
I also need the same with rleg. I've tried with regexperessions, but I think I need to start smaller with them. So any advice would be great! | Top |
|
Posted by
| Madrox
(40 posts) Bio
|
Date
| Reply #1 on Tue 17 Oct 2006 05:24 AM (UTC) |
Message
| Oh, the script will look something like this
dim plleg
dim lleg
world.getvariable ("plleg")
if plleg = ("y") then
world.note ("Feint QUICK!")
else
setvariable "lleg", CInt(getvariable("lleg"))+1
world.note ("Fired LLEG")
end if
But I just need to get that to match first | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #2 on Tue 17 Oct 2006 10:17 AM (UTC) |
Message
| This should work:
^Taking a step back, you lunge forward with a hooking cut across [A-Z][a-z]+\'s (left|right) (leg|arm)\.\n[A-Z][a-z]+ parries the attack with a deft maneuver\.\Z
This is for a multiline trigger, matching on two lines. It gives the side in wildcard 1 and the limb in wildcard 2, so you can set four different variables from one trigger. | 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.
14,437 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top