In my project I only use one save file, so that should make it slightly easier.
Basically, I have the Game Credits scene accessible from title screen... although the credits are more-or-less a cinematic cutscene. And I want to make the cutscene different depending on the player's progress.
If the player is in early game, or hasn't even started, credits are pretty plain and simple.
If the player is past certain point (Switch XY == ON), credits sequence would look slightly different, containing some stuff that might be spoilerish for early game.
If the player finished the game (so credits are played at the end), they would go full-on different, hinting and pointing at some plot points etc.
So basically, I need a code snippet that, upon calling, will open save file1, check if switch X is true, and if it is - if switch y is true as well. Preferably save the result into a variable - 0 for both switches off, 1 for switch X, 2 for switches X and Y.
Basically, I have the Game Credits scene accessible from title screen... although the credits are more-or-less a cinematic cutscene. And I want to make the cutscene different depending on the player's progress.
If the player is in early game, or hasn't even started, credits are pretty plain and simple.
If the player is past certain point (Switch XY == ON), credits sequence would look slightly different, containing some stuff that might be spoilerish for early game.
If the player finished the game (so credits are played at the end), they would go full-on different, hinting and pointing at some plot points etc.
So basically, I need a code snippet that, upon calling, will open save file1, check if switch X is true, and if it is - if switch y is true as well. Preferably save the result into a variable - 0 for both switches off, 1 for switch X, 2 for switches X and Y.