[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]  How to put a kill switch into a trigger so I can enable and disable it quickly.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to put a kill switch into a trigger so I can enable and disable it quickly.

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


Posted by Ivellios   (1 post)  [Biography] bio
Date Tue 13 Apr 2010 02:05 AM (UTC)  quote  ]
Message
I talked to a person but he only knows how to code it in cmud, this is the example he sent me.

#REGEX {^The lilting melody of a rousing song swells briefly around \w+$} {
#IF (@killswitch) {hum yoth @target @queue} {#SAY Revelation swell!}}

Basically the idea is that I can have an alias to switch the killswitch variable number. if it is one, I do yoth at my target, if it is 0, I echo something to the output to let me know revelation , this, "The lilting melody of a rousing song swells briefly around " ticked. I'm a real novice when it comes to this. I just got started with MUD's in general so I'm still stumbling along. If someone could help me out, and tell me what to do, because, I have no clue, I'd be very appreciative.
[Go to top] top

Posted by Daniel P   USA  (85 posts)  [Biography] bio
Date Reply #1 on Fri 30 Apr 2010 01:03 AM (UTC)  quote  ]
Message
This is probably a decent translation:


<trigger
 enabled="y"
 match="^The lilting melody of a rousing song swells briefly around \w+$"
 regexp="y"
 sequence="100"
 send_to="12"
 expand_variables="y"
>
<send>
  if GetVariable("killswitch") == "1" then
    Send("hum yoth @target @queue")
  else
    Send("say Revelation swell!")
  end -- if
</send>
</trigger>


Hope that helps.

-Daniel
[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,390 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]