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
➜ Tips and tricks
➜ triggers & alias
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Rockeru66
(5 posts) Bio
|
| Date
| Tue 27 Jan 2004 06:07 PM (UTC) |
| Message
| hi all ya
i wanna know how i can make a trigger to fire an alias.
ex. when trigger mach on *sanctify* i wanna start an alias room which contains : bless room, sanctify, pray...
thanks | | Top |
|
| Posted by
| Ked
Russia (524 posts) Bio
|
| Date
| Reply #1 on Wed 28 Jan 2004 04:08 AM (UTC) |
| Message
|
<triggers>
<trigger
enabled="y"
match="*sanctify*"
send_to="12"
sequence="100"
other_text_colour="black"
other_back_colour="black"
>
<send>world.Execute "room"</send>
</trigger>
</triggers>
You'll need to have scripting enabled for this to work and use vbScript as your scripting language.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Wed 28 Jan 2004 07:47 AM (UTC) |
| Message
| You can also simply put "room" in the "send" box, and change the "send to" box to "execute". Execute means to re-evaluate the sent text as a command, and thus aliases will be reprocessed.
This technique will work even if scripting is not active. |
- 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.
13,269 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top