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
Save data
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#9
RE: Save data

That's what he just explained. You store a global variable using cScript_SetGlobalVarInt for example.
You do not need to save a text file or whatever. The global variable is likely saved within the story's Autosaves.

Use this to save your variable:
PHP Code: (Select All)
cScript_SetGlobalVarInt("MyInt"1); 

Then use this to check what the variable is, in another map if need be:
PHP Code: (Select All)
if(cScript_GetGlobalVarInt("MyInt") == 1

10-19-2015, 12:37 PM
Find


Messages In This Thread
Save data - by Kanthos - 10-18-2015, 01:54 PM
RE: Save data - by Romulator - 10-18-2015, 02:01 PM
RE: Save data - by Kanthos - 10-18-2015, 02:13 PM
RE: Save data - by Kanthos - 10-19-2015, 11:05 AM
RE: Save data - by Romulator - 10-19-2015, 11:29 AM
RE: Save data - by Kanthos - 10-19-2015, 11:53 AM
RE: Save data - by jens - 10-19-2015, 11:58 AM
RE: Save data - by Kanthos - 10-19-2015, 12:32 PM
RE: Save data - by Mudbill - 10-19-2015, 12:37 PM
RE: Save data - by Kanthos - 10-19-2015, 12:40 PM
RE: Save data - by Mudbill - 10-19-2015, 12:41 PM
RE: Save data - by Kanthos - 10-19-2015, 02:24 PM
RE: Save data - by Mudbill - 10-19-2015, 02:35 PM
RE: Save data - by Kanthos - 10-19-2015, 02:45 PM
RE: Save data - by jens - 10-19-2015, 05:22 PM
RE: Save data - by Kanthos - 10-19-2015, 07:44 PM
RE: Save data - by Mudbill - 10-19-2015, 09:31 PM
RE: Save data - by Kanthos - 10-20-2015, 12:41 AM
RE: Save data - by Mudbill - 10-20-2015, 02:20 AM
RE: Save data - by Kanthos - 10-20-2015, 02:39 PM



Users browsing this thread: 2 Guest(s)