[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  n00b at work

n00b at work

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


Posted by SuprAzn   (5 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,982 posts)  [Biography] 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
[Go to top] top

Posted by SuprAzn   (5 posts)  [Biography] 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
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] 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
[Go to top] top

Posted by SuprAzn   (5 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,982 posts)  [Biography] 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
[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.


15,082 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]