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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  n00b at work
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

n00b at work

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by SuprAzn   (5 posts)  [Biography] bio
Date Thu 05 Feb 2004 07:46 AM (UTC)  quote  ]
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  (19,188 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 05 Feb 2004 07:52 AM (UTC)  quote  ]
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)  quote  ]
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  (554 posts)  [Biography] bio
Date Reply #3 on Thu 05 Feb 2004 08:31 AM (UTC)  quote  ]
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)  quote  ]

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  (19,188 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Fri 06 Feb 2004 09:12 PM (UTC)  quote  ]
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.


1,697 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]