Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: 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?
Reply with quote
Ralph1971
Wanderer


Joined: 01 Mar 2008
Posts: 64

PostPosted: 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
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: 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>
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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