|
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: 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? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|