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
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Fri Nov 27, 2009 6:36 am   

Old Question never got Help On...
 
I would like to take this variable list like this of some sort....
{e|e|e|e|w|e|s|s|w|say forgive me}

And I need to add some sort of counter in it as well or a seperate variable. like
#var add walkcounter 1 {perform token amount number}

each time a counter is added to the walkconter is perferms the next movement in the variable direction list, upon the that value in the list the counter is reset.

this counter would be modified upon a #waitfor or triggger or somesort... which Iam sure I could manage, but I am not sure on the walker...
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sat Nov 28, 2009 4:55 am   
 
is this a hard one to do or? did i not provide a good enough example?

an i missing something....

????
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 28, 2009 7:05 am   
 
Is there any particular reason you need/want to do it that way as opposed to simply creating a path?
_________________
EDIT: I didn't like my old signature
Reply with quote
DanteX
Apprentice


Joined: 13 Aug 2007
Posts: 166

PostPosted: Sat Nov 28, 2009 9:07 am   
 
If you are using the #STEP, #PAUSE combination, you can add a counter each time you execute that
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sat Nov 28, 2009 4:36 pm   
 
I acctully, have already created a walker, which is already pretty effecient, but like all things its not very controlable, it just randomly walks an available direction. when it does not see the mob there.
The Worst Thing is When you get stuck in a freakin 2 way rooms, like a streach going north and south it sometimes.. it will be like north south north north south south north,
The AutoMapper Really Doesnt Like, Never Gotten Along With IT.

So.
{e|e|e|e|w|e|s|s|w|say forgive me}

after i clear this room I would like it to add a token to which it ill tell to go the next direction of the variable, say at the end or the area I can say forgive me and the area will reset
and reset hypotheticly when its done....
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sat Nov 28, 2009 4:36 pm   
 
Typo Bump
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Nov 30, 2009 2:12 pm   
 
You still haven't said why you can't use a Path. A path would be the preferred way to do this.
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