- Joined
- Mar 23, 2008
- Messages
- 1,804
Hey there, i've made this trigger for a spell that has a certain percentage (right now 100, but thats just for testing it out) to deal a percentage (this level 5 percentage) of the units maximum hp in extra damage:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Level of Ogre Smash for (Attacking unit)) Equal to 1
-


(Random integer number between 1 and 100) Less than or equal to 100
-
-

Then - Actions
-


Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Max life of (Attacking unit)) x ((Real((Level of Ogre Smash for (Attacking unit)))) x 0.05)) damage of attack type Hero and damage type Normal
-


Floating Text - Create floating text that reads (String(((Integer((Max life of (Attacking unit)))) x ((Level of Ogre Smash for (Attacking unit)) x (Integer(0.05)))))) at (Position of (Attacking unit)) with Z offset 0.00, using font size 12.00, color (50.00%, 50.00%, 100.00%), and 0.00% transparency
-


Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-


Floating Text - Change (Last created floating text): Disable permanence
-


Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
-


Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
-


Special Effect - Create a special effect attached to the weapon of (Attacking unit) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
-


Special Effect - Destroy (Last created special effect)
-
-

Else - Actions
-


