Author Topic: ReferenceError 1069 when using array to repeat a script  (Read 1910 times)

Offline bugfartboy

  • White Cape
  • ***
  • Posts: 1730
    • View Profile
ReferenceError 1069 when using array to repeat a script
« on: August 22, 2015, 02:12:31 PM »
I was attempting to run this script:
Code: [Select]
<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.)
Youth is ever fleeting, but cringy usernames are forever