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
➜ Which one is executed/called first by a trigger? SEND or SCRIPT?
|
Which one is executed/called first by a trigger? SEND or SCRIPT?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| VBMeireles
Brazil (47 posts) Bio
|
| Date
| Sat 26 Mar 2016 01:41 AM (UTC) |
| Message
| In my send field (the big box) I have the following:
In my script field (the small box below "label" and above "group") I have the following:
Which one is going to be executed first when the trigger fires? |
Vinícius | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 26 Mar 2016 06:16 AM (UTC) |
| Message
| |
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Sat 26 Mar 2016 06:20 AM (UTC) |
| Message
| I made a test trigger (you could have done that):
<triggers>
<trigger
enabled="y"
match="You do not have that item."
script="bar"
send_to="12"
sequence="100"
>
<send>print "foo"</send>
</trigger>
</triggers>
The function "bar" is:
function bar ()
print "bar"
end -- bar
Testing printed:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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,795 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top