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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Brazier Trigger

Brazier Trigger

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by This_Guy   (13 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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:


local target = %2



Something like this should do it:


<triggers>
  <trigger
   custom_colour="3"
   enabled="y"
   match="(Ring): * says, &quot;* target now&quot;"
   send_to="12"
   sequence="100"
  >
  <send>

target = "%2"

Send ("say Touch %2")

</send>
  </trigger>
</triggers>


Template:pasting 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
[Go to top] top

Posted by This_Guy   (13 posts)  [Biography] 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?
[Go to top] top

Posted by Shou   USA  (30 posts)  [Biography] 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, &quot;Brazier * now.&quot;"
   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.
[Go to top] top

Posted by This_Guy   (13 posts)  [Biography] bio
Date Reply #4 on Fri 31 Dec 2010 09:54 PM (UTC)
Message
Thanks Shou, worked like a charm
[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.


13,365 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]