world.note in an alias?

Posted by Guest1 on Fri 27 Sep 2002 05:58 PM — 5 posts, 18,257 views.

USA #0
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..
USA #1
the same question for speedwalk aliases.. can I put other actions in the alias after the the speedwalk - it does not appear so..
Australia Forum Administrator #2
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".
USA #3
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.
USA #4
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?