|
Myrkul Wanderer
Joined: 21 Aug 2008 Posts: 85
|
|
Last edited by Myrkul on Thu Apr 14, 2011 11:19 pm; edited 1 time in total |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Myrkul Wanderer
Joined: 21 Aug 2008 Posts: 85
|
Posted: Sat Jun 13, 2009 8:40 pm |
[edit][/edit]
|
|
|
|
|
|