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
Mudder Dude
Beginner


Joined: 23 Oct 2000
Posts: 23
Location: Australia

PostPosted: Tue Feb 11, 2003 3:29 am   

Question on slow walk
 
Although I bought a license, I will admit I have been bad about not updating my version. I usually upgrade when I'm looking for a specific function.

For all those people on the latest version, I am wondering if there is a way to get the NEXT value in the slow walk path and load it into a variable. Such use would be to look a direction before you move it.

MD

Mudder Dude!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Feb 13, 2003 7:09 am   
 
I can't find any function/variable which will provide that directly. However, it should be easy to obtain using the %pathfrom function.

LightBulb
Advanced Member
Reply with quote
Mudder Dude
Beginner


Joined: 23 Oct 2000
Posts: 23
Location: Australia

PostPosted: Fri Feb 14, 2003 4:50 am   
 
Well, I think I have a work around. It is so cumbersome that its not a solution.

In my slow walk path, add an alias that will set the variable manually for my next direction prior to the path changes direction. For example if the path is 10e5s10e I would:
pde;10e;pds;5s;pde;10e

pde is the alias that sets next_step variable to east

pds is the alias that sets next_step variable to south

*sigh* I hope it goes in a lot of straight lines.

Mudder Dude!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Feb 14, 2003 12:46 pm   
 
Couldn't you use %pathexpand to get the path as a stringlist, start an index variable that points to the next direction in the path and update the index variable in the trigger that sends the #OK command for the slow walk?

Kjata
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