- Joined
- Sep 1, 2007
- Messages
- 255
Hello all. I'm making an RPG and I need help with this trigger I made. It's called Essence of Thunder and it gives whoever has the passive ability a chance to either do bonus damage based on its Agility or get increased attack speed. The Action that does bonus damage is o.k., but I think the part that makes my hero kill himself is the increased attack speed Action. Here's the trigger:
-
Essence of Thunder
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacking unit) is A Hero) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Attacking unit) has buff Essence of Thunder (Mana Regeneration)) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to 12
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Unit - Add Essence of Thunder (Attack Speed) to (Last created unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Attacking unit)
-
-
Else - Actions
-
Do nothing
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to 15
-
-
Then - Actions
-
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((((Real((Agility of (Attacking unit) (Include bonuses)))) / 10.00) x 2.00) x 12.00) damage of attack type Spells and damage type Normal
-
Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
-
Wait 0.50 seconds
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-