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, 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 ➜ General ➜ Triggers

Triggers

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


Posted by Aduial   (19 posts)  Bio
Date Fri 03 Sep 2004 03:03 AM (UTC)
Message
I was wondering if a trigger can be made so that it turns itself off after it has been triggered once.

Thanks
Ad
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Fri 03 Sep 2004 07:11 AM (UTC)
Message
Do you want it to go away? Or just turn itself off?

If you dont mind it going away, you can check the "temporary" box and itll fire, then go away.

Otherwise, you'll have to give it a name (name box), change send to to "script", then put this in your "Send" box:
send "[whatever you want sent to the mud]"
enabletrigger "triggername", 0

Of course, youll need scripting enabled, and set to VBscript.

and that [whatever you want sent to the mud] is what you used to have in your send box (unless you werent sending to world in the first place).
So if you wanted to send, say "wake", you would have:
send "wake"
in the send box, as well as the enabletrigger line.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 05 Sep 2004 05:31 AM (UTC)
Message
Quote:

If you dont mind it going away, you can check the "temporary" box and itll fire, then go away.


No, that makes it not save to disk. You are thinking of one-shot timers.

Your other solution would work, have the trigger disable itself.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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,849 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.