Importing previous data to a 'sequal'
#1
Just want to know if it's possible to import certain data (switches and variables mostly) to a new game, preferably a sequel?
(Meaning like everything you do in the first game have heavy influence and impact on the second game as well as difficulty)
Reply }
#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 }


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



Users browsing this thread: 1 Guest(s)