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
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Sun Jan 13, 2008 2:08 am   

#ok question mapper question
 
You see exits leading north and west.

I am trying to do a #ok to confirm I have entered the room.. I have it set on "You see exits"
Here is the problem.. sometimes it'll be like this..


Northern tip of the Black Lake.
The waves of the lake here wash upon white, sandy shores. Beyond the oddly
tranquil scene, the proud spires of magnificent palaces rise as silent shadows
in the dim light of the underworld. On the shore, the bright lights of the
mansions and the occasional calls of the many guards patrolling the streets
break the somber silence and gloom of the lake. Ever so often, the melody of a
mournful instrument will float over the shores of the lake, bringing with it the
laughter and voices of unseen guests. A kelp plant waves in the currents. You
see exits leading south, southwest and west.

How do I get it to read the multiline to confirm the ok?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sun Jan 13, 2008 2:29 am   
 
Grarghablearg! To quote myself from another thread:

Fang Xianfu wrote:
The ideal solution to this problem would be to turn off server-side word-wrapping and if it's not possible on your MUD, pester your admins until they make it possible. If all else fails, change to a MUD that lets you change its wrap column - this is the single most annoying thing about many MUDs and it causes many problems like this. I have no idea why so many of them add code to do it.


This problem is even more annoying than the one in the thread above - there's not really a decent way to do it. I'd be nice if you could combine the reparse and loop lines trigger states to have a multistate trigger like this:

#trig {You} {} {reparse|looplines|param=1}
#cond {see} {} {reparse|looplines|param=1}
#cond {exits} {} {reparse|looplines|param=1}

but I'm fairly sure that's not possible.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Sun Jan 13, 2008 7:57 am   
 
I think this will work:
Code:
#REGEX {\byou\s+see\s+exits\b} {#SH saw exits on 1 line}
#REGEX {\byou(?:\s+see)?\s*$} {}
#COND {^\s*(?:see)?\s*exits\b} {#SH saw exits on 2 lines} {within|param=1|regex}
Of course, change the actions to whatever you want, like #OK.
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