How to save data for a specific game?

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
How can I save data for a specific game? I tried this:

PHP:
saveDB = Modding.OpenSaveData()
if saveDB.GetValue("CheckSomeValue") then
  print("Load")
else
  print("Start")
  saveDB.SetValue("CheckSomeValue", true)
end
I then did this:

  1. Start a new game.
  2. Exit to main menu.
  3. Start a new game.
The output in LiveTuner was:
Start
...
Load


I figure I need to concatenate some unique identifier to the variable to ensure it's only associated with a specific game...
 
Back
Top Bottom