Casper Gaming Developer Corner
Casper Gaming Developer Corner

Documentation

Back to Plugin


Quick InfoVersion: Alpha R4
Made for RPG Maker MZ 1.9.0

Main FeaturesDICE SCENE
Roll a dice. You can show a custom animation, with the result of the roll provided to a game variable for use in your events.

You can optionally set up an allowed number of rerolls where the player can choose to accept their roll or roll again.

DICE
Dice are set up as a parameter in the plugin parameters, allowing you to re-use your dice multiple times in different plugin commands.

Animation TypesThis plugin supports different animation types for your dice. These are:

Randomized Results - This animation type randomly shows one of the possible result images every few frames while also randomly rotating the image based on parameters set for this animation style. It is useful if you do not want to make a spritesheet animation.

Spritesheet Animation - This animation plays a spritesheet animation with settings you create. This is similar to how animations are created when making MV compatible animations in the database.

Integrations[CGMZ] Scene Backgrounds
This plugin will allow you to show a custom background image in the dice roll scene. It allows for scrolling backgrounds and a lot of control over the background of any scene.

Plugin CommandsThis plugin supports the following plugin commands:
Roll Dice - Opens a scene for a dice roll

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_Dice.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 AlphaR2
  • Added weighted dice
  • Fix bug with dice image in some cases
Version AlphaR3
  • Added option to disable canceling out of the dice scene
  • Added option to skip the roll animation
  • Added standard window options (type, skin, tone, padding, back opacity)
Version AlphaR4
  • Added Info window to dice roll scene
  • Added [CGMZ] Window Backgrounds integration
  • Added [CGMZ] Window Settings integration
  • Dice reroll amount converted to variable value
  • Fix bug with being able to select nothing in roll window

Back to Plugin