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


Joined: 02 Sep 2007
Posts: 7

PostPosted: Fri Sep 07, 2007 5:31 pm   

Automapper recognize non-cardinal movement
 
Hi I was playing with the automapper and getting frustrated with the custom configuration (as the help file warned). Since you guys are really good at this program and I am not, I figured I would ask...

Is there an easy way to make to automapper notice the area in [ ] as the room name, the second part as the desc. and the exits including the non-cardinal ones. This is an example of exactly the information you get when you enter a room.

Quote:
[entrance hall of the Thieves' Guild]
A magnificent dome covers, etc...
There are five obvious exits: up, west, north, south, east, stairs, and portal.


Thanks in advance.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Fri Sep 07, 2007 7:23 pm   
 
The room name is easy:

#trig {^~[*~]$} {#tag name}

And similar triggers can be applied to the description and exits (especially if you use a multistate trigger). The problem is that the mapper won't recognise cardinal exits on its own, even if you've tagged the exits line properly. This issue is going to be corrected in CMUD in the future, but unfortunately, it's harder to emulate in zMUD. You'll probably find it easier to create them manually using the mapping character than you will writing a script to create the custom exits for you.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ferahgo
Newbie


Joined: 02 Sep 2007
Posts: 7

PostPosted: Fri Sep 07, 2007 8:40 pm   
 
you're quite right, that's easy and it works. Now how about this one. I try to go north but the game says 'The north door is locked.' and the mapper makes a new room which is a duplicate of the one I tried to come from. Is there an easy way to make the room not be created, or deleted rather when this happens?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Fri Sep 07, 2007 8:55 pm   
 
#trig {The %w door is locked.} {#nodir}

should work. You might also want to look at the #nomap command.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Sep 07, 2007 8:55 pm   
 
Grr.. Ninja'd.

#TRIGGER {The %w door is locked.} {#NODIR}

Very easy. :) Stops the room from being created.

Charneus
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