[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Triggers doing multiple responses
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Triggers doing multiple responses

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Nephro   (2 posts)  [Biography] bio
Date Sun 29 Oct 2006 04:07 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Onoitsu2   USA  (246 posts)  [Biography] bio
Date Reply #1 on Sun 29 Oct 2006 04:27 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nephro   (2 posts)  [Biography] bio
Date Reply #2 on Sun 29 Oct 2006 04:40 AM (UTC)  quote  ]

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
[Go to top] 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.


1,678 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]