- Joined
- Sep 20, 2024
- Messages
- 31
Hello! I'm redesigning phase 2 of a boss fight to make it more fun.
How it should work: The boss casts a fake spell just to play a channelling animation, then max 6 enemy units within 700 range of boss get max 1 invisible unit on top of each enemy unit, the invisible unit casts level 1 rain of fire on each location of enemy unit thay spawned on top of.
Problem with current trigger: Right now the boss will spawn more than 1 invisible unit on top of each enemy unit if there are less than 6 enemy units within 700 range. If I can figure out how to make it so max 1 invisible unit spawn on top of each enemy unit then I could delete the second action (Units withint 500 range...) and greater than 2 condition which I added to reduce chance of a unit getting more than 1 rain of fire on them.
How it should work: The boss casts a fake spell just to play a channelling animation, then max 6 enemy units within 700 range of boss get max 1 invisible unit on top of each enemy unit, the invisible unit casts level 1 rain of fire on each location of enemy unit thay spawned on top of.
Problem with current trigger: Right now the boss will spawn more than 1 invisible unit on top of each enemy unit if there are less than 6 enemy units within 700 range. If I can figure out how to make it so max 1 invisible unit spawn on top of each enemy unit then I could delete the second action (Units withint 500 range...) and greater than 2 condition which I added to reduce chance of a unit getting more than 1 rain of fire on them.
-
RainOfFire
-

Events
-


Time - Every 9.00 seconds of game time
-
-

Conditions
-


(Boss is hidden) Equal to False
-
-

Actions
-


Set VariableSet Point15 = (Position of Boss)
-


Set VariableSet UnitGroup8 = (Units within 500.00 of Point15 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 1 (Red).) Equal to True)).)
-


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



If - Conditions
-




(Number of units in UnitGroup8) Greater than 2
-
-



Then - Actions
-




Unit - Order Boss to Orc Tauren Chieftain - War Stomp.
-




Set VariableSet UnitGroup9 = (Units within 700.00 of Point15 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 1 (Red).) Equal to True)).)
-




Set VariableSet BossInteger2 = 0
-




Unit Group - Pick every unit in UnitGroup9 and do (Actions)
-





Loop - Actions
-






Set VariableSet BossInteger2 = (BossInteger2 + 1)
-






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







If - Conditions
-








BossInteger2 Less than 6
-
-







Then - Actions
-








Wait (Random real number between 0.00 and 0.50) seconds
-








Set VariableSet Point17 = (Position of (Picked unit))
-








Unit - Create 1 Firerain (Level 1) for Player 1 (Red) at Point17 facing Default building facing degrees
-








Unit - Order (Last created unit) to Neutral Pit Lord - Rain Of Fire Point17
-








Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
-








Custom script: call RemoveLocation(udg_Point17)
-
-







Else - Actions
-
-
-
-




Custom script: call DestroyGroup(udg_UnitGroup9)
-
-



Else - Actions
-
-


Custom script: call DestroyGroup(udg_UnitGroup8)
-


Custom script: call RemoveLocation(udg_Point15)
-
-
Last edited:




