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 with multiline aliases -- how to get them to work.
Triggers with multiline aliases -- how to get them to work.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Databug
(3 posts) Bio
|
Date
| Tue 09 Jan 2007 12:04 PM (UTC) |
Message
| Looking how to enable or the syntax to allow multicommand causing aliases to set off triggers on beyond the first command.
Written example...
A one line command alias will set off triggers like..
<aliases>
<alias
match="nk"
enabled="y"
expand_variables="y"
send_to="10"
sequence="100"
>
<send>nightkiss @target</send>
</alias>
</aliases>
When the alias goes off, any trigger will be triggered by the nightkiss command. ALl works good here.
But if you add..
<aliases>
<alias
match="nk"
enabled="y"
expand_variables="y"
send_to="10"
sequence="100"
>
<send>nightkiss @target
nightkiss@ttwo
</send>
</alias>
</aliases>
While the first nightkiss will set off triggers, the second will not set any off. Is there an option to allow multi-lined aliases to set off triggers on all commands?
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 11 Jan 2007 03:38 AM (UTC) Amended on Thu 11 Jan 2007 03:39 AM (UTC) by Nick Gammon
|
Message
| I'm not sure what you mean by aliases "setting off" triggers.
Aliases do something in response to what you type, typically sending something to the MUD.
Triggers react to output from the MUD. There is no direct connection, however an alias may well do something that a trigger can later detect.
eg.
Send: eat food (an alias might do this)
(2 seconds pass)
Receive: You are no longer hungry. (a trigger might detect this)
Can you post the trigger you are using, to clarify what you mean? |
- 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.
9,140 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top