Casper Gaming Developer Corner
Casper Gaming Developer Corner

Documentation

Back to Plugin


Quick InfoVersion: 1.0.2
Made for RPG Maker MZ 1.9.0

The BasicsBy default, global data is saved whenever a game is saved. You can use plugin command to manually save global data without saving the game.

Keys are case sensitive.

You can only store one piece of data per key. For example, you cannot store both a number and a piece of text under the same key. The last piece of data assigned to that key will overwrite whatever was stored previously.

Plugin CommandsThis plugin supports the following plugin commands:
Save Data - Saves global data without saving the rest of the game data

Add Text Data - Add text data to the global data save file

Add Number Data - Add number data to the global data save file

Add Variable Data - Add variable data to the global data save file

Add Switch Data - Add switch data to the global data save file

Get Data - Retrieve a piece of global data

Get Switch Data - Retrieve global data and store it in a switch

Clear Data - Remove a piece of global data

Saved GamesThis plugin is fully compatible with saved games. This means you can:

✓ Add this plugin to a saved game and it will work as expected.
✓ Change any plugin params and changes will be reflected in saved games.
✓ Remove the plugin with no issue to save data.

Filename

The filename for this plugin MUST remain CGMZ_GlobalData.js. This is what it comes as when downloaded. The filename is used to load parameters and execute plugin commands. If you change it, things will begin behaving incorrectly and your game will probably crash. Please do not rename the js file.


Known Issues

This plugin currently has no known issues that need to be fixed. If you believe you have encountered a bug, please report it to Casper Gaming.


Compatibility

This plugin currently has no known compatibility issues with other RMMZ plugins. If you believe you have encountered a conflict, please report it to Casper Gaming.


Version HistoryVersion 1.0.1
  • Added Spanish language help documentation
  • This plugin now warns instead of crashes when a parameter is invalid
Version 1.0.2
  • Fix bug with saved games and new switch or variable parameters

Back to Plugin