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
➜ Suggestions
➜ Using world.DoAfter
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| LindZ
(7 posts) Bio
|
Date
| Tue 12 Nov 2002 02:49 PM (UTC) |
Message
| Going to ask a really dumb question here. How exactly do i use the world.DoAfter function? Can I use it straight from the trigger or alias configuration or do I have to set up a script? If I have to set up a script how do I go about doing that and then how do I call on it using a trigger or alias? I realise this is pretty basic stuff but still trying to get to grips with MUSHclient.
LindZ | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 13 Nov 2002 02:52 AM (UTC) |
Message
| Things like world.DoAfter (in fact, world.anything) are designed to be used from scripts only.
Say you needed to cast a spell, but needed to wait a few seconds between each phase, you could make an alias that called a short script, like this:
sub CastSpell (name, line, wildcards)
world.send "prepare heal"
world.doafter 3, "cast heal"
world.doafter 5, "prepare calm"
world.doafter 8, "cast calm"
end sub
In each case the number if the number of seconds from now, so you are talking about doing "prepare heal" immediately, waiting 3 seconds, doing "cast heal", waiting 2 seconds, doing "prepare calm", waiting another 3 seconds and then "cast calm".
|
- 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,164 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top