|
Gage Beginner
Joined: 07 Jan 2003 Posts: 23
|
Posted: 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? |
|
|
|
Lain Novice
Joined: 26 Oct 2001 Posts: 38
|
Posted: 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} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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). |
|
|
|
Gage Beginner
Joined: 07 Jan 2003 Posts: 23
|
Posted: Wed May 14, 2003 4:38 am |
I was able to do that through the editor and it works.
Thank-you very much. |
|
|
|
|
|