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 ➜ n00b at work

n00b at work

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


Posted by SuprAzn   (5 posts)  Bio
Date Thu 05 Feb 2004 07:46 AM (UTC)
Message
Need the wait command....you know..to make a trigger/alias wait for x seconds before executing the next command
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 05 Feb 2004 07:52 AM (UTC)
Message
You need "doafter". See this page:

http://www.gammon.com.au/scripts/doc.php?function=DoAfter

You need to make the trigger/alias "send to script" and in the "send" box type something like:

DoAfter 10, "eat food"

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by SuprAzn   (5 posts)  Bio
Date Reply #2 on Thu 05 Feb 2004 08:04 AM (UTC)
Message
alright....lets try this one ore time, cuz im dumb....

alias is: set

alias is set to do :
Channel earth
*insert wait command here*
channel fire
*insert wait command here*
channel water
*insert wait command here*
channel air
*insert wait command here*

the reason for the wait command is taht i have a "balance timer"...what command do i use to type set and have it do command 1, wait 3 seconds, do command 2, etc etc..

I appreciate the help
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Thu 05 Feb 2004 08:31 AM (UTC)
Message
channel water
DoAfter <delay timer>, "channel earth"
etc

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by SuprAzn   (5 posts)  Bio
Date Reply #4 on Thu 05 Feb 2004 08:35 AM (UTC)

Amended on Thu 05 Feb 2004 08:39 AM (UTC) by SuprAzn

Message
Error number: -2146828275
Event: Execution of line 1 column 1
Description: Type mismatch: 'channel'
Line in error:

Called by: Immediate execution


Help
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 06 Feb 2004 09:12 PM (UTC)
Message
Set the alias to "send to script". Then, in the send box do this:

Send "channel earth"
DoAfter 3, "channel fire"
DoAfter 6, "channel water"
DoAfter 9, "channel air"


The DoAfter sends a command after the specified number of seconds (from the script execution, not from each other) so in this case the commands are sent at 3-second intervals.

- 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.


22,055 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.