I had a trigger working fine. I added a line or two, and now every time it's executed red error text appears on the left.
The error message I get says something along the lines of
"Trigger error in "gt_Next_Level_func" error occured in starting Starcraft 2. Please try again.e_arrayindexoverflow"
It does this every time the attacker's food becomes zero, but the trigger runs normally. Minerals are given, resources given is displayed and it goes to the next level.
Wondering if I should worry about this or ignore it for now?
-
Next Level
-
Events
- Player - Player 15 Supplies Used changes
- Player - Player 14 Supplies Used changes
-
Local Variables
- Wave Income = 0 <Integer>
-
Conditions
-
And
-
Conditions
- (Player 15 Supplies Used) == 0
- (Player 14 Supplies Used) == 0
-
Conditions
-
And
-
Actions
- ------- Timer for next wave
- UI - Clear All Messages for (All players)
- Timer - Start WaveTimer as a One Shot timer that will expire in 10.0 Game Time seconds
- Timer - Create a timer window for (Last started timer), with the title (Combine ("Level ", (Combine ((Text(WaveNumber)), " in...")))), using Remaining time (initially Visible)
- Variable - Set TimerWindow = (Last created timer window)
- Timer - Show TimerWindow for (All players)
- UI - Display (Combine ("Congratulations on surviving level ", (Combine ((Text((WaveNumber - 1))), ".")))) for (All players) to Directive area
- ------- Income = 2x level
- Variable - Set Wave Income = ((WaveNumber - 1) * 2)
-
Player Group - Pick each player in (All players) and do (Actions)
-
Actions
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
- PlayerAlive[(Picked player)] == true
-
Then
- Player - Modify player (Picked player) Minerals: Add Wave Income
- UI - Display (Combine ("You have recieved ", (Combine ((Text(Wave Income)), " minerals for surviving this wave.")))) for Group[(Picked player)] to Subtitle area
- Else
-
If
-
General - If (Conditions) then do (Actions) else do (Actions)
-
Actions
- General - Wait 0.7 Game Time seconds
- Sound - Play Round_Completed (1) for (All players) (at 200.0% volume, skip the first 0.0 seconds)
-
Events
The error message I get says something along the lines of
"Trigger error in "gt_Next_Level_func" error occured in starting Starcraft 2. Please try again.e_arrayindexoverflow"
It does this every time the attacker's food becomes zero, but the trigger runs normally. Minerals are given, resources given is displayed and it goes to the next level.
Wondering if I should worry about this or ignore it for now?