kelogsloops
You can change this now in User CP.
- Reaction score
- 45
Okay I want to make an ability like this.
The thing is, I can't think of a way to make it deal the DAMAGE of the unit, plus the percentage thingo :< This is my trigger so far.
It doesn't work T_T.
Please, urgent help! ANYBODY!!! AAHH
Gives a chance to fire an extra shot at an enemy target. |n|n|cffffcc00Level 1|r -13% chance to fire an extra shot which deals 60% damage.
|n|cffffcc00Level 2|r - 15% chance to fire an extra shot which deals 70% damage.
|n|cffffcc00Level 3|r - 17% chance to fire an extra shot which deals 80% damage.
|n|cffffcc00Level 4|r - 19% chance to fire an extra shot which deals 90% damage.
The thing is, I can't think of a way to make it deal the DAMAGE of the unit, plus the percentage thingo :< This is my trigger so far.
Double Strafe
Events
Unit - A unit Is attacked
Conditions
(Random integer number between 1 and 100) Less than or equal to 13
(Level of Double Strafe for (Attacking unit)) Equal to 1
(Unit-type of (Attacking unit)) Equal to Centaur Raider
Actions
Set Temp_loc = (Position of (Attacking unit))
Set Attacker = (Attacking unit)
Set Target = (Attacked unit)
Trigger - Add to (This trigger) the event (Unit - Target Takes damage)
Set Value = (Damage taken)
Unit - Create 1 Centaur Raider Dummy for (Owner of (Attacked unit)) at Temp_loc facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 70.00% transparency
Unit - Order (Last created unit) to Attack (Attacked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Cause Attacker to damage (Attacked unit), dealing (Value x 0.60) damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_loc)
Custom script: call RemoveUnit(udg_Attacker)
Events
Unit - A unit Is attacked
Conditions
(Random integer number between 1 and 100) Less than or equal to 13
(Level of Double Strafe for (Attacking unit)) Equal to 1
(Unit-type of (Attacking unit)) Equal to Centaur Raider
Actions
Set Temp_loc = (Position of (Attacking unit))
Set Attacker = (Attacking unit)
Set Target = (Attacked unit)
Trigger - Add to (This trigger) the event (Unit - Target Takes damage)
Set Value = (Damage taken)
Unit - Create 1 Centaur Raider Dummy for (Owner of (Attacked unit)) at Temp_loc facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 70.00% transparency
Unit - Order (Last created unit) to Attack (Attacked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Cause Attacker to damage (Attacked unit), dealing (Value x 0.60) damage of attack type Hero and damage type Normal
Custom script: call RemoveLocation(udg_Temp_loc)
Custom script: call RemoveUnit(udg_Attacker)
Please, urgent help! ANYBODY!!! AAHH