rmmv-mrp-core
v0.0.15
Published
RPG Maker MV Core Extensions
Downloads
5
Readme
RPG Maker MV Core Utilities
A collection of utilities to use in your RPG Maker MV games and plugins.
Usage
Directly in RPG Maker
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.
Browserify
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
`));