Hi
In my map, enemies will come from various regions. 1 different region for each player.
So when the game starts, if you are 3 players, 3 Gateways will be open.
You should be able to type in -gw to open yet another one, making 4 gateways open for 3 players afterwards.
It is typically the same trigger as in X Hero Siege, if people know this map.
So far my triggers work, but I cannot make the -gw command work. Can someone spot my error?
These are my triggers:
Trigger 1 will count how many players have joined the game. Next it will count the numbers of which regions should be opened.
In my map, enemies will come from various regions. 1 different region for each player.
So when the game starts, if you are 3 players, 3 Gateways will be open.
You should be able to type in -gw to open yet another one, making 4 gateways open for 3 players afterwards.
It is typically the same trigger as in X Hero Siege, if people know this map.
So far my triggers work, but I cannot make the -gw command work. Can someone spot my error?
These are my triggers:
Trigger 1 will count how many players have joined the game. Next it will count the numbers of which regions should be opened.
-
Start Area Count Players
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Integer = 0
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) controller) Equal to User
-
((Picked player) slot status) Equal to Is playing
-
-
Then - Actions
-
Set Integer = (Integer + 1)
-
Player Group - Add (Picked player) to PlayerGroup
-
-
Else - Actions
-
-
-
-
Set PlayerCount = Integer
-
Set Integer = 1
-
Set Start_Region_Integer = 0
-
For each (Integer A) from Integer to PlayerCount, do (Actions)
-
Loop - Actions
-
Set Start_Region_Integer = (Start_Region_Integer + 1)
-
Set Start_Region_String[Start_Region_Integer] = open
-
-
-
-
-
Start Area Open Gateways
-
Events
-
Player - Player 1 (Red) types a chat message containing -gw as An exact match
-
-
Conditions
-
Actions
-
Set Start_Region_Integer = (Start_Region_Integer + 1)
-
Set Start_Region_String[Start_Region_Integer] = open
-
Game - Display to (All players) the text: (String(Start_Region_Integer))
-
-
-
Start Area Regions
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Start_Region[1] = Start Gateway 1 <gen>
-
Set Start_Region[2] = Start Gateway 2 <gen>
-
Set Start_Region[3] = Start Gateway 3 <gen>
-
Set Start_Region[4] = Start Gateway 4 <gen>
-
Set Start_Region[5] = Start Gateway 5 <gen>
-
Set Start_Region[6] = Start Gateway 6 <gen>
-
Set Start_Region[7] = Start Gateway 7 <gen>
-
Set Start_Region[8] = Start Gateway 8 <gen>
-
Set Start_Region[9] = Start Gateway 9 <gen>
-
Set Start_Region[10] = Start Gateway 10 <gen>
-
Set Start_Region_Point[1] = (Center of Start Gateway 1 <gen>)
-
Set Start_Region_Point[2] = (Center of Start Gateway 2 <gen>)
-
Set Start_Region_Point[3] = (Center of Start Gateway 3 <gen>)
-
Set Start_Region_Point[4] = (Center of Start Gateway 4 <gen>)
-
Set Start_Region_Point[5] = (Center of Start Gateway 5 <gen>)
-
Set Start_Region_Point[6] = (Center of Start Gateway 6 <gen>)
-
Set Start_Region_Point[7] = (Center of Start Gateway 7 <gen>)
-
Set Start_Region_Point[8] = (Center of Start Gateway 8 <gen>)
-
Set Start_Region_Point[9] = (Center of Start Gateway 9 <gen>)
-
Set Start_Region_Point[10] = (Center of Start Gateway 10 <gen>)
-
Set Start_Region_String[1] = closed
-
Set Start_Region_String[2] = closed
-
Set Start_Region_String[3] = closed
-
Set Start_Region_String[4] = closed
-
Set Start_Region_String[5] = closed
-
Set Start_Region_String[6] = closed
-
Set Start_Region_String[7] = closed
-
Set Start_Region_String[8] = closed
-
Set Start_Region_String[9] = closed
-
Set Start_Region_String[10] = closed
-
-
-
Start Area Gateway Waves
-
Events
-
Time - Every 5.00 seconds of game time
-
-
Conditions
-
Actions
-
Set Integer = 1
-
For each (Integer A) from Integer to PlayerCount, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Start_Region_String[Integer] Equal to open
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Wave_Level Equal to lvl 1
-
-
Then - Actions
-
Unit - Create 1 Footman for Player 1 (Red) at Start_Region_Point[Integer] facing Default building facing degrees
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Wave_Level Equal to lvl 2
-
-
Then - Actions
-
Unit - Create 1 Rifleman for Player 1 (Red) at Start_Region_Point[Integer] facing Default building facing degrees
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Wave_Level Equal to lvl 3
-
-
Then - Actions
-
Unit - Create 1 Knight for Player 1 (Red) at Start_Region_Point[Integer] facing Default building facing degrees
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-