I don't really know how to describe this issue. But, basically, whenever I try to use the "$game_variables", it gives me an error. Specifically, a "NoMethodError" with an "undefined method '[]=' for nil:NilClass". If it helps at all, I'm borrowing a Global Save File script from here: https://www.rpgmakercentral.com/topic/6462-global-save-file-~-by-skul_/ .
This specifically is where the error occurs.
I can provide more if it's needed. But any help would be appreciated.
This specifically is where the error occurs.
Code:
def self.loadVariables(f)
for i in VARIABLES_TO_SAVE
$game_variables[i]= f.getVar(i)
end
end
I can provide more if it's needed. But any help would be appreciated.