The situation here is whenever the unit get a hp lower than a certain amount it will cast a skill (banish) the 'nearest' enemy and start draining hp from the 'nearest' 'banished' enemy.
Otherwise it will cast offensive and negative skill on the enemy unit.
Now i facing some problem cause there are many trigger I not yet familiar with so I wish that someone will lend me some help to solve this problem , thank you.Of course +rep to those who help.
Btw this is just a draft trigger ,I will add in memory leak removal trigger later.
this unit has chain lightning , banish , life drain , cripple ,and all the skill's active string is confirmed.
Otherwise it will cast offensive and negative skill on the enemy unit.
Now i facing some problem cause there are many trigger I not yet familiar with so I wish that someone will lend me some help to solve this problem , thank you.Of course +rep to those who help.
Btw this is just a draft trigger ,I will add in memory leak removal trigger later.
this unit has chain lightning , banish , life drain , cripple ,and all the skill's active string is confirmed.
-
warlock
-

Events
-


Unit - Drak'thul 0056 <gen> Is attacked
-


Unit - Drak'thul 0056 <gen> Takes damage
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Integer((Life of (Attacked unit)))) Less than or equal to 1750
-




((Attacked unit) has buff Drain Life (Caster)) Not equal to True
-
-



Then - Actions
-




Unit - Order (Attacked unit) to Human Blood Mage - Banish (Attacking unit)
-




Unit - Order (Attacked unit) to Neutral Dark Ranger - Life Drain (Attacking unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Attacked unit) has buff Drain Life (Caster)) Not equal to True
-
-





Then - Actions
-






Unit - Order (Attacked unit) to Undead Necromancer - Cripple (Attacking unit)
-






Unit - Order (Attacked unit) to Orc Far Seer - Chain Lightning (Attacking unit)
-
-





Else - Actions
-
-
-
-
-
Last edited:




