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


Joined: 17 Aug 2002
Posts: 3

PostPosted: Sat Aug 17, 2002 2:31 pm   

#SUB
 
Needing a little help with a trigger, please.

My Mud Output is:

You noticeGSL
a black hawkGSM
, a wooden barrel and a floating dais.
Obvious paths: southeast, southwest.

GSL means start highlight, GSM means stop.

I want it to look like...

[Ta'Illistim, Shimmarglin Court]
You notice a black hawk, a wooden barrel and a floating dais.
Obvious paths: southeast, southwest.

I have achieved this using the following trigger:

#TRIGGER {^(%*)GSL$(%*)GSM$} {#GAG -1;#SUB {%1%ansi( yellow)%2%ansi( default)}}

This works fine for 1 thing in the room that needs highlighting, however if there is more than 1 thing in the room that requires highlighting, although the formatting is correct, only the last thing gets highlighted.

Any help please?

DP
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 18, 2002 12:13 am   
 
#CW {GSL$%*GSM$} {14}

LightBulb
Senior Member
Reply with quote
Roamer
Newbie


Joined: 17 Aug 2002
Posts: 3

PostPosted: Sun Aug 18, 2002 1:32 pm   
 
Thanks for trying LightBulb, but that code highlighted the GSM bit only, and didn't format it as I wanted.

Any other ideas?

DP
Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Sun Aug 18, 2002 6:05 pm   
 
Try making it a trigger on a trigger, to get it to recompute for each GSL/GSM combination. Else you'll have to extract the entire text and work through it.

Otherwise, give an example of a room with two highlighted objects, please.

Lady C.
Reply with quote
Roamer
Newbie


Joined: 17 Aug 2002
Posts: 3

PostPosted: Mon Aug 19, 2002 5:19 am   
 
Similar to the first one, with new lines and such....

You noticeGSL
a white catGSM
andGSL
a sleek golden ferretGSM
(prone).
Obvious paths: north, east, west.

This should of course look like....

You notice a white cat and a sleek golden ferret (prone).
Obvious paths: north, east, west.

Thanks again for any help.

DP
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