HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with targeting the attacked unit...

11-21-2004, 02:34 PM#1
oNdizZ
Unit Stability TotN Base Protectors
Events
Unit - Shadow Protector 0007 <gen> Takes damage
Unit - Shadow Protector 0006 <gen> Takes damage
Conditions
(Owner of (Damage source)) Not equal to (Random player from (All allies of (Owner of (Attacked unit))))
Actions
Unit - Set life of Pain Tower 0008 <gen> to ((Life of Pain Tower 0008 <gen>) + ((Damage taken) / 2.00))
Unit - Set life of Pain Tower 0009 <gen> to ((Life of Pain Tower 0009 <gen>) + ((Damage taken) / 2.00))


that doesn't work too this trigger, how can i make it so it works that only the enemies hits leech life to their own towers.. ?
11-21-2004, 04:11 PM#2
DaKaN
your picking a random player from all of the allies of the owner of tha attacked unit.

so the owner of the damage source, might not be the random player chosen

Thats the first thing i notice wrong when i look at this trigger
11-21-2004, 04:32 PM#3
oNdizZ
well, i know, but i can't see anyway of just take all allies instead of random one :/
11-21-2004, 04:54 PM#4
DaKaN
put the allies in a player group variable, and use a boolean check to see if the player is in that player group