|
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: Sat Dec 29, 2007 12:10 am
[2.18] Triggering on a var list |
I have this Variable in which I store names of enemies I have: @enemies
I have a trigger like this
Code: |
<trigger priority="19740" id="1974">
pattern: ({@enemies})</pattern>
<value>#CW red
#IF (@getenemies) {enemy %1}</value>
</trigger>
|
When I get a long line containing several enemies I want it to do a "enemy %1" for all the enemies that come by. But when that happens it fires the right number of times but the %1 contains only the first enemy listed during the procedure. So when I get a line like this:
Code: |
blabla, enemy1, william, enemy2, dorothea, anna, enemy3, john.
|
My trigger colors all the enemies red but somehow sends the following to the mud
Code: |
enemy enemy1
enemy enemy1
enemy enemy1
|
Not sure if this is a clear description but I hope you people know what I'm trying to get and what is going wrong. If anybody knows how to fix this please let me know. |
|
|
|
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: Sat Dec 29, 2007 12:19 am |
actually it seems to color all the enemies but only sends a enemy command once.
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sat Dec 29, 2007 2:42 pm |
Go in and edit the trigger by checking the 'Repeat within line' option.
I'm going to post the bug of the xml not remembering the trigger within line option now. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|