- Joined
- Aug 19, 2015
- Messages
- 68
Hey guys,
I have this trigger to give lumber on attack.
But it also gives lumber when the "damage source" is being attacked.
How to do it properly?
Thanks.
I have this trigger to give lumber on attack.
But it also gives lumber when the "damage source" is being attacked.
-
onhit vamps
-

Events
-

Conditions
-

Actions
-


Set aantileak_unit = (Damage source)
-


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



If - Conditions
-




aantileak_unit Equal to Heiress 0015 <gen>
-
-



Then - Actions
-




Player - Add (Integer((150.00 + ((Damage taken) / 50.00)))) to valwinner Current lumber
-




Hero - Add (Integer((25.00 + ((Damage taken) / 34.00)))) experience to Heiress 0015 <gen>, Show level-up graphics
-
-



Else - Actions
-
-


Custom script: set udg_aantileak_unit = null
-
-
-
init enemies
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-

Actions
-


Set aantileak_unittype = (Unit-type of (Entering unit))
-


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



If - Conditions
-




aantileak_unittype Equal to Gold supplier
-
-



Then - Actions
-




Set gsupp = (Entering unit)
-




Trigger - Add to onhit goldsupplier <gen> the event (Unit - (Entering unit) Takes damage)
-
-



Else - Actions
-
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






aantileak_unittype Equal to Vampire
-






aantileak_unittype Equal to Vampire Minion
-
-
-
-



Then - Actions
-




Trigger - Add to onhit vamps <gen> the event (Unit - (Entering unit) Takes damage)
-
-



Else - Actions
-
-


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



If - Conditions
-




aantileak_unittype Equal to Vampiric Stun Tower
-
-



Then - Actions
-




Trigger - Add to onhit vamptowers <gen> the event (Unit - (Entering unit) Takes damage)
-
-



Else - Actions
-
-
-
How to do it properly?
Thanks.







