LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|