Global Save Data

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
469
First Language
Lithuanian
Primarily Uses
Author: Mr. Trivel


Name: Global Save Data


Version: 1.0


Created: 2016-03-31




 


What does it do?


Allows player to set and change variables that affect all saves.


 


Video:










 


How to use?






To set global variables, use the following Plugin Calls:


 



GlobalVar Set [NAME] [VALUE] - Sets variable to [VALUE]


GlobalVar Add [NAME] [VALUE] - Adds [VALUE] to variable


GlobalVar Sub [NAME] [VALUE] - Subtracts [VALUE] from value


 


[NAME] - Variable name, case sensitive


[VALUE] - Value of variable a number or true/false


 


Examples:


GlobalVar Set Glasses true


GlobalVar Set GameCompleted 1


GlobalVar Add GameCompleted 1


GlobalVar Sub GameCompleted 2


 


To check global variable in a conditional branch or somewhere else, use this code:


DataManager.getGlobalVar(NAME)


 


Example:


DataManager.getGlobalVar(Glasses)








 


Plugin: <Link: Github>


How to download the Plugin: Click the link above, there will be a button named Raw, press Right Click -> Save As.


 


Terms of Use:


Don't remove the header or claim that you wrote this plugin.


Credit Mr. Trivel if using this plugin in your project.


Free for commercial and non-commercial projects.
 
Joined
Nov 5, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
DataManager.getGlobalVar(Test) == yes
if i put that into the script part of a conditional branch i get this

ReferenceError: Test is not defined

And i did try having an actuall variable named "Test"
but it didn't work
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top