Persistent Encounter Rate

Persistent Encounter Rate 1.0.0
Resi
​

Download
Right Click this link and "Save Link As..."

Introduction
This plugin overrides the default functionality of how encounters are designed to work. By default, they reset every time the player is transferred, on save load, and when using the command to disable and enable encounters. This plugin allows you to disable these features, allowing encounters to be saved between maps, loads, and command changes.

Features
Prevents encounter calculation from re-rolling every time:
- The player is transferred (whether on the same map or to a new map)
- A save file is loaded
- Change Encounter Event command is disabled and subsequently re-enabled
These settings are all configurable.

Screenshots
A screenshot doesn't quite highlight how it works, so I recorded a video of it in action. Take a look.



How to Use
Download the script from the attachment or from the download link at the top and place it in your plugins/js folder. Make sure that it is named resiPersistentEncounters.js or it's likely it won't work.

Plugin
The download was placed above, but I'm posting it here in case you skipped it.
Right Click this link and "Save Link As..."
I've also attached the plugin to this post as well if you want to download it from here.

FAQ
Q: Why do encounters update through loads even if I disabled it?
A: The encounters reset the first time a save is loading. The encounters persist through loading the same load even if you've disabled the persistence to prevent players from save scumming.

Credit and Thanks
- Resi

Author's Notes
I wanted to create something like this for my own project as I was constantly annoyed with my encounter meter resetting on map changes and loads. I didn't really check to see if someone else had made something like this before so I decided to just make a whole plugin and share my work.
Feel free to use it in commercial/noncommercial projects as you please, just credit me, thank you.
hey , nice plugin. how do you add the steps to encounter hud?
hey , nice plugin. how do you add the steps to encounter hud?
I used SRD HUDMaker.
Good news too by the way! My plugin adds a new variable which allows you to create a steps until encounter hud as well.
1651532651802.png


Here's what it looks it in editor.
The Cur. Value should be:
$gameParty._stepCounter

The Max Value should be:
$gameParty._stepCounter + $gamePlayer._encounterCount

If you want to do Steps Until Encounter text instead
1651532710306.png
Steps to Encounter ${($gamePlayer._encounterCount + $gameParty._stepCounter) - $gameParty._stepCounter}

Without the plugin, you would have to add your own variable like my $gameParty._stepCounter.
From what i remember i cant use the Srd Hud on mobile. I used the Mog Hunter Hud mod instead. i will def try to use the codes you provided in that. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/persistent-encounter-rate.147199/