Global Save Data

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
467
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

I will be streaming RPG Maker demos very soon
Not. Enough. TIME.
Ami
--- Cheating ---

Hero: I can't Stand this! (Activate Infinite HP, Stats 999)
Game Police: Hold right there!
Hero: What happened,sir?
Game Police: You're under arrest because Using Cheat in the Game,illegally!
(Handcuffing the Hero)
Hero: Huh???
Game Police: You have the Punishment to Not be in this world: 6 Months
Hero
: (Shocking) WHAT???
Need advice that should be adjusted
Some local cursed and attacked me because I said children should learn copyright....

Forum statistics

Threads
103,132
Messages
997,500
Members
134,607
Latest member
Hade
Top