D
Deathshadow-
Guest
How can i change this backstab ability to work so when use my throw ninja star and hit them in the back with my ninja star it does the backstab damage. My ninja star is like in archery tactics where u click screen where u want it to go.
Events
Unit - A unit owned by Player 1 (Red) Is attacked
Unit - A unit owned by Player 2 (Blue) Is attacked
Unit - A unit owned by Player 3 (Teal) Is attacked
Unit - A unit owned by Player 4 (Purple) Is attacked
Unit - A unit owned by Player 5 (Yellow) Is attacked
Unit - A unit owned by Player 7 (Green) Is attacked
Unit - A unit owned by Player 8 (Pink) Is attacked
Unit - A unit owned by Player 9 (Gray) Is attacked
Unit - A unit owned by Player 10 (Light Blue) Is attacked
Unit - A unit owned by Player 11 (Dark Green) Is attacked
Unit - A unit owned by Player 12 (Brown) Is attacked
Actions
Set Facing_Attacking_Unit = (Facing of (Attacking unit))
Set Facing_Attacked_Unit = (Facing of (Attacked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Facing_Attacking_Unit Less than or equal to (Facing_Attacked_Unit + 60.00)
Facing_Attacking_Unit Greater than or equal to (Facing_Attacked_Unit - 60.00)
Then - Actions
Floating Text - Create floating text that reads -100 at (Position of (Attacked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 100.00)
Special Effect - Create a special effect attached to the origin of (Attacked unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Else - Action
Events
Unit - A unit owned by Player 1 (Red) Is attacked
Unit - A unit owned by Player 2 (Blue) Is attacked
Unit - A unit owned by Player 3 (Teal) Is attacked
Unit - A unit owned by Player 4 (Purple) Is attacked
Unit - A unit owned by Player 5 (Yellow) Is attacked
Unit - A unit owned by Player 7 (Green) Is attacked
Unit - A unit owned by Player 8 (Pink) Is attacked
Unit - A unit owned by Player 9 (Gray) Is attacked
Unit - A unit owned by Player 10 (Light Blue) Is attacked
Unit - A unit owned by Player 11 (Dark Green) Is attacked
Unit - A unit owned by Player 12 (Brown) Is attacked
Actions
Set Facing_Attacking_Unit = (Facing of (Attacking unit))
Set Facing_Attacked_Unit = (Facing of (Attacked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Facing_Attacking_Unit Less than or equal to (Facing_Attacked_Unit + 60.00)
Facing_Attacking_Unit Greater than or equal to (Facing_Attacked_Unit - 60.00)
Then - Actions
Floating Text - Create floating text that reads -100 at (Position of (Attacked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 100.00)
Special Effect - Create a special effect attached to the origin of (Attacked unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Else - Action


