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
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Fri Oct 30, 2009 1:23 am   

is this the best way to move my char through a list of locations?
 
Basically i have a string list called PathList and a counter called iPathList

inside my string list i have the values:
<.druegarsoldiers1>
<..druegarsoldiers1>
<.druegarsoldiers2>
<..druegarsoldiers2>

where druegarsoldiers1 and 2 are paths.

this is how i move:
#Step %item(@PathList,@iPathList)
then i increment my counter and return to the start location.

is this the best way to do this?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Oct 30, 2009 1:39 pm   
 
That method looks fine to me, except shouldn't you be using #slow instead of #step?
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Fri Oct 30, 2009 2:36 pm   
 
#step works

is #slow better?
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