The Sinister Design Forums

Games => Telepath Tactics (2015) => Telepath Tactics Bugs => Topic started by: bugfartboy on August 22, 2015, 04:12:31 PM

Title: ReferenceError 1069 when using array to repeat a script
Post by: bugfartboy on August 22, 2015, 04:12:31 PM
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.)