CixxyZ
Active Member
- Reaction score
- 7
Trigger:
- SpawnMonstersP1
- Events
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Player 1 (Red) slot status) Equal to Is playing
- (Player 1 (Red) controller) Equal to User
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- Level Equal to 7
- Level Equal to 14
- Level Equal to 21
- Level Equal to 28
- Level Equal to 35
- Level Equal to 42
- Level Equal to 49
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- For each (Integer A) from 1 to MonsterAmount, do (Actions)
- Loop - Actions
- Set TempPoint = (Center of pointA <gen>)
- Unit - Create 1 MonsterType[(Level - (Random integer number between 1 and 6))] for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
- Unit Group - Add (Picked unit) to MonsterGroup[1]
- Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation (udg_TempPoint)
- Set TempPoint = (Center of Inters1 <gen>)
- Unit - Order (Last created unit) to Move To TempPoint
- Custom script: call RemoveLocation (udg_TempPoint)
- Wait SpawnDelay game-time seconds
- Loop - Actions
- Set MonsterSpawned = True
- Skip remaining actions
- For each (Integer A) from 1 to MonsterAmount, do (Actions)
- Else - Actions
- If - Conditions
- For each (Integer A) from 1 to MonsterAmount, do (Actions)
- Loop - Actions
- Set TempPoint = (Center of pointA <gen>)
- Unit - Create 1 MonsterType[Level] for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
- Unit Group - Add (Picked unit) to MonsterGroup[1]
- Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation (udg_TempPoint)
- Set TempPoint = (Center of Inters1 <gen>)
- Unit - Order (Last created unit) to Move To TempPoint
- Custom script: call RemoveLocation (udg_TempPoint)
- Wait SpawnDelay game-time seconds
- Loop - Actions
- Wait (SpawnDelay x 1.50) game-time seconds
- -------- summon boss --------
- Set MonsterSpawned = True
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
+Rep if you know why. It spawns perfectly 12 units in single player, but in multiplayer of around 4 people it makes only 4 units per person.