• 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.

[General] Increase a unit damage until a point

Status
Not open for further replies.
Level 2
Joined
Jan 2, 2013
Messages
16
Hi,

I would like to make an trigger that increases the damage like this:
Unit has 5 damage and 10 agility and 4 intelect.
I want to increase the damage with (agility+intelect)/2, that means 5 +7 damage.

I know I can add an item ability, level it up and remove it to add the damage, but I don't know how to stop the trigger from adding more damage.
Here is how I think it is, but I don't know the loop from '' to ''
  • Untitled Trigger 001
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • Set DmgHeroes = (((Agility of (Triggering unit) (Include bonuses)) + (Intelligence of (Triggering unit) (Include bonuses))) / 2)
      • For each (Integer A) from ?? to ??, do (Actions)
        • Loop - Actions
          • Unit - Add +1 Dmg to (Triggering unit)
          • Unit - Increase level of +1 Dmg for (Triggering unit)
          • Unit - Remove +1 Dmg from (Triggering unit)
I would like it in GUI, I don't know coding
 
Level 2
Joined
Jan 2, 2013
Messages
16
I can use that, but in my case, it's not posible, the stats i gave are only an exemple, I need to change the damage everytime the stats of the hero is changing, and I can't do a variable like: New Damage - Old Damage to find how many time i need to add 1 damage
 
Status
Not open for further replies.
Top