- Joined
- Jun 17, 2010
- Messages
- 2,275
When i choose this "Specific unit event" i cannot make a variable for unit. I cant use anything other then Specific because it is the only one that has the option "Takes Damage" and i need that number.
No a unit is attacked trigger will fire off before a unit takes damage trigger.. try adding the damage after the wait, you need to give it time for the damage to happen before the attack trigger (becuz its instant)
My trigger might have been similar but it was more simplified and exactly was he asked for.
Counter Attacked Unit
Events
Unit - A unit enters Hero of Blade <gen>
Conditions
Actions
Trigger - Add to Counter Base Dmg <gen> the event (Unit - (Triggering unit) Takes damage)
Counter Base Dmg
Events
Conditions
Actions
Set CounterBaseDamage = ((Damage taken) x CounterAbilityMultiplyer)
Hmm like that?
Counter Ability
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Triggering unit)) Equal to Hero of Blade
**********v What is this doing here for?? to make it semi random? v*********
(Random integer number between 1 and 100) Less than or equal to ((2 x (Level of Counter for (Triggering unit))) + 18)
Actions
Unit - Cause (Triggering unit) to damage (Attacking unit), dealing (CounterAbilityMultiplyer x CounterBaseDamage) damage of attack type Hero and damage type Normal
Unit - Pause (Attacking unit)
Special Effect - Create a special effect at (Position of (Attacked unit)) using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
Wait LvlOfCounter seconds
Unit - Unpause (Attacking unit)