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


Joined: 15 Jun 2004
Posts: 11

PostPosted: Fri Jun 18, 2004 9:43 am   

Using lists and Creating Triggers
 
I've got an alias setup as follows.

The idea is to create triggers based on words in the list. Unforuately, the triggers created don't expand the %item(@WordList, %i).

#loop %numitems( @WordList) {#TRIGGER {%item( @WordList, %i)} {#co bold,red} ""}

Can references be used in trigger pattern matching?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jun 18, 2004 11:39 am   
 
#TRIGGER {%q{@WordList}%q} {#co bold,red}

Lists can be used directly in pattern for a trigger.
Reply with quote
bozo
Beginner


Joined: 15 Jun 2004
Posts: 11

PostPosted: Fri Jun 18, 2004 11:48 am   
 
where there a will there's a way....
many thanks

Only problem is it colors the whole line and i just want it to color the words in the list.

tried #co %1 bold,red
#co %trigger bold,red
#co %param1 bold,red

but no good :-(
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jun 19, 2004 4:05 pm   
 
#CW
Reply with quote
bozo
Beginner


Joined: 15 Jun 2004
Posts: 11

PostPosted: Sat Jun 19, 2004 4:28 pm   
 
much obliged
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