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
➜ Lua
➜ Sending something immediately after a trigger match
Sending something immediately after a trigger match
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Faedara
(106 posts) Bio
|
Date
| Mon 06 Dec 2010 04:44 PM (UTC) |
Message
| I have a script that fires off the prompt:
<triggers>
<trigger
enabled="y"
group="AutoSipperAlpha"
keep_evaluating="y"
match="^(\d*?)h\, (\d*?)m\, (\d*?)e\, (\d*?)w (.*?)\-$"
name="get_cur_hp"
regexp="y"
script="curing"
send_to="12"
sequence="100"
>
<send>cur_hp = %1</send>
</trigger>
</triggers>
However, this script needs to send certain things immediately after receiving the prompt. With SendImmediate and Send, MUSH still waits until the next line of text is entered or received to the output before sending anything.
In normal triggers this is no problem only because the prompt is the next text and is sent immediately, however with the prompt as the match this doesn't work. |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #1 on Mon 06 Dec 2010 04:49 PM (UTC) |
Message
| |
Posted by
| Faedara
(106 posts) Bio
|
Date
| Reply #2 on Mon 06 Dec 2010 05:43 PM (UTC) |
Message
| I jumped a little when that worked, thank you!
*happy bunny dance* |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | 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.
15,337 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top