• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Increasing/Decreasing Incoming Damage by Percents

Status
Not open for further replies.
Level 11
Joined
Jun 21, 2007
Messages
505
Hi, I have in my map a variable which changes amount of damage of a certain type, and that variable is initially equal to 1.00.
I can change that variable whenever I want.
When a specific unit receives damage, that type of incoming damage is taken, and is multiplied by the variable to control it.

How can I manage that correctly?

Perhaps it has something to do with manipulating attacking/attacked units' behavior manually via triggers?
 
Level 10
Joined
Oct 22, 2006
Messages
599
Do you realize what you're asking for? Every time a unit is attacked/damaged this trigger will run. Don't you think that'll cause lag? Unless of course your unit count is limited..

  • Attacked
    • Events
      • Unit - Unit Takes Damage
    • Conditions
    • Actions
      • Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Variable x (Damage taken)) - (Damage taken)) damage of attack type Normal and damage type Normal
Something like this?
 
Status
Not open for further replies.
Top