- Joined
- Jun 27, 2010
- Messages
- 3,253
This is a comand that asks every existing player if he wants creeps to be spawned or not. But I found out it's not working. Can you find my mistake?
-
start
-

Events
-


Time - Elapsed game time is 1.00 seconds
-
-

Conditions
-

Actions
-


Set IsItOk = 0
-


Set asking_players = (Number of players in (All players))
-
-
-
suggest
-

Events
-


Player - Player 1 (Red) types a chat message containing -spawns as An exact match
-


Player - Player 2 (Blue) types a chat message containing -spawns as An exact match
-


Player - Player 3 (Teal) types a chat message containing -spawns as An exact match
-


Player - Player 4 (Purple) types a chat message containing -spawns as An exact match
-


Player - Player 5 (Yellow) types a chat message containing -spawns as An exact match
-


Player - Player 6 (Orange) types a chat message containing -spawns as An exact match
-


Player - Player 7 (Green) types a chat message containing -spawns as An exact match
-


Player - Player 8 (Pink) types a chat message containing -spawns as An exact match
-


Player - Player 9 (Gray) types a chat message containing -spawns as An exact match
-


Player - Player 10 (Light Blue) types a chat message containing -spawns as An exact match
-


Player - Player 6 (Orange) types a chat message containing -spawns as An exact match
-


Player - Player 11 (Dark Green) types a chat message containing -spawns as An exact match
-


Player - Player 12 (Brown) types a chat message containing -spawns as An exact match
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of players in (All players controlled by a User player)) Greater than 1
-
-



Then - Actions
-




Game - Display to (All players) the text: (Color[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r is suggesting |c00FF8000spawns|r. If you agree type -ok, if you do not agree type -no. After no the vote will be reset!))
-




Trigger - Turn on calculating01 <gen>
-




Trigger - Turn on calculating02 <gen>
-




Trigger - Turn on calculating03 <gen>
-




Trigger - Turn on calculating04 <gen>
-




Trigger - Turn on calculating05 <gen>
-




Trigger - Turn on calculating06 <gen>
-




Trigger - Turn on calculating07 <gen>
-




Trigger - Turn on calculating08 <gen>
-




Trigger - Turn on calculating09 <gen>
-




Trigger - Turn on calculating10 <gen>
-




Trigger - Turn on calculating11 <gen>
-




Trigger - Turn on calculating12 <gen>
-




Trigger - Turn on checking <gen>
-




Trigger - Turn on no <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of players in (All players controlled by a User player)) Equal to 1
-
-



Then - Actions
-




Trigger - Turn on spawning <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
-
checking
-

Events
-


Time - Every 0.10 seconds of game time
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




no Equal to True
-
-



Then - Actions
-




Trigger - Turn off calculating01 <gen>
-




Trigger - Turn off calculating02 <gen>
-




Trigger - Turn off calculating03 <gen>
-




Trigger - Turn off calculating04 <gen>
-




Trigger - Turn off calculating05 <gen>
-




Trigger - Turn off calculating06 <gen>
-




Trigger - Turn off calculating07 <gen>
-




Trigger - Turn off calculating08 <gen>
-




Trigger - Turn off calculating09 <gen>
-




Trigger - Turn off calculating10 <gen>
-




Trigger - Turn off calculating11 <gen>
-




Trigger - Turn off calculating12 <gen>
-




Set IsItOk = 0
-




Trigger - Turn on suggest <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




IsItOk Equal to asking_players
-
-



Then - Actions
-




Game - Display to (All players) the text: (Color[(Player number of (Triggering player))] + All agreed |c00FF8000spawns|r.)
-




Trigger - Turn on spawning <gen>
-




Trigger - Turn off suggest <gen>
-




Trigger - Turn off calculating01 <gen>
-




Trigger - Turn off calculating02 <gen>
-




Trigger - Turn off calculating03 <gen>
-




Trigger - Turn off calculating04 <gen>
-




Trigger - Turn off calculating05 <gen>
-




Trigger - Turn off calculating06 <gen>
-




Trigger - Turn off calculating07 <gen>
-




Trigger - Turn off calculating08 <gen>
-




Trigger - Turn off calculating09 <gen>
-




Trigger - Turn off calculating10 <gen>
-




Trigger - Turn off calculating11 <gen>
-




Trigger - Turn off calculating12 <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
-
calculating01
-

Events
-


Player - Player 1 (Red) types a chat message containing -ok as An exact match
-
-

Conditions
-

Actions
-


Set IsItOk = (IsItOk + 1)
-


Trigger - Turn off (This trigger)
-
-
-
no
-

Events
-


Player - Player 1 (Red) types a chat message containing -no as An exact match
-


Player - Player 2 (Blue) types a chat message containing -no as An exact match
-


Player - Player 3 (Teal) types a chat message containing -no as An exact match
-


Player - Player 4 (Purple) types a chat message containing -no as An exact match
-


Player - Player 5 (Yellow) types a chat message containing -no as An exact match
-


Player - Player 6 (Orange) types a chat message containing -no as An exact match
-


Player - Player 7 (Green) types a chat message containing -no as An exact match
-


Player - Player 8 (Pink) types a chat message containing -no as An exact match
-


Player - Player 9 (Gray) types a chat message containing -no as An exact match
-


Player - Player 10 (Light Blue) types a chat message containing -no as An exact match
-


Player - Player 6 (Orange) types a chat message containing -no as An exact match
-


Player - Player 11 (Dark Green) types a chat message containing -no as An exact match
-


Player - Player 12 (Brown) types a chat message containing -no as An exact match
-
-

Conditions
-

Actions
-


Set no = True
-
-
-
spawning
-

Events
-


Time - Every 45.00 seconds of game time
-
-

Conditions
-

Actions
-


Unit - Create 8 Footman for (Random player from Team_ALLY) at (Center of Alli Spawn <gen>) facing Default building facing degrees
-


Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
-



Loop - Actions
-




Unit - Order (Picked unit) to Attack-Move To (Center of Horde Spawn <gen>)
-
-
-


Unit - Create 8 Grunt for (Random player from Team_HORDE) at (Center of Horde Spawn <gen>) facing Default building facing degrees
-


Unit Group - Pick every unit in (Units of type Grunt) and do (Actions)
-



Loop - Actions
-




Unit - Order (Picked unit) to Attack-Move To (Center of Alli Spawn <gen>)
-
-
-
-
Last edited:
