Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
 Entire forum ➜ MUSHclient ➜ General ➜ How to put a kill switch into a trigger so I can enable and disable it quickly.

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

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


Posted by Ivellios   (1 post)  Bio
Date Tue 13 Apr 2010 02:05 AM (UTC)
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.
Top

Posted by Daniel P   USA  (97 posts)  Bio
Date Reply #1 on Fri 30 Apr 2010 01:03 AM (UTC)
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
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.


10,318 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.