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
Nardak
Beginner


Joined: 23 Oct 2000
Posts: 29
Location: Sweden

PostPosted: Sat Mar 22, 2003 10:38 am   

Coloring trigger.
 
Hi, I want to color the exits in rooms.

The output looks like this.

There are five obvious exits: west, southwest, northeast, southeast and
east.

There are two obvious exits: south and east.

There is one obvious exit: east.

I would like to capture it with one single trigger.. It sometimes stretches over two lines, thats also a problem I think.
Any bright ideas?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Mar 22, 2003 3:31 pm   
 
Do you want to color just the exit directions or the whole line(s)?

To do the whole lines use this
#TRIGGER "ExitTrig" {There %w %w obvious exit{s|}~: *} {#CO red;#IF (%ends(%trigger,".")) {#STATE ExitTrig 0}}
#COND {*.$} {#CO red}
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