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
Thinjon100
Apprentice


Joined: 12 Jul 2004
Posts: 190
Location: Canada

PostPosted: Fri Jun 15, 2007 11:03 pm   

%walk weirdness....
 
OK, from my command line, if I type
Code:

#ECHO %walk(12345)

it echoes ".d8su2nwdwu3w2s4w2s" to my screen, which looks like a fine speedwalk path
If, however, I create the following alias in another "Speedwalk" package:
Code:

#IF (!%null(%1)) {
  $wm = %walkmode()
  #CALL %walkmode(0)
  $speedwalk = %walk(%1)
  #ECHO $speedwalk
  $speedwalk = %replace($speedwalk,".(","")
  $speedwalk = %replace($speedwalk,".","run ")
  $speedwalk = %replace($speedwalk,")",";run ")
  #CALL %walkmode($wm)
  #VAR SWPath {$speedwalk} "Speedwalk"
}

If I execute this alias with the same roomvnum entry, I instead get:
.(d);.(s);.(s);.(s);.(s);.(s);.(s);.(s);.(s);.(u);.(n);.(n);.(w);.(d);.(w);.(u);.(w);.(w);.(w);.(s);.(s);.(w);.(w);.(w);.(w);.(s);.(s)

Initially my alias didn't have any of that %walkmode stuff, and it acted the same... added it in (to no effect) to see if for some reason the walkmode of another package was handled differently.

I am using v1.26 (until a new mapper-stable version comes out), but I didn't find anything in Version History to say anything had changed with this command...

As an added note, if I create the alias in the main session package, it echoes properly.

Is there a reason using %walk() would return a different string from a package than from a window? I'm trying to parse the speedwalk into a mud-based run command, but with that "super-expanded" format I can't parse it properly... especially if I add in door and portals.

Any clues?
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