Hey thanks man I got it sorted now!
I'm using this:
module Switch_Load
def self.load_switches
if FileTest.exist?("Save1.rxdata")
file = File.open("Save1.rxdata", "r")
else
return
end
# Read character data for drawing save file
junk_characters = Marshal.load(file)
# Read frame count for measuring play time
junk_frame_count = Marshal.load(file)
# Read each type of game object
junk_system = Marshal.load(file)
$game_switches = Marshal.load(file)
file.close
end
end
...and calling it with this:
Switch_Load.load_switches
Brewmeister helped with this.
Thank you so much though, I thought this would have been a simple thing but i was wrong! I didn't undertand what Marshal ment in scripts.