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


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sat Jun 13, 2009 4:01 pm   

[edit][/edit]
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:19 pm; edited 1 time in total
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jun 13, 2009 6:59 pm   
 
Use the %pathfrom() function to figure out your path. You can assign it to a variable.

From there, use %pathexpand() to convert the path from 3n4w format to a stringlist where each member is a movement. You will need to scan this list for non-moving commands like open door, and count them up so you can properly subtract them from the path length (I wouldn't delete them, because you can then use the chosen path to speedwalk to the destination if you want).

Finally, compare the resultant stringlist lengths with %numitems().
_________________
EDIT: I didn't like my old signature
Reply with quote
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sat Jun 13, 2009 8:40 pm   
 
[edit][/edit]
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