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
rekres
Newbie


Joined: 02 Dec 2001
Posts: 4
Location: USA

PostPosted: Wed Mar 12, 2008 6:59 am   

Automapper config and door names
 
Greetings.

Is there a config setting to get the automapper to do the following...

If the door has a name, then use OPEN (doorname)
If the door doesn't have a name, then use OPEN DOOR (dir)

Granted I could just go through my map and give each door a name based on its exit direction, but I don't feel like changing 90% of the doors on my map (pretty big map)

I can't just tell it OPEN DOOR, because if there are two doors leading out of a room it will always try the default one, which is not necessarily the one I want to go through.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Mar 12, 2008 10:03 am   
 
In the Strings and Doors section of the mapper configuration set the door command to "%if(%2,open door %2,open door %1)".
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rekres
Newbie


Joined: 02 Dec 2001
Posts: 4
Location: USA

PostPosted: Wed Mar 12, 2008 12:32 pm   
 
Vijilante wrote:
In the Strings and Doors section of the mapper configuration set the door command to "%if(%2,open door %2,open door %1)".


I tried inputting that....
For regular doors, it is now trying to send OPEN DOOR DOOR
For special doors, example: doorname=gate, it sends OPEN DOOR GATE
Reply with quote
JQuilici
Adept


Joined: 21 Sep 2005
Posts: 250
Location: Austin, TX

PostPosted: Wed Mar 12, 2008 2:17 pm   
 
Try "%if(%2,open %2,open door %1)". In this instance, %1 is the direction, and %2 is the door name (if the door is named).

You might also get away with simply "open %2 %1", if you also set the default door name (in the same dialog) to "door". This assumes that sending 'open gate north' will work correctly.
_________________
Come visit Mozart Mud...and tell an imm that Aerith sent you!
Reply with quote
rekres
Newbie


Joined: 02 Dec 2001
Posts: 4
Location: USA

PostPosted: Thu Mar 13, 2008 1:44 am   
 
After some fiddling, I discovered that by clearing the default door name section and using the original script, worked perfectly.

There are still a few doors with special commands that I have to do manually... or rather I've got regular triggers to handle those.
As well as locked doors...
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Mar 13, 2008 2:00 am   
 
You can use the "other com" box for an exit to define a special command to use that exit if need be. Locked doors will be a problem, obviously - if you generally have the key or whatever to get through, you could use a room script to execute whatever command you need (get key23346 from bag, unlock door w, put key in bag) etc.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Thu Mar 13, 2008 2:47 am   
 
you can use the semicolon ; to separate commands in that command line just like any other, might even run an alias 'unlock 23346 west'
_________________
Discord: Shalimarwildcat
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