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


Joined: 07 Jan 2003
Posts: 23

PostPosted: Tue May 13, 2003 3:49 am   

Coloring Multiple Lines with #CO
 
Pattern:
^You hit with a strong strike to (*)'s neck destroying$%2 windpipe!

Action:
#CO yellow

However when I try to light the line only the second half gets lit. I also have triggers spanning three lines+. How would I go about lighting all the lines?
Reply with quote
Lain
Novice


Joined: 26 Oct 2001
Posts: 38

PostPosted: Tue May 13, 2003 4:25 am   
 
I find it simple to use within line conditionals if I have sentences I wish coloured running over onto a second line, having it stop when it reaches either a full stop or an exclamation mark.

#TR {^You hit with a strong strike (*)'s neck destroying} {#CO yellow}
#COND {{!|.}} {#CO yellow} {within|param=1}

Or you could simpley use the condition below to colour only if the next line contains: windpipe! - but then if it doesn't you still get: You hit with a strong strike someones's neck destroying - coloured.

#TR {^You hit with a strong strike (*)'s neck destroying} {#CO yellow}
#COND {windpipe!} {#CO yellow} {within|param=1}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 13, 2003 5:54 am   
 
Enter this at the COMMAND LINE, not in the editor. If all you're doing is the #COLOR command, you can remove the parentheses around the *'s.

#TR {^You hit with a strong strike to (*)'s neck destroying} {#CO yellow}
#COND {(*) windpipe!} {#CO yellow} {Within|Param=1}

LightBulb
Advanced Member
EDIT: This is essentially identical to Lain's second trigger. The only difference is if you have a use for the text preceding windpipe (your original %2).
Reply with quote
Gage
Beginner


Joined: 07 Jan 2003
Posts: 23

PostPosted: Wed May 14, 2003 4:38 am   
 
I was able to do that through the editor and it works.

Thank-you very much.
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