 |
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Wed May 19, 2004 5:06 pm
Color several lines? |
I want to color tells that I get, but how can I trigger it so that it gets all the text?
Like:
Holden tells you: "Hey hey hey hey hey hey
hey hey hey hey hey hey hey hey you daaawg
yoooooo".
I want to color all the lines and not just the top one. Anyone have any ideas? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed May 19, 2004 7:56 pm |
Ignore holden. [}:)]
Seriously, most tells are single-line no matter how they appear on your screen.
#TR {tells you} {#COLOR yellow}
If they aren't, use the standard multiline approach
Starting pattern - enable main trigger
* - main trigger to color, capture, gag, add to database variable, etc
Ending pattern - disable main trigger
#TR {tells you: ~"} {#T+ tellcolor}
#TR tellcolor {*} {#COLOR yellow} {} {disable}
#TR {~".$} {#T- tellcolor} |
|
|
 |
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Wed May 19, 2004 8:49 pm |
Sigh, logical thinking is not my strong side.
I did somewhat like you said, and it works - Thanks a lot for poitint me in the right direction.
What I don't understand about your way of doing it is the ~ symbol. I read that it's a sort of wildcard. What does that mean, and do? |
|
|
 |
Vorax Apprentice

Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: Wed May 19, 2004 9:01 pm |
The ~ is not a wildcard. It's the default quote character, which means any character immediatly following is quoted as that character and not interpreted as a special character. In this case, the double quote is quoted.
|
|
|
 |
Leontes Beginner
Joined: 18 May 2004 Posts: 16
|
Posted: Wed May 19, 2004 9:12 pm |
hmm, it seemed to work without, so perhaps I should just settle for that.
Something different - How do you make a button that toggles something on and off, like:
F1 - Toggle "netdodging on" and "netdodging off", so that every other time you press the button you get the on and off? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu May 20, 2004 4:20 am |
Assuming netdodging is a class:
#IF (%class( netdodging)) {#T- netdodging} {#T+ netdodging}
You could also use a toggle button with one state doing #T+ netdodging and the other state doing #T- netdodging. |
|
|
 |
|
|