Bonus damage using triggers

Erkki2

New Member
Reaction score
0
How could I make a trigger which deals 20% of attacking unit's normal damage to the attacked unit, if attacked unit belongs to a certain unit group?
 

Romek

Super Moderator
Reaction score
964
Use damage detection.
Make a really simply damage detection, and when a unit takes damage, do a boolean comparison. If the unit is in >Group< then make the damage source damage the triggering unit for (Damage Taken * .2) damage.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Actually you just need to deal the extra 20%, which is (0.2 * Damage Taken)

Doing the above will deal 120% extra damage.
 

Erkki2

New Member
Reaction score
0
How can I use damage detection. Event "unit takes damage" can only be used for spesific unit.
 

Romek

Super Moderator
Reaction score
964
How can I use damage detection. Event "unit takes damage" can only be used for spesific unit.
Make a trigger which looks something like this: (Freehand)

Events: Unit Enters (Playable Map Area)
Actions: Add to (Your Trigger) the event ((Triggering Unit) takes Damage)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top