A collection of utilities to use in your RPG Maker MV games and plugins.
This is probably what you will want to do.
- Add
dist/rmmv-mrp-core.js
to yourplugins
folder. - A global
window.MRP
object will be available in any plugin loaded afterrmmv-mrp-core
, which will contain all utilities described below.
If you are developing your plugins using Browserify, you can load in only the modules you need.
First, add the rmmv-mrp-core
module to your project:
npm install --save-dev rmmv-mrp-core
You can now import an individual module and use it.
Example usage (ES6 modules):
import { extractAll } from 'rmmv-mrp-core/option-parser';
console.log(extractFirst(`
some preceding text
<Currency name: Gold Stars, number: 10, probability: 50>
some more text afterwards
`));