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
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Sun Jan 21, 2007 8:39 am   works great
 
works perfect now thx
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