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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Fri Mar 13, 2009 8:39 am   

Go back one step, without the mapper
 
I am running two sessions, so one has to do without the mapper. I am running quests with that session, so mostly moving around tracking things. I need to get a light from a bag when I step into a dark room. But I can not see the bag when in dark. So I need to take a step back. How would you do that? I was thinking of keeping the last direction in a variable and then just create a list of all dirs and just find the opposite dir there, but there should be an easier way...
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Mar 13, 2009 1:40 pm   
 
Assuming that you have the English Directions package, or an equivalent, loaded, and assuming the directions you are using are listed in the package, you can use the %reversedir() function to find the reverse direction. However you do it, you will definitely have to keep track of your last direction. Then you can make an alias named "back" or "b" or something like that to do: #send %reversedir(@lastdir)
Reply with quote
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Fri Mar 13, 2009 8:12 pm   
 
Thanks, got it sorted.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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