pride2518
New Member
- Reaction score
- 4
How do I make it so that if X player has more than X units of type Fiend, it will not create units for him anymore? Here is the trigger I'm using to spawn.
Trigger:
- Spawn
- Events
- Time - Every 10.00 seconds of game time
- Conditions
- Actions
- Set Temp_Point = (Center of RedB <gen>)
- If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 1 (Red) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of BlueB <gen>)
- If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 2 (Blue) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of TealB <gen>)
- If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 3 (Teal) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of PurpB <gen>)
- If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 4 (Purple) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of YellowB <gen>)
- If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 5 (Yellow) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of OrangeB <gen>)
- If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 6 (Orange) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of GreenB <gen>)
- If ((Player 7 (Green) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 7 (Green) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Set Temp_Point = (Center of PinkB <gen>)
- If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Unit - Create 1 Fiend for Player 8 (Pink) at Temp_Point facing Default building facing degrees) else do (Do nothing)
- Custom script: call RemoveLocation (udg_Temp_Point)
- Events