![](templates/Classic/images/spacer.gif) |
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: 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. |
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
![](templates/Classic/images/spacer.gif) |
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: 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. |
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
![](templates/Classic/images/spacer.gif) |
Eowyn Apprentice
Joined: 19 Jan 2001 Posts: 117 Location: Norway
|
Posted: Wed Oct 22, 2003 11:34 am |
Oooh! zMapper can do it? I have it - np - now how do I do it in zMapper?
|
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|