I get this error quite a lot. What does it mean? Yes, sure, an index that's overflowing, so I'm adressing, in example, paladin[5] when the array goes until [4].
But it has to have to do with something else, as all my variable arrays are like paladin[4] and i'm adressing a max of paladin[4] in my for loops.
Both my initialization trigger and the one that kills give an error, i'll copy the parts with arrays :)
Initialization:
General - For each integer X from 1 to 4 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player X) == Playing
Then
Variable - Modify Amount of Players: + 1
Unit - Create 1 Commander for player X at (Start location of player X) facing (Position of Base [38.00, 34.00]) (No Options)
Variable - Set Commander[X] = (Last created unit)
Kill:
General - For each integer X from 1 to Amount of Players with increment 1, do (Actions)
Actions
Player - Modify player X Minerals: Add 1
Player - Modify player 6 Minerals: Subtract 1
Text Tag - Create a text tag with the text "+1" for (Player group((Owner of Commander[X]))), using a font size of 24, at (Position of Commander[X]) and height offset 1.0 (initially Visible) can also set whether false is enforced
Text Tag - Set Duration time for (Last created text tag) to 2.0 seconds
Else
Text Tag - Create a text tag with the text ("+" + (Text((Minerals cost of (Unit type of (Triggering unit)))))) for (Player group((Owner of (Killing unit)))), using a font size of 24, at (Position of (Triggering unit)) and height offset 1.0 (initially Visible) can also set whether false is enforced
Text Tag - Set Duration time for (Last created text tag) to 2.0 seconds
Variable - Modify Player Kills[(Killing player)]: + 1
Leaderboard - Set Leaderboard item text at column 2 and row (Killing player) to (Text(Player Kills[(Killing player)]))
General - Wait 2.0 Game Time seconds
Text Tag - Destroy (Last created text tag)
Mmh this new editor is annoying :)
EDIT:
Due to some miracle I have no more problems. I really have no idea why, but hey, I'm happy :)
If you are addressing paladin[4] and the paladin array is <Integer[4]>, that's your error.
Array cells start from 0, so it needs to have a 5+ length :)
I get this error quite a lot. What does it mean? Yes, sure, an index that's overflowing, so I'm adressing, in example, paladin[5] when the array goes until [4]. But it has to have to do with something else, as all my variable arrays are like paladin[4] and i'm adressing a max of paladin[4] in my for loops.
does it say a function or a trigger that caused it?
Both my initialization trigger and the one that kills give an error, i'll copy the parts with arrays :)
Initialization:
Kill:
Mmh this new editor is annoying :)
EDIT: Due to some miracle I have no more problems. I really have no idea why, but hey, I'm happy :)
If you are addressing paladin[4] and the paladin array is <Integer[4]>, that's your error.
Array cells start from 0, so it needs to have a 5+ length :)