Hi All,
I have a trigger that displays floating text when a unit reaches a certain HP threshold as well as does a few animations on the caster:
Thanks for the help
I have a trigger that displays floating text when a unit reaches a certain HP threshold as well as does a few animations on the caster:
-
D4ShadStrike
-
Events
-
Game - PreDamageEvent becomes Equal to 1.00
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
DamageEventTarget Equal to D4Boss
-
(Life of D4Boss) Less than or equal to ((Real((Max HP of D4Boss))) x 0.75)
-
D4BossPhase1 Equal to False
-
-
-
And - All (Conditions) are true
-
Conditions
-
DamageEventTarget Equal to D4Boss
-
(Life of D4Boss) Less than or equal to ((Real((Max HP of D4Boss))) x 0.50)
-
D4BossPhase2 Equal to False
-
-
-
And - All (Conditions) are true
-
Conditions
-
DamageEventTarget Equal to D4Boss
-
(Life of D4Boss) Less than or equal to ((Real((Max HP of D4Boss))) x 0.25)
-
D4BossPhase3 Equal to False
-
-
-
And - All (Conditions) are true
-
Conditions
-
DamageEventTarget Equal to D4Boss
-
(Life of D4Boss) Less than or equal to ((Real((Max HP of D4Boss))) x 0.10)
-
D4BossPhase4 Equal to False
-
-
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D4BossPhase1 Equal to False
-
-
Then - Actions
-
Set VariableSet D4BossPhase1 = True
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D4BossPhase2 Equal to False
-
-
Then - Actions
-
Set VariableSet D4BossPhase2 = True
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D4BossPhase3 Equal to False
-
-
Then - Actions
-
Set VariableSet D4BossPhase3 = True
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D4BossPhase4 Equal to False
-
-
Then - Actions
-
Set VariableSet D4BossPhase4 = True
-
-
Else - Actions
-
-
-
-
-
-
-
-
Floating Text - Create floating text that reads |cff800080Die!!!|r above D4Boss with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.75 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-
Set VariableSet D4TempInt = (Random integer number between 1 and 2)
-
Unit - Remove All buffs from D4Boss
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D4TempInt Equal to 1
-
-
Then - Actions
-
Unit - Make D4Boss face 90.00 over 0.00 seconds
-
Unit - Pause D4Boss
-
Animation - Play D4Boss's channel animation
-
Set VariableSet D4BossStrikeRegion = D4BossUpper <gen>
-
-
Else - Actions
-
Unit - Make D4Boss face 270.00 over 0.00 seconds
-
Unit - Pause D4Boss
-
Animation - Play D4Boss's channel animation
-
Set VariableSet D4BossStrikeRegion = D4BossLower <gen>
-
-
-
Wait 2.00 game-time seconds
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in D4BossStrikeRegion) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Set VariableSet D4TempLoc = (Position of D4Boss)
-
Unit - Create 1 dummy_unit for (Owner of D4Boss) at D4TempLoc facing D4TempLoc
-
Unit - Add a 0.30 second Generic expiration timer to (Last created unit)
-
Unit - Add Shadow Strike D4 Boss to (Last created unit)
-
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
-
-
Else - Actions
-
-
-
-
Unit - Unpause D4Boss
-
Custom script: call RemoveLocation(udg_D4TempLoc)
-
Custom script: call RemoveRect(udg_D4BossStrikeRegion)
-
-
Thanks for the help
Last edited: