About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Tagon
Beginner


Joined: 12 May 2004
Posts: 10

PostPosted: Thu May 27, 2004 7:04 am   

ZMud mapper
 
Ok I am testing this new custom code mud that I am helping test and I am having probelms with the automapper.

The way the game goes is this

[Room name]

room decription here usally has the directions in the desc but not alway. A large build to the north a blue building to the southeast and a market to the southwest

Obvious exits: north, southeast, southwest
> n

You head north.

[Room Name]

Room desction here Again sometime the direction are in the desc but as in this room on one appears. A temple is to the north a street latern dim burns.

Obvious exits: north, south
> n

You head north.

[Room Name]

Room desc this one however does not have any of the exits in the desc.

Obvious exits: east, south, west
> e

You head east.

[Room Desc]

I think you get the idea by now. This is the room Desc

Obvious exits: north, west


The probelm is it alwasy get You head this direction as the room name. How do I get it so it sees the room name as the name and not the You head statement as the room name.
Reply with quote
itsr0y
Beginner


Joined: 20 Jan 2002
Posts: 25

PostPosted: Thu May 27, 2004 8:58 am   
 
I believe you can type the following in the command prompt:

#TR {^You head (%w).$} {#NOMAP}

This will cause the mapper to ignore any lines that are of the form:
You head SingleWordDirection.
If have other lines to ignore, such as "You enter the door" or something like that, you can make a similar trigger.
Reply with quote
Tagon
Beginner


Joined: 12 May 2004
Posts: 10

PostPosted: Thu May 27, 2004 6:23 pm   
 
Thank you that fixed the first probelm. However it is still not seeing the room name. Any ideas?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu May 27, 2004 11:05 pm   
 
First idea would be reconfigure. It is recommended whenever adding triggers that interact with the mapper.

Next idea is assure that the exit line is always being captured correctly. This is usually done by checking the "Exitline contains key" box in the mapper configuration and filling in information for the "Exitline key" box. In your case the key would be "Obvious exit" or "Obvious exits:" depending on whether the "s" is present when only 1 exit exists. If you follow this route then you must reconfigure.

As the help for the mapper says locking in correct detection of the exits is key to detection of everything. I believe you are still going to have problems even after following the 2 above suggestions because of the brackets used around the roomname. For you may have to manually tweak the configuration by assuring that both "Match name at beginning of line" and "Match name at end of line" are unchecked. And may have to go a step further to making a trigger that #TAGs the name, this would be best handled as another state from your 'You head' trigger. Try the above steps and if they don't handle it then ask about this.

I would suggest reading the entire help section on Configuring the Mapper.
Reply with quote
Tagon
Beginner


Joined: 12 May 2004
Posts: 10

PostPosted: Fri May 28, 2004 12:19 am   
 
Thank you I will give it all a try. And I have begun reading the help section.
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