|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Fri Sep 05, 2003 7:26 pm
#CW a recordvariable list_name |
Hi,
I store player_name and player_clan in a record_variable_list. Example:
Name1 ClanA
Name2 ClanB
Name3 ClanA
I have a zmud output:
{@record_variable list} is here
Problem: I want to color ONLY the variable_name.
For example; if I receive following output:
Name1 is here.
I only want the trigger to ONLY color Name1.
I have looked at #PCOL but I can't get it to work properly (it colors the whole line).
Any ideas |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Sep 06, 2003 5:08 am |
#PCOL is short for positional color. That is why the examples demonstrate the use of the captured position variables. In order for these variables to be properly set you must capture some portion of a line. So the trigger starts as:
Pattern: {@record_variable} is here
This matches the line then you add parenthesis to capture a portion of it
Pattern: ({@record_variable}) is here
Finally you put the whole thing together with the #PCOL command and captured position variable:
#TR {({@record_variable}) is here} {#PCOL brown %x1} |
|
|
|
|
|