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
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Wed Aug 25, 2004 10:59 pm   

overriding directions and still having the automapper update
 
I'm wanting to update a variable when i move a direction so I created an alias for each direction...

i.e. #ALIAS {n} {#SEND {n};i_went_north=1}

When i do this, it shuts off the automappers ability to detect directions... so if i type n at the prompt, the mapper doesnt funtion...

I know if i only put a #MOVE n statement in the alias it wont be sufficient, as room creation and error checking in movement wont be done...

Is there any way to add functionality to a direction that doesnt harm the automapper?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Aug 26, 2004 1:39 am   
 
Yeah, don't use #SEND. #SEND bypasses all parsing and local echo settings. The correct way to do your alias is
#ALIAS {n} {~n;i_went_north=1}

I would also recommend changing your variable naming to use a single variable storing the direction. If all your aliases look like this one then you are likely to have all you i_went_direction variables being set to 1 in very short order.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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