- Joined
- Dec 1, 2010
- Messages
- 346
So i triggered quite a bit today and to my suprise most of it worked. However after updating the forces and adding 8 slots for the players in the game i noticed the following trigger seems to be incorrectly spawning units for players that don't have an active user in them.
I want the player group to pick only players that are controlled by a human and currently in the game.
What would be the best way to go about this.? I assumed all players controlled by a user player would be correct but it also spawns units for empty player slots. for reference here are my player properties. after adding players here my trigger stopped working like intended.
I want the player group to pick only players that are controlled by a human and currently in the game.
What would be the best way to go about this.? I assumed all players controlled by a user player would be correct but it also spawns units for empty player slots. for reference here are my player properties. after adding players here my trigger stopped working like intended.
-
deploy1
-
Events
-
Game - waveDeploy becomes Equal to 1.00
-
-
Conditions
-
waveNumber Equal to 0
-
-
Actions
-
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Bandit for Player 21 (Coal) at (Center of creepIsland[(Player number of (Picked player))]) facing Default building facing degrees
-
Hashtable - Save (Player number of (Picked player)) as 1 of (Key (Last created unit).) in hashtable.
-
Set VariableSet waveUnit[(Integer(((String((Player number of (Picked player)))) + (String(1)))))] = (Last created unit)
-
Unit - Create 1 Bandit for Player 21 (Coal) at (Center of creepIsland[(Player number of (Picked player))]) facing Default building facing degrees
-
Hashtable - Save (Player number of (Picked player)) as 1 of (Key (Last created unit).) in hashtable.
-
Set VariableSet waveUnit[(Integer(((String((Player number of (Picked player)))) + (String(2)))))] = (Last created unit)
-
Unit - Create 1 Bandit for Player 21 (Coal) at (Center of creepIsland[(Player number of (Picked player))]) facing Default building facing degrees
-
Hashtable - Save (Player number of (Picked player)) as 1 of (Key (Last created unit).) in hashtable.
-
Set VariableSet waveUnit[(Integer(((String((Player number of (Picked player)))) + (String(3)))))] = (Last created unit)
-
Unit - Create 1 Bandit for Player 21 (Coal) at (Center of creepIsland[(Player number of (Picked player))]) facing Default building facing degrees
-
Hashtable - Save (Player number of (Picked player)) as 1 of (Key (Last created unit).) in hashtable.
-
Set VariableSet waveUnit[(Integer(((String((Player number of (Picked player)))) + (String(4)))))] = (Last created unit)
-
Unit - Create 1 Bandit for Player 21 (Coal) at (Center of creepIsland[(Player number of (Picked player))]) facing Default building facing degrees
-
Hashtable - Save (Player number of (Picked player)) as 1 of (Key (Last created unit).) in hashtable.
-
Set VariableSet waveUnit[(Integer(((String((Player number of (Picked player)))) + (String(5)))))] = (Last created unit)
-
Set VariableSet waveUnitMax[(waveNumber + 1)] = 5
-
-
-
Set VariableSet waveDeploy = 0.00
-
Set VariableSet waveNumber = 1
-
-