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.
 Entire forum ➜ MUSHclient ➜ Jscript ➜ Time trigger, I really don't know howto make it

Time trigger, I really don't know howto make it

Posting of new messages is disabled at present.

Refresh page


Posted by Reizar   (2 posts)  Bio
Date Wed 15 Aug 2007 11:24 AM (UTC)
Message
So I would need help with setting time trigger for my MUSHclient.

The deal would be to set trigger that pops after 4min and the clock would start from message "Backstabbed."

So if anyone can advice me howto make that kind of trigger I would be happy man :)

I hope this includes every information to make that kind of trigger :o
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #1 on Thu 16 Aug 2007 12:31 AM (UTC)
Message
Check out World.DoAfterNote()

You'd just have the trigger run a script to the effect:
World.DoAfterNote(240, "4 minutes have passed.")

Now if you want to send a command after 4 minutes you'd use:
World.DoAfter(240, "command")

There's also DoAfterSpecial(), you'd have to check out the help files on that one.

Top

Posted by Reizar   (2 posts)  Bio
Date Reply #2 on Thu 16 Aug 2007 04:20 PM (UTC)
Message
hmm, just one more question, where I can find this World.DoAfterNote? from my MUSHclient or from files out from that program?
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #3 on Thu 16 Aug 2007 05:02 PM (UTC)
Message
http://www.gammon.com.au/scripts/function.php?name=DoAfterNote

Up at the top of the MUSHclient forums page, there is a link for "script functions" and then another one on that page for "Alphabetic list of all script methods and properties." That link will take you to this list: http://www.gammon.com.au/scripts/function.php Which is probably the most important documentation for MUSHclient scripting.

It is much easier to fight for one's ideals than to live up to them.
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,773 views.

Posting of new messages is disabled at present.

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.