|
Veldrin Newbie
Joined: 19 Jun 2003 Posts: 2 Location: USA
|
Posted: Thu Jun 19, 2003 3:07 pm
Triggering on a list. |
I use a fairly common name highlighting trigger with the pattern of:
{@pk_list}
I also want to use that multvariable list, since it already colors the names of those that are in the list and are on, to put the names it triggered on into another variable.
As in my @pk_list is a complete list of enemies, but i want a @pk_curn to hold the ones that are currently on.
It colors fine, so I know its triggering, I just need a way to pass which name triggered from the list to another. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jun 19, 2003 3:11 pm |
Surround it with parenthesis in the pattern and the item of the list that matched will be available to you by using %1. Example:
#TRIGGER {({@pk_list})} {#SH It matched with item: %1}
Kjata |
|
|
|
Veldrin Newbie
Joined: 19 Jun 2003 Posts: 2 Location: USA
|
Posted: Thu Jun 19, 2003 3:16 pm |
Ahh. :)
You managed to reduce my headache in a matter of moments.
My Eternal thanks to you. |
|
|
|
|
|