Load the arrays first
PHP Code:
temp.playerData = new TStaticVar();
temp.playerData.loadVars("thistextfile.arc");
for (temp.currentData: temp.playerData.getDynamicVarNames())
if (temp.currentData.starts("inv"))
temp.foundData = temp.currentData;
Then you would like to load the temp.foundData, with whatever. I think that should work