Casper Gaming Developer Corner
Casper Gaming Developer Corner

Documentation

Back to Plugin


Quick InfoVersion: Alpha
Made for RPG Maker MZ 1.10.0
REQUIRED: All [CGMZ] Plugins require [CGMZ] Core placed above them in the Plugin Manager.

Quick Start GuideTo get started using this plugin, follow the below steps:

1) Set your charging switch and charge level variable

2) In your events (or elsewhere), check the switch or variable.

3) The plugin handles the rest

BrowsersNote that Battery access is only available in Chrome and Chromium based browsers, which luckily pc deploys use. However, if your game is being posted as playable on web, this plugin will not work for players using Firefox or Safari. It should not crash for them, but the switch and variable will not be set.

Plugin CommandsThis plugin does not include any plugin commands.

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_Battery.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.

Back to Plugin