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
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Sat May 15, 2004 11:11 pm   

Find help
 
Why does:

* HP:Healthy MV:Full > Braem Wood
Although there are plenty of stout, tall trees in view, some have fallen
over, and now lie on their side, creating a natural cover for ferns and
bracken to grow under. To the north are leagues upon leagues of forest,
although it cannot be reached from here. The Braem Wood continues to the
south and west.
[ obvious exits: S W ]

not work for finding the room on the map but:

* HP:Healthy MV:Full >
Braem Wood
Although there are plenty of stout, tall trees in view, some have fallen
over, and now lie on their side, creating a natural cover for ferns and
bracken to grow under. To the north are leagues upon leagues of forest,
although it cannot be reached from here. The Braem Wood continues to the
south and west.
[ obvious exits: S W ]


does? Only difference I see is that room name follows prompt instead of on newline. I have the match name at start of line box unchecked and walking in rooms I have already mapped works fine in both of the above cases.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun May 16, 2004 5:29 am   
 
check the rooms names at end of line see if that helps
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Mon May 17, 2004 11:00 pm   
 
Nope...forgot to mention but I already tried that one.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon May 17, 2004 11:51 pm   
 
You have to uncheck the 'Room names at start of line' in the config as well as checking the EOL option.

Also since your mud has a problem with placing things seperate from the prompt you should be very careful when mapping to assure that your prompt did not become part of the room name when that room was mapped. The best way to do this is with an automated onroomcreate alias that checks for the prompt in the detected name by way of the %roomname function. It should then fix it whenever found. If you find you have rooms where this problem occurred and need an example alias I will be happy to write on for you.
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Tue May 18, 2004 1:39 am   
 
Thank for the alias offer (it doesn't hapen too often so I just go through and edit them by hand) but checking the end of line box and unchecking the start of line box doesn't work. This problem only occurs when I am doing something really fast (lots of commands at once like running for my life, which unfortunately is when I really need it to work.) there is a similar topic to this where some people were trying to #tag the room name and I have this:

#TRIGGER {(*)%e[36m(*)%e[0m$(*)} {
#TAG name %2
room = %2
#ECHO @room
} "" {color}

(which was inactive for the above tests)

which properly gets the room name based on the color, but also fails to help the program #find the room on the map. I really appreciate all the help with this.
Reply with quote
phastari
Newbie


Joined: 08 Apr 2004
Posts: 4
Location: Sweden

PostPosted: Tue May 18, 2004 12:03 pm   
 
Or you could make a substitute trigger that always places text recived from the mud on a new line.

#trigger {^prompt} {#substitute {prompt%cr""}}

You might need a second substitute trigger for this to work 100%

#trigger {^prompt (%*)} {#substitute {prompt%cr%1}}

You have to change the wildcards to include the varying conditions for HP, and MV

I've managed to get this working on wotmud.org I belive that is the mud you play.

(I am not at home just now, so I am not 100% sure that these triggers will work, but you got the idea for how to fix this. Also good to for being able to use ^ in triggers}
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Thu May 20, 2004 1:30 am   
 
Alright I used the trigger:

#TRIGGER {^(*)>} {#SUBSTITUTE {%trimleft(%1>%cr)}}

and it places the room name on a new line every time...but there is usually a space before the name like:

o HP:Hurt MV:Fresh >
[space]Sleeping Chamber
The devastation here is overwhelming.

and it won't locate on the map...I added trimleft and it still has the space. any new ideas? (and yes I play WOTmud) Thnaks again.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 20, 2004 4:23 am   
 
If you don't want the space on the next line, include it in your pattern.
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Thu May 20, 2004 5:52 am   
 
Wow lightbulb they should give you one of those Official ZMud Guru stickers ;-) That worked although it still won't locate on mapper when I spam commands before hand.
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Thu May 20, 2004 6:28 am   
 
Wow lightbulb they should give you one of those Official ZMud Guru stickers ;-) That worked although it still won't locate on mapper when I spam commands before hand.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 20, 2004 6:07 pm   
 
Thanks, they've tried.
Reply with quote
Bromax
Wanderer


Joined: 03 Jan 2002
Posts: 66

PostPosted: Thu May 20, 2004 11:11 pm   
 
Double post at different times...strange...it seems that I am going about this the wrong way...or I don't understand exactly how the #find command works internally...giving up on this one for now unless any other Guru's have more suggestions. ;)
Thanks for all your help.
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