- Joined
- Mar 17, 2005
- Messages
- 135
Ok, this ability is really fustrating me and i can't figure out why it will not work. When you cast it, the ability (acid bomb) takes away defence and the triggers i set up will remove strength and agility based on the ability level.
My problem: i can't figure out how to add the stats back to the hero after 15 seconds or whenever the modified acid bomb wears off.
Here is my trigger setup:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rabies
Actions
Floating Text - Create floating text that reads |CFFFF0000-Strength... at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 8.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Hero - Modify Strength of (Target unit of ability being cast): Subtract (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Hero - Modify Agility of (Target unit of ability being cast): Subtract (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Hero - Modify Strength of (Target unit of ability being cast): Add (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Hero - Modify Agility of (Target unit of ability being cast): Add (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
My problem: i can't figure out how to add the stats back to the hero after 15 seconds or whenever the modified acid bomb wears off.
Here is my trigger setup:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rabies
Actions
Floating Text - Create floating text that reads |CFFFF0000-Strength... at (Position of (Target unit of ability being cast)) with Z offset 0.00, using font size 8.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Hero - Modify Strength of (Target unit of ability being cast): Subtract (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Hero - Modify Agility of (Target unit of ability being cast): Subtract (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Hero - Modify Strength of (Target unit of ability being cast): Add (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))
Hero - Modify Agility of (Target unit of ability being cast): Add (5 x (Integer((Real((Level of Rabies for (Triggering unit)))))))