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
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: 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 Smile
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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}
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