News:

Welcome to the new Sinister Design forums!

Main Menu

ReferenceError 1069 when using array to repeat a script

Started by bugfartboy, August 22, 2015, 04:12:31 PM

Previous topic - Next topic

bugfartboy

I was attempting to run this script:

<Script>
initializeVariables
<Action>Run/buildNumList</Action>
<Action>SetString/CurrentMap,Introduction</Action>
<Action>SetVal/ArenaGatesUnlocked,=,0</Action>
<Action>SetVal/currentAura,=,1000</Action>
<Action>ForArr/numList,1,102,1,addRecuitID</Action>
</Script>
<Script>
addRecuitID
<Action>SetArr/freeRecruitIDs,end,-VAL:_ArrStr-</Action>
</Script>

numList is an array containing values 0 ≤ x ≤ 499 built by hand. (I have a SetArr action for every entry.)

When the game reaches the ForArr action, it spits out ReferenceError 1069 and generates the attached log.


(Side note: variable saving seems to be really sketchy with the new save system.  I've had variables disappear from my save file or not be stored when moving to a new map.)