Triggers with multiline aliases -- how to get them to work.

Posted by Databug on Tue 09 Jan 2007 12:04 PM — 2 posts, 11,793 views.

#0
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?
Australia Forum Administrator #1
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?