|
Moo Apprentice
Joined: 10 Apr 2009 Posts: 145
|
Posted: Thu Dec 31, 2009 12:01 am
Last direction? |
Is there a variable for the last direction you travelled?
If so, I couldn't find it in the help..
If not, why not? |
|
|
|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Thu Dec 31, 2009 1:01 am |
it's easy enough to script in, for directions, and most muds have a last command repeat functions. Pretty much mud specific, so without more info on your mud.
|
|
_________________ Win7-home - Cmud 3.33a
WinXP-pro - Zmud 7.21 |
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Thu Dec 31, 2009 6:04 am |
If you're using the mapper, this should do the trick (the last direction would be in @lastdir):
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<event event="onRoomEnter" priority="1220" copy="yes">
<value>lastdir = %lastcom</value>
</event>
</cmud> |
|
|
|
|
|
|