- Joined
- Jun 28, 2008
- Messages
- 673
I have a problem with a quick non-MUI damage detection system I made in GUI. I have a Backstab Ability that works just fine and triggers when the attacked unit takes damage from the back.
-
Backstab Setup
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Level of Dual Agility for (Attacking unit)) Greater than or equal to 1
-
-

Actions
-


Set tempAttacker = (Attacking unit)
-


Set tempAttacked = (Attacked unit)
-


Trigger - Add to Backstab Damage <gen> the event (Unit - tempAttacked's life becomes Less than (Life of tempAttacked))
-
-
-
Backstab Damage
-

Events
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




And - All (Conditions) are true
-





Conditions
-






(Facing of tempAttacked) Less than or equal to ((Facing of tempAttacker) + 15.00)
-






(Facing of tempAttacked) Greater than or equal to ((Facing of tempAttacker) - 15.00)
-
-
-
-



Then - Actions
-




Unit - Cause tempAttacker to damage tempAttacked, dealing 25.00 damage of attack type Pierce and damage type Acid
-




Special Effect - Create a special effect attached to the chest of tempAttacked using Abilities\Weapons\HydraliskImpact\HydraliskImpact.mdl
-




Special Effect - Destroy (Last created special effect)
-




Floating Text - Create floating text that reads Backstab! above tempAttacked with Z offset 0.00, using font size 7.50, color (100.00%, 50.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 32.00 towards 90.00 degrees
-




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




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



Else - Actions
-




Do nothing
-
-
-
-
-
Stealth effect setup
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Attacking unit) has buff Stealth Technique ) Equal to True
-
-

Actions
-


Set tempAttacker2 = (Attacking unit)
-


Set tempAttacked2 = (Attacked unit)
-


Trigger - Add to Stealth effect <gen> the event (Unit - tempAttacked2's life becomes Less than (Life of tempAttacked2))
-
-
-
Stealth effect
-

Events
-

Conditions
-

Actions
-


Unit - Cause tempAttacker2 to damage tempAttacked2, dealing 50.00 damage of attack type Pierce and damage type Poison
-


Unit - Remove Stealth Technique buff from tempAttacker2
-


Animation - Change tempAttacker2's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-


Floating Text - Create floating text that reads 50! above tempAttacked2 with Z offset 0.00, using font size 7.50, color (100.00%, 25.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 32.00 towards 90.00 degrees
-


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


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





