- Joined
- Jun 10, 2013
- Messages
- 473
hey I've been trying to make a critical strike aura from scratch but I've been unlucky, with my trigger every thing works perfectly except no damage is ever dealt (deals zero multiplied damage) . any help would be greatly appreciated
-
Crit Aura
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
- Set loc = (Position of (Attacking unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Attacking unit) has buff Crtical Strike Aura L1) Equal to True
-
Then - Actions
- -------- -------- Damage Multiplier -------- --------
- Set CriticalMultiplier = 2.00
- -------- -------- Random Percentage -------- --------
- Set RandomReal = (Random real number between 0.00 and 100.00)
- -------- -------- Critical Percentage -------- --------
- Set CriticalPercentage = 15.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RandomReal Less than CriticalPercentage
-
Then - Actions
- Set DamageDealt = ((Damage taken) x CriticalMultiplier)
- -------- -------- Anti-Infinite Loop -------- --------
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing DamageDealt damage of attack type Chaos and damage type Universal
- Trigger - Turn off (This trigger)
- Trigger - Turn on (This trigger)
- -------- -------- Shows a Red Floating Text -------- --------
- Floating Text - Create floating text that reads ((String((Integer(DamageDealt)))) + !) at loc with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Events