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
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Mar 18, 2002 6:31 pm   

Speedwalking problem
 
I suspect the answer is "no, there isn't any easy way of solving this."

As for difficult ways:
You'll need a status variable to indicate whether you are walking, riding, or flying. You'll need another status variable to indicate whether you are indoors or outdoors. You may also want a counter variable to track how many times you went north. Then you'll need an alias for the "n" command which examines the two status variables and decides how many "n's" are actually needed and issues the appropriate number along with the #NODIR commands necessary to keep the mapper from going further north than it should. Something like:
#AL n {#IF (@location = "outdoors") {#IF (@mode = "walking") {~n;#NODIR;~n;#NODIR;~n} {#IF (@mode = "riding") {~n;#NODIR;~n} {~n}}} {~n}}

Setting the status variables is left up to you. Also, I'm not sure how the mapper will treat ~n. It may ignore it, in which case you won't need the #NODIR's but you will need a #MOVE north.

LightBulb
All scripts untested unless otherwise noted
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