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
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 62

PostPosted: Tue Apr 22, 2008 5:55 pm   

Append extra directions to slow walk after slowwalk has been started?
 
Is there a way to append directions to a slowwalk path?
if I do like
#slow nnn;#pause
and I want to add some more directions, (or another pathname)
is there a way to append the new directions?

The reason is I have some complex paths to walk certain floors/elevations of zones,
I would like to be able to not have to have a super huge paht to walk 10 floors of a zone,
but instead walk
floor1+floor2+floor3 etc.

maybe I could use a concat function if there isn't something easier?

But I have to figure out how to expand or eval a path like a variable.... hrmm

TIA
Reply with quote
meyn
Beginner


Joined: 06 Mar 2008
Posts: 27

PostPosted: Tue Apr 22, 2008 7:41 pm   
 
#MAP north

if the current path is .s then the path is updated to be .sn. If the current path is .2n then the path is updated to be .3n. Then you are moved one square north on the map.

#SHOW %pathexpand(3nwe;open door;n)

This will display the string list: n|n|n|w|e|open door|n

#SHOW %pathcompress(n|n|n|e|w)

This will display the speedwalk path: 3new.

If the first doesnt help the second and third will let you manipulate manually.



Look up functions in zmud index and click on predifined, the most helpful i can find they should have put it right a begginnig of help file if you ask me.

hope this helps
Reply with quote
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 62

PostPosted: Tue Apr 22, 2008 10:02 pm   
 
The problem is pathexpand will not expand a saved path.
so if I have
#path Floor1 {nsew}

I cant expand it any way I could find :(

and I tried #map n
after I already had my slowwalk set.

#slow 5n;#pause
it stepped me 1n, then paused
then I did #path
Path ahead: .4n
then I did #map s

then I did #path
Path ahead: .4n
Path Behind: .s

it adds it to the path behind, not the path ahead :(
not
Path ahead: 4ns

I dunnow how to get it to work,
does anyone know how to expand paths into strings, (by pathname) like variables?
Reply with quote
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 62

PostPosted: Tue Apr 22, 2008 10:12 pm   
 
I guess I should change my paths to variables and
just do
#slow @floor1;#pause
and I can #slow %concat( @floor1, @floor2);#pause

?
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