Hello, thank you for taking the time to look at my question.
I'm trying to create an arena map, similar to Custom Hero Survival—I want every player's enemies to spawn as they click "enter arena" instead of spawning simultaneously, however. I can't quite figure out how to spawn the same unit for different players at different times, while making it MUI.
The outline is this:
My current trigger idea is to have a separate trigger with all wave information, which is triggered when a unit enters the arena. This creates MUI problems down the line, I fear. It is important to me that the individual waves can be configured easily (without having to scroll far down one way-too-long trigger).
The triggers I have at the moment (which function for a single player, but not multiple players):
I'm trying to create an arena map, similar to Custom Hero Survival—I want every player's enemies to spawn as they click "enter arena" instead of spawning simultaneously, however. I can't quite figure out how to spawn the same unit for different players at different times, while making it MUI.
The outline is this:
- Wave 1: Spawn 1 Furbolg
- Wave 2: Spawn 2 Furbolg
My current trigger idea is to have a separate trigger with all wave information, which is triggered when a unit enters the arena. This creates MUI problems down the line, I fear. It is important to me that the individual waves can be configured easily (without having to scroll far down one way-too-long trigger).
The triggers I have at the moment (which function for a single player, but not multiple players):
-
GateNorthEnter
-
Events
- Unit - A unit enters gateNorth <gen>
-
Conditions
- waveStart Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is in (Units owned by Player 1 (Red))) Equal to True
-
Then - Actions
- Destructible - Open Gate (Horizontal) 0000 <gen>
- Camera - Apply CameraArena <gen> for (Owner of (Triggering unit)) over 1.00 seconds
- Camera - Set a spacebar-point for (Owner of (Triggering unit)) at (Center of CameraArenaRegion <gen>)
- Unit - Order (Triggering unit) to Move To (Center of arenaNorth <gen>)
- Set wave = (wave + 1.00)
-
Else - Actions
- Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) for 5.00 seconds the text: |cffcc00This is not...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Wave 1
-
Events
- Game - wave becomes Equal to 1.00
- Conditions
-
Actions
- Set temppointArena = (Center of arenaNorthSpawn <gen>)
- Set waveUnitCount = 1
- Unit - Create waveUnitCount Furbolg for Player 12 (Brown) at temppointArena facing Default building facing degrees
- Unit - Wake up (Last created unit)
- Unit - Order (Last created unit) to Attack-Move To (Center of arenaNorth <gen>)
- Unit Group - Add (Last created unit) to wavegroupPlayer1
- Set unitsInGroup = waveUnitCount
- Custom script: call RemoveLocation(udg_temppointArena)
-
Events