*NOTE*
These are old scripts and were for the early versions of RPG Maker MV. I have not tested them on more recent versions!
Introduction
In creating my first RPG Maker MV game, I found myself looking for a few specific plugins. Not able to find them, I decided to create them myself. Now I am happy to offer them for download and use by the greater RPG Maker community. In this post I'll introduce two seperate, but related, plugins: Variable Encounter and Random Encounter Formula.
Features Random Encounter Formula
This plugin allows you to customize the way that the number of steps until the next random encounter is triggered. By default, RPG Maker looks at the map's encoutnerStep property and does the following calculation:
Math.randomInt(encounterStep) + Math.randomInt(encounterStep) + 1But with this plugin, you can have access to that encounterStep variable and change it to whatever you want. For example, if you wanted to have the encounter length be no less than half the encounter step but no more than 1.5 times the encounter step, you could change it to:
With this plugin, you can use plugin commands to alter the weight or regionSet of a troop on a map, the available troops for a map, or even the encounter step, changing how often battles occur on a map!
Using script or plugin commands with this plugin you can:
Add a troop to a map's encounter list
Remove a troop from a map's encounter list
Clear all troops from a map's encounter list
Set the regions a troop appears on in a map
Change the probability a given troop will appear on a map's random encounter
Change the encounterStep property for a given map.
How to Use
Install the plugins and turn them on. For the Random Encounter Formula, configure the formula you'd like by changing the Formula parameter. For the Variable Encounter plugin you can configure the Storage ID parameter which defines which game variable the encounter data will be stored in (this allows the changes in encounter lists to be persisted in the save file between play sessions). At this point you are ready to start using plugin commands.
Below is the variable encounter plugin help text inside a spoiler. The random encounter formula plugin has no help text.
Spoiler: Variable Encounter Help Text
Demo
I don't have a demo that uses these plugins right now. I can put one together if there's demand.
Download
Both files are attached below.
Known Issues
I don't know of any bugs in this plugin, but if you find some report them here and I'll fix it.
Important development considerations for the Variable Encounter plugin
This can be found in the Variable Encounter help file as well with more information, but it's very important to consider this if you're getting really into using the plugin:
If you try to perform an operation listed below on a map that your player has not visited yet, generally nothing will happen. You will not be able to modify their encounter list until the player has visited that map!However, there is a workaround for this. If you wish to modify a map's encounter list before it is visited by the player, you must use a script command to create empty map data for that map. The command for this is: Code:
Terms of Use
Please feel free to use these scripts commercially or non-commercially. If you use it commercially please credit me in your game's credits and let me know about your game's release! I'd love to link to it here.