|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sun Jan 21, 2007 1:48 am
%walk function |
I have noticed that when I use the %walk function to get a path all the open doors are removed. I use this function to convert a standard .3nse;open west;.3wne type run to a mud run 3nse; open west; run 3wne style anyone have an idea? here are the code specifics.
#VARIABLE path %walk( %1)
path = %replace( %replace( %replace( @path, ., "run "), ")", ");run "), "run (", ".(")
#IF (%ends( @path, ";run ")) {path = %leftback( @path, 5)}
path = %replace( @path, ";run ;.", ";.")
#EXECUTE @path
#TELEPORT %1
I had to add teleport because it wasn't following through other type exits for some reason |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Jan 21, 2007 2:50 am |
I believe the option that controls that is in the mapper configuration. There should be a check box that say something like 'include door commands in saved paths'.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sun Jan 21, 2007 8:39 am works great |
works perfect now thx
|
|
|
|
|
|