- 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 ''
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)
-
-
-
-