Jump to content

Recommended Posts


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.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted