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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
zorra
Beginner


Joined: 13 Oct 2006
Posts: 10

PostPosted: Mon Mar 05, 2007 3:12 pm   

problem of path
 
In speedwalk, when I use the command

tempdir=%nextdir

the variable @tempdir seems to point to %nextdir, and varies with the %nextdir. So when I step again, the @tempdir will disappear.
So the question is how to maintain the variable tempdir of the value at the moment of I execute 'tempdir=%nextdir'? For example, when I paused in a speedwalk, my %nextdir is east, I want to record this to a value and maintain it. How can I do that?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Mar 05, 2007 9:48 pm   
 
Just assign it to a different variable using the above syntax (newvar = @tempdir).
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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