Documentation
Quick InfoVersion: Alpha
Made for RPG Maker MZ 1.9.0
Quick Start GuideThis plugin does not require any setup to use. In your event, when you want to read from or write to the player's clipboard, you can use the plugin commands Write Text or Read Text.
If reading text, it will be stored in a game variable. Game variables that store strings must be accessed by script. To do so, you can use the js:
$gameVariables.value(1);
This will read the value stored in variable id 1. Replace the 1 with your variable id you want to read the value of.
Plugin CommandsThis plugin supports the following plugin commands:
Write Text
Writes text to the player's clipboard, which they can then paste elsewhere. You might use this to copy a url the player can paste, or any other reason.
Read Text
Reads text from the player's clipboard into a game variable. Note that to use string variables, you will need to use JavaScript.
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_Clipboard.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.