Triggers doing multiple responses

Posted by Nephro on Sun 29 Oct 2006 04:07 AM — 3 posts, 15,949 views.

#0
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
USA #1
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
#2
thanks! that is exaclty what I needed. I forgot to capitolize the Send on world.Send I think