Frictional Games Forum (read-only)

Full Version: Can the game memorize variables, forever?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was having quite a good idea with the probably the last mod I will make, but I'm not sure if this is possible. For that to work, I need to make sure that the globals you get is something the game will memorize forever.

For example. You pick up a note and there you get a global variable. Now the game will remember that even when you shut off the game, but removeable once the player desire so. Is this possible?
If I am not mistaken, global variables are once assigned accessible at ANY time after it is declared, because it is saved. You could always script a small map with like, two notes or something to test your theory. Something like:

Code:
Player picks up note_01.
note_01 is being read    -> global_var_01 = 123

if global_var_01 = 123 then
   note_02 has text
else
   note_02 has no text
end if

In this pseudocode, you can create this, then for your testing purposes, just save and exit between reading the notes Big Grin