You can't concatenate a number onto a variable name to make a new variable. (That's what it looks like you're trying to do.)
Instead, use an array:
FYI, concatenation is really only a string operation - not for variable names, operators, int, floats, etc. (Though Blitz does automatically convert -- or cast -- ints and floats to strings when you use the + operator on them with another string.)
Instead, use an array:
Dim light(13) For i = 1 To 13 light(i) = CreateLight() Next
FYI, concatenation is really only a string operation - not for variable names, operators, int, floats, etc. (Though Blitz does automatically convert -- or cast -- ints and floats to strings when you use the + operator on them with another string.)