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
➜ 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 (23,165 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.
17,723 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top