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


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Mon Oct 20, 2003 12:40 pm   

Replacing a doorname
 
I need a script that goes through every room in my map database: if an exit has a door, but no specific name, I want the script to set the doorname to "door". Any suggestions?

Thanx.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Oct 20, 2003 10:54 pm   
 
You can simply set a default in the Strings and Doors section of the mapper config. In fact dafault setting for it is door, you may just have to change a %1 to %2 in that section to get it to use it.
Reply with quote
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Tue Oct 21, 2003 4:54 pm   
 
That works fine, yes - as long as I don't try to do
#var doorn %doorname( , n)

That variable will be empty if there is no given doorname, and as far as I can tell - there is no way to retrieve data on wether or not an exit has a door.

If there IS a way to get zmud to cough up the exit-type - plz let me know.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 22, 2003 12:28 am   
 
Regrettably there is no way to detect a door dorectly within zScript. If you have zMapper it is easily doable. If you don't then it is quite a bear to work through the ADO interface and understand the underlying database. Perhaps Zugg can be convinced that %doorname is somewhat useless without an ¡Ö%isdoor¡Ö function. This is the main reason I didn't give a script solution to setting all doors, I didn't want to find out the wrong way that it would set non-door exits too.
Reply with quote
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Wed Oct 22, 2003 11:34 am   
 
Oooh! zMapper can do it? I have it - np - now how do I do it in zMapper?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Oct 23, 2003 1:34 am   
 
You have to read the help in zMapper for Using zMapper with zMud. Within zMud you access the map object with %map. I couldn't quite seem to get it to work before writing this, might be a beta issue.
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