Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Importing previous data to a 'sequal'
#2
Easy.

Marshal.dump($game_variables, file)

You can exchange $game_variables with the following:
$game_switches - switches
$game_party - party gold and stuff.
+ all other data of your choice.

Exchange "file" with location of the file.

"Save_File.rxdata" saves it directly into the game folder
"Data/Save_File.rxdata" saves it into the data folder.

EDIT:
If you want to save more than one variable into the file (both switches and variables for instance), you should make an array:
@file = [$game_variables, $game_switches]
Marshal.dump(@file, "Save_File.rxdata"]
Reply }


Messages In This Thread
Importing previous data to a 'sequal' - by fgsfds - 05-06-2010, 06:50 PM
Importing previous data to a 'sequal' - by deValdr - 05-06-2010, 07:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The Self Data Suite support thread PK8 0 3,424 07-18-2015, 09:41 PM
Last Post: PK8
   Best Practices for Adding New Data to Saves tnsi 3 5,420 02-16-2015, 04:50 AM
Last Post: tnsi



Users browsing this thread: