Random Encounter Events

​



In RPG Maker, you can set up your maps so that the player will randomly encounter enemies. You can choose what enemies will be present on the map, what regions they will be available in, how often they will show up, and so on.



During the game, the player can then explore your maps and randomly encounter enemies.

However, what happens if you wanted to have some more control over the random encounters? What if you wanted to increment some variables depending on what you encountered? Or perhaps give the player a chance to skip the encounter by pressing a certain sequence of buttons in time!

This plugin gives you the tools to apply your eventing knowledge towards random encounters as well.

When the player runs into a random encounter, a common event of your choice will execute, before the battle begins.
 
More information and downloads are available at HimeWorks​
Awesome stuff!
I could see something like this being used so people could not farm too much in certain areas. Could be used in many different ways.

IE: Killed too many of a specific mob it either dies out or slowly repopulates based on variables.

IE: Killed too many prey animals increases chances to find preditor animals instead (could be a special starved one if done correctly) since you removed the food supply to them.

IE: Specific mob is rare due to another animal pop killing them off. Just hunt that mob instead and don't kill (run) from the limited mob could lead to increasing its population.
I made a small update to the plugin.

The instructions say to use this to cancel an encounter

$gamePlayer.cancelEncounter()But the code I wrote was using the name `clearEncounter`I've updated it to reflect the instructions.

I could see something like this being used so people could not farm too much in certain areas. Could be used in many different ways.

IE: Killed too many of a specific mob it either dies out or slowly repopulates based on variables.

IE: Killed too many prey animals increases chances to find preditor animals instead (could be a special starved one if done correctly) since you removed the food supply to them.

IE: Specific mob is rare due to another animal pop killing them off. Just hunt that mob instead and don't kill (run) from the limited mob could lead to increasing its population.
Hmm, so if I used variables to store the "population" for each area, I could increase or decrease the number of encounters for that given type of enemy.

Which gives me another idea.

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-events.49738/