- Joined
- Mar 9, 2023
- Messages
- 75
Hi! I have an enemy which uses the hydra ability to split into copies. Once it reaches a certain amount, they fuse into a larger enemy. Problem is that abilities that travel and hits multiple times will severely abuse it. What happens is that too many manage to spawn before it procs.
Edit: Here's the final trigger after getting help.
-
Smaile
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
(Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to |c0000FF00[Slush]|r))) Greater than or equal to (Players x 7)
-
-
Actions
-
Set VariableSet SlimeLocation = (Center of BOSSARENA <gen>)
-
Set VariableSet SlimeGroup = (Units of type |c0000FF00[Slush]|r)
-
Unit Group - Pick every unit in SlimeGroup and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
-
Custom script: call DestroyGroup(udg_SlimeGroup)
-
Unit - Create 1 |c008C0000[Slime]|r for Player 12 (Brown) at SlimeLocation facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_SlimeLocation)
-
-
Edit: Here's the final trigger after getting help.
-
SlimeFuse
-
Events
-
Unit - A unit enters BOSSARENA <gen>
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to |c0000FF00[Slush]|r
-
-
Actions
-
Set VariableSet SlushCounter = (SlushCounter + 1)
-
Unit Group - Add (Triggering unit) to SlushGroup
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SlushCounter Greater than or equal to (Players x 7)
-
-
Then - Actions
-
Set VariableSet TempGroup = (Units in BOSSARENA <gen> matching ((Unit-type of (Matching unit)) Equal to |c0000FF00[Slush]|r))
-
Unit Group - Add all units of TempGroup to SlushGroup
-
Custom script: call DestroyGroup(udg_TempGroup)
-
Unit Group - Pick every unit in SlushGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet TempPoint = (Position of (Picked unit))
-
Unit - Remove (Picked unit) from the game
-
Special Effect - Create a special effect at TempPoint using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_TempPoint)
-
-
-
Unit Group - Remove all units from SlushGroup.
-
Set VariableSet SlushCounter = 0
-
Set VariableSet SlimeLocation = (Center of BOSSARENA <gen>)
-
Unit - Create 1 |c008C0000[Slime]|r for Player 12 (Brown) at SlimeLocation facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_SlimeLocation)
-
-
Else - Actions
-
-
-
-
SlimeDie
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to |c0000FF00[Slush]|r
-
-
Actions
-
Set VariableSet SlushCounter = (SlushCounter - 1)
-
Unit Group - Remove (Triggering unit) from SlushGroup.
-
-
Last edited: