Code: Select all
SetArray(me,value,index);
Moderator: rbodleyscott
Code: Select all
SetArray(me,value,index);
There is really only one 256 x 8 system array, and it is likely to be re-used by the vanilla scripts in the interim. So don't try using it. It is rather a fossil leftover from the old STUB engine, anyway. ARCHON supports proper user defined global variables and arrays. The old system Array is only used in the current scripts because it wasn't worth changing them in code carried forward from Pike and Shot when we switched engines.locustmustdie wrote: ↑Fri Mar 03, 2023 6:09 amWill the value of the array remained to the next turn?Code: Select all
SetArray(me,value,index);
ClearArray(value, [array]);Is there clearArray() function to handle this?
I won't pretend to understand that.locustmustdie wrote: ↑Fri Mar 03, 2023 9:17 am Thanks,Richard! I believe with the help of array,some skyrocket length segments can be avoided.
got itrbodleyscott wrote: ↑Fri Mar 03, 2023 10:28 amI won't pretend to understand that.locustmustdie wrote: ↑Fri Mar 03, 2023 9:17 am Thanks,Richard! I believe with the help of array,some skyrocket length segments can be avoided.
As I say, DO NOT USE THE SYSTEM ARRAY! (Can't be clearer than that)