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
➜ General
➜ world.note in an alias?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Guest1
USA (256 posts) |
Date
| Fri 27 Sep 2002 05:58 PM (UTC) |
Message
| Is it possible to have an alias that sends a series of commands to the world (like running directions) and then does a world.note message once the running part is complete?
what I'm doing is a run from A to B and then want a world note to appear.
I have tried having the alias call a subroutine that has ALL the world sends for each direction I run in it, followed by a world note, but the world note appears before I complete the run, and this makes it a lot harder to edit the run if I need to as well.
I tried having the alias send the running directions and also call a subroutine that does the world.note, but unfortunately the world.note is again displayed before I start running, not after.
Is there any way around this to get the world note to appear once run is complete? Basically can you write a world.note into an alias that is already sending commands to world as well, without having to call a separate subroutine.
Hopefully it's just something basic I'm overlooking here.. | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #1 on Fri 27 Sep 2002 06:15 PM (UTC) |
Message
| the same question for speedwalk aliases.. can I put other actions in the alias after the the speedwalk - it does not appear so.. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #2 on Fri 27 Sep 2002 09:46 PM (UTC) |
Message
| I would suggest delaying the moves slightly, perhaps like this:
world.doafter 1, "east"
world.doafter 2, "north"
world.doafter 3, "west"
world.doafternote 4, "walking done!"
Also, look up function "DoAfterSpeedWalk".
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #3 on Fri 27 Sep 2002 11:24 PM (UTC) |
Message
| Thanks Nick.. yeah, either the way you suggested, or else I time the length of the run and then have the speedwalk alias also call a routine with
world.DoAfter 20 "scan"
world.DoAfterNote 21 "blah"
(makes it easier for me to edit the speedwalk part if needed when it's part of the alias) I never saw that command in the help files. cheers.
I'm guessing the
world.DoAfterSpeedWalk 10, "5e 4s w"
is effectively exactly the same thing, just a matter of deciding if I want the speedwalk directions as part of the alias or as part of the scripted subroutine.. right? (I use vbs btw).. and after the above command I'd continue with the world.send/world.note stuff?
What I had been doing was a standard (non speedwalk) alias sending to world
e
e
s
s
w
e
s
scan
tell cub message
where cub was one of the many creatures on the mud, and rather than a world note, i would then see the message "you tell cub blah" at the end of the run and it didn't matter that the cub heard it, except when someone had killed the cub, then all i saw at the end of the run was "that person does not exist" (or something like that), which was the problem.
| Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #4 on Fri 27 Sep 2002 11:45 PM (UTC) |
Message
| actually as an afterthought, here's a possible suggestion for future version releases:
Is it possible to have speedwalk aliases recognise a command in the send window when creating the speedwalk alias? such as
</speedwalk>
so a speedwalk alias would have in the send window
es2enw
</speedwalk>
scan
tell cub blah
so it would do the actions after the speedwalk?
| 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.
13,116 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top