Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Talmark
Novice


Joined: 22 Nov 2003
Posts: 34

PostPosted: Sat Dec 06, 2003 10:24 pm   

#WALK
 
I created a command input trigger that allows me to quickly type, "walk room", where room is the name or number of the room I wish to walk to, instead of typing the entire #WALK {room} -1. The trigger works great, except when I use it, the mapper no longer follows me like it would if I manually typed it out. The trigger looks like this:

#ONINPUT {^walk (*)} {#WALK {%1} -1}

It seems simple enough. Is there a way to make it send the direction commands to the mud AND the mapper at the same time, without manually typing the command?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Dec 07, 2003 6:32 am   
 
Perhaps an alias would work better (I didn't test)?
#AL walk {#WALK {%-1} 1}
Reply with quote
Talmark
Novice


Joined: 22 Nov 2003
Posts: 34

PostPosted: Sun Dec 07, 2003 8:07 am   
 
Thanks. This seems to work well, and allows me to walk to rooms with names that are more than one word:

#AL walk {#WALK {%-1} -1}

When I tried it, the mapper followed right along. The only difference between this and the one you posted being the last -1, which the docs say to use in order to tell zMUD to only check the current zone, since it's not so easy to move between zones on the mud.

Now I will have to give unique names to each room in a zone, though. Given the choice between two rooms names "Bank", for instance, #WALK seems to invariably choose the one that is the furthest away. Thanks again.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Dec 07, 2003 6:51 pm   
 
Oops, the 1 is a typo. It should have been -1. You can probably tell I don't use the #WALK command much.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net