Loading it back in is going to be pretty much the same procedure as saving it was. The scalar ones should be easy, literally the exact same loop you used to save but flip the assignment. Container variables will be a bit more tricky. I think something along these lines may work?
There might be a more efficient way (as each assignment here is probably looping over all of
Code:
local tags = {}for index, elem in ipairs(save_data) dotags[elem.tag] = trueendfor tag,_ in pairs(tags) dowml.array_variables[tag] = wml.child_array(save_data, tag)end
save_data
again), but I think that approach should do the job.Statistics: Posted by Celtic_Minstrel — Yesterday, 11:07 pm