[CGMZ] Battery (Patreon)
Downloads
Content
Hi all, introducing [CGMZ] Battery!
This plugin exposes the battery manager web api to your game, allowing you to know things like the player's battery level on their device and if it is charging or not. You could use this to reduce more intensive effects to help save battery if it is low, or for more experimental mechanics indie games are known for.
Mechanics
In this plugin, you need to set up the Switch (for charging vs not charging status) and Variable (for charge level) parameters. Then, the plugin will automatically set these to the current charge status or charge level. From there, you just check the switch or variable as you would with any other switch or variable in your events, code, etc.
Limitations
The Battery Web API is only available on Chromium browsers, so if you deploy to web your Firefox or Safari players will not be able to have unique battery mechanics as that information is not available on those browsers.
Quick Facts
✅ RPG Maker MZ✅ No obfuscation✅ No AI used at any point in the creation of this plugin
Support
Casper Gaming provides quick support to any user who needs it. You can leave a comment below with your question or issue, I try to check my Patreon at least once a day. For even quicker support, you can come into the Casper Gaming Discord and ask for help in the #support channel.
Roadmap
I plan to expand this plugin by adding more effects that can occur when either the charge level changes or when the charging status changes. This might be running a common event when the player plugs their device in to charge, for example. Of course, I am always listening to what my community wants and any user requests will also be added to the to-do list.
Casper Gaming plugins are made better through community suggestions. I am always happy to hear any features you'd like to see added that I may not have thought of already. Please leave any suggestions you have in the comments below, or in the #suggestions channel of the Casper Gaming Discord. I add all suggestions to my to-do list.
Happy RPG Making!
This version adds common events for charging changes and level changes. Charging changes occurs when the player plugs or unplugs their device. Level changes occur when the device battery level either increases or decreases (100% -> 99%, etc).
You might use this to detect when the player's battery drops below 15% and automatically reduce filters or other intensive effects to prolong their battery life, or to show a warning that their device is low battery.