Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can the game memorize variables, forever?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Can the game memorize variables, forever?

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?
01-15-2014, 02:20 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Can the game memorize variables, forever?

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:

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

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 01-15-2014, 02:44 PM by Romulator.)
01-15-2014, 02:43 PM
Find




Users browsing this thread: 1 Guest(s)