|
MtnBkr16 Newbie
Joined: 18 Oct 2005 Posts: 4 Location: USA
|
Posted: Tue Oct 18, 2005 7:55 am
Trigger help? |
Kind of a weird pattern that I need to trigger off of...
[Info] =-> YoMomma has escaped defenceless from a fight. <-=
Can't figure it out myself... anyone got any idea?
Basically I need to be able to throw YoMomma into a variable, check it against a list of enemies and allies. If it's in the enemies list, I need to decap, on the allies list I need to heal them.
Thanks in advance =) |
|
|
|
GaidinBDJ Wanderer
Joined: 15 Nov 2002 Posts: 52 Location: Las Vegas, Nevada
|
Posted: Tue Oct 18, 2005 3:10 pm |
#var EnemyList {Joe|Bob|John}
#var FriendList {Sue|Betty|Joan}
Pattern:
^~[Info~] =-~> (%w) has escaped defenceless from a fight.
Value:
#IF (%ismember(%1,@FriendList)) {heal %1}
#IF (%ismember(%1,@EnemyList)) {decap %1} |
|
_________________ Barry
Gaidin @ 3k.org |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Tue Oct 18, 2005 3:18 pm |
Trigger:
~[Info~] ~=~-~> (%w) has escaped defenceless from a fight. ~<~-~=
Body:
#IF (%ismember( %1, @enemy_list)) {decap %1} {heal %1}
try this one out. |
|
|
|
GaidinBDJ Wanderer
Joined: 15 Nov 2002 Posts: 52 Location: Las Vegas, Nevada
|
Posted: Tue Oct 18, 2005 3:21 pm |
Vitae wrote: |
#IF (%ismember( %1, @enemy_list)) {decap %1} {heal %1}
|
Just be careful with that one. That won't restrict to just healing your friend list. It will heal anybody who isn't an enemy. |
|
_________________ Barry
Gaidin @ 3k.org |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Tue Oct 18, 2005 4:30 pm |
*mutter*
0 for 2 this week :(
I just assumed everyone else was the friends :-) |
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Tue Oct 18, 2005 5:21 pm |
Remember, if you make an assumption you just make an ass out of u and mption.
|
|
_________________
Look at me I've got zSKILLS |
|
|
|
|
|