Gammon Forum
Entire forum
MUSHclient
Lua
Brazier Trigger
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| This_Guy
(13 posts) bio
|
Date
| Thu 30 Dec 2010 07:21 PM (UTC) |
Message
| Sorry about having so many questions lately. This one is about using a skill when it is called in a ring.
this is an example trigger line:
(Ring): Mikhael says, "Brazier target now"
I need a trigger that will send to the world: Touch brazier @target, I can't seem to get it to work. Right now i have my send text set up like so:
ring member = "%1"
local target = %2
touch brazier @target
What do I need to change? | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #1 on Thu 30 Dec 2010 08:57 PM (UTC) |
Message
| Words need to be quoted, so this won't work:
Something like this should do it:
<triggers>
<trigger
custom_colour="3"
enabled="y"
match="(Ring): * says, "* target now""
send_to="12"
sequence="100"
>
<send>
target = "%2"
Send ("say Touch %2")
</send>
</trigger>
</triggers>
|
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| This_Guy
(13 posts) bio
|
Date
| Reply #2 on Fri 31 Dec 2010 09:18 PM (UTC) |
Message
| I didn't put a period before the quotation, what is the syntax for a period? | top |
|
Posted by
| Shou
USA (30 posts) bio
|
Date
| Reply #3 on Fri 31 Dec 2010 09:21 PM (UTC) Amended on Fri 31 Dec 2010 09:23 PM (UTC) by Shou
|
Message
| this one should work better (most of it done by Gammon)
<triggers>
<trigger
custom_colour="3"
enabled="y"
match="(Ring): * says, "Brazier * now.""
send_to="12"
sequence="100"
>
<send>
target = "%2"
Send ("Touch brazier %2")
</send>
</trigger>
</triggers>
|
My computer once beat me at chess, but it was no match for me at kickboxing. | top |
|
Posted by
| This_Guy
(13 posts) bio
|
Date
| Reply #4 on Fri 31 Dec 2010 09:54 PM (UTC) |
Message
| Thanks Shou, worked like a charm | 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,365 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.