Blockland Forums > General Discussion
Script_PlayerPersistence?
<< < (3/4) > >>
Headcrab Zombie:

--- Quote from: s245 on December 30, 2011, 07:44:56 AM ---Does it also save your score?

--- End quote ---
Not by default but it is very easy to add it


--- Quote from: Mysteroo on December 30, 2011, 09:55:27 AM ---I want a version of this that also saves variables and score. That'd be nice

--- End quote ---
>Variables
Far too broad to help you
>Score
RegisterPersistenceVar("score", false, "");
Mysteroo:

--- Quote from: Headcrab Zombie on December 30, 2011, 12:28:36 PM ---Not by default but it is very easy to add it
>Variables
Far too broad to help you
>Score
RegisterPersistenceVar("score", false, "");

--- End quote ---
oh ok that's cool. But by variables I mean vce variables. Not coding variables, lol

So do I just add that line of code right into the script? my knowledge of scripting might as well= nada. So I'd like instructions as if you were telling this to a 6 year old.  :cookieMonster: Please and ty
Headcrab Zombie:

--- Quote from: Mysteroo on December 30, 2011, 01:43:33 PM ---oh ok that's cool. But by variables I mean vce variables. Not coding variables, lol

So do I just add that line of code right into the script? my knowledge of scripting might as well= nada. So I'd like instructions as if you were telling this to a 6 year old.  :cookieMonster: Please and ty

--- End quote ---
VCE variables I don't believe could be saved through persistence, because persistence only saves fields of the player and client, while VCE variables are saved in a seperate object (client.brickgroup.vargroup)

As for score, never mind, it is saved by default.
Mysteroo:
Oh cool, :D
Corbiere:

--- Quote from: Mysteroo on December 30, 2011, 01:43:33 PM ---oh ok that's cool. But by variables I mean vce variables. Not coding variables, lol

So do I just add that line of code right into the script? my knowledge of scripting might as well= nada. So I'd like instructions as if you were telling this to a 6 year old.  :cookieMonster: Please and ty

--- End quote ---
VCE has it's own saving system you can use. There's no need to make it anything other than perhaps automate it within the addon itself.
Navigation
Message Index
Next page
Previous page

Go to full version