Quote from: AresWarrior on July 27, 2010, 01:50:12 pm
I looked at the demo but I still don't understand how you did it. Can someone explain how? Thanks
Look, you load data from an external file using:
VARIABLE = Marshal.load(FILENAME)
Where VARIABLE is the variable and FILENAME is the name of the file, it's a string. FILENAME is 'stored' in a variable in a lot of cases. First you have to open the file, and after it, you have to close it, but that's already done in the Window_SaveFile script, so we just have to load the variable.
Please note that the variable should have the same name as the variable in the external file, but it doesn't have to be of the same kind (with 'kind', I mean 'local', 'class', 'instance' or 'global'. Is 'area' the correct term for this? Whatever...). So, go to line 32 of the Window_SaveFile script and add a new line after that line. Now, paste this piece of code in that line:
@game_map = Marshal.load(file)
file Is the variable that refers to the string with the filename. Now you can access $game_map of that file.
I see you can figure out the rest yourself?

EDIT:
@game_self_switches = Marshal.load(file)
@game_screen = Marshal.load(file)
@game_actors = Marshal.load(file)
@game_party = Marshal.load(file)
@game_troop = Marshal.load(file)
@game_map = Marshal.load(file)
All the class variables, except @game_map, could be anything (I think...).