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
➜ Triggers doing multiple responses
Triggers doing multiple responses
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nephro
(2 posts) Bio
|
Date
| Sun 29 Oct 2006 04:07 AM (UTC) |
Message
| Okay I want my trigger to send a command, as well as add world notes. here is what I have
<triggers>
<trigger
custom_colour="11"
enabled="y"
match="^You remove a canvas backpack\.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>world.ColourNote('Orange', 'black', 'WARNING:')
world.ColourNote('Orange', 'black', 'Theft Attempt!')
</send>
</trigger>
</triggers>
I just don't know how to send something to the world. Also, is there a way to highlight a multi-line trigger? MC blocks the ways to do it in the windows itself. thanks | Top |
|
Posted by
| Onoitsu2
USA (248 posts) Bio
|
Date
| Reply #1 on Sun 29 Oct 2006 04:27 AM (UTC) |
Message
| You cannot hi-light multiline triggers, but you can split a multi line into a few single line ones, and this is what you are missing in the send section to send whatever command to the mud...
world.Send("WHATEVER COMMANDS HERE")
Hope that helps :)
Laterzzz,
Onoitsu2 | Top |
|
Posted by
| Nephro
(2 posts) Bio
|
Date
| Reply #2 on Sun 29 Oct 2006 04:40 AM (UTC) Amended on Sun 29 Oct 2006 04:41 AM (UTC) by Nephro
|
Message
| thanks! that is exaclty what I needed. I forgot to capitolize the Send on world.Send I think | 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.
12,423 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top