|
bozo Beginner
Joined: 15 Jun 2004 Posts: 11
|
Posted: 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? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jun 18, 2004 11:39 am |
#TRIGGER {%q{@WordList}%q} {#co bold,red}
Lists can be used directly in pattern for a trigger. |
|
|
|
bozo Beginner
Joined: 15 Jun 2004 Posts: 11
|
Posted: 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 :-( |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jun 19, 2004 4:05 pm |
#CW
|
|
|
|
bozo Beginner
Joined: 15 Jun 2004 Posts: 11
|
Posted: Sat Jun 19, 2004 4:28 pm |
much obliged
|
|
|
|
|
|