Random Encounter Options

Hello!
So, I'd like to give my players the option to affect the rate of encounters, being able to opt for having more or less encounters as they please. It seems like a plugin that would probably exist by now, but I haven't been able to find it in my searches.

Does anyone know where I could get a plugin that gives this kind of option (preferably one compatible with Yanfly's option core)?
In my experience, random encounter is heavily frowned upon nowadays, so I stopped using them.

Instead, on map encounters seem better which gives an indirect option for players to avoid enemies at will.
I thought Yanfly made an option for this? If not its usually done by adding the value of a variable to the value you set in the engine for steps before a random encounter, and then you use a slider to set how much that variable is.
In my experience, random encounter is heavily frowned upon nowadays, so I stopped using them.

Instead, on map encounters seem better which gives an indirect option for players to avoid enemies at will.
On map encounters are a major headache for me as a player, so after talking with my team we ultimately decided to go with random encounters because it's significantly less frustrating. However, I understand some players aren't very fond of high encounter rates which is why I wanted to give the option to decide how frequently enemies appear.
@udime123 : Maybe you could go the bravely default route and let players turn them off with a switch? I coded something for that in ACE but I don't know JavaScript so can't do it for you in MV. I do know it was pretty quick to code though.

Though one option to consider is you could just give players an item they can equip at any time when they don't want random encounters. Maybe make it an accessory and they get it at the start of the game? Just a thought in case someone isn't able to code this for you in MV.
@udime123 : Maybe you could go the bravely default route and let players turn them off with a switch? I coded something for that in ACE but I don't know JavaScript so can't do it for you in MV. I do know it was pretty quick to code though.

Though one option to consider is you could just give players an item they can equip at any time when they don't want random encounters. Maybe make it an accessory and they get it at the start of the game? Just a thought in case someone isn't able to code this for you in MV.
Yeah, we were planning around the possibility that we might not be able to get the plugin, so at the moment we've got cheap and accessible items that increase or decrease encounter rates.
I'll post the ruby code here in case someone can port it to JavaScript (and to whomever does this, yes you have my permission to do so):

Spoiler
Code:
class Game_Player < Game_Character

 

  #Set up all aliased functions here

  alias bg_map_encounter_switch_update_encounter update_encounter

 

 #Alias method, update_encounter

  def update_encounter

  

    #If the universal random encounter swtich is off, return as no

    #random fights allowed.

    if($game_switches[BGEncounter_Control::Encounter_Off] == false && BGEncounter_Control::Encounter_Off != 0)

      return

    end

 

    #Call and return the aliased method

    return bg_map_encounter_switch_update_encounter

  end

end

Note it also needs a line to declare what BGEncounter_Control::Encounter_Off is, but I didn't add that as that is a module definition and JavaScript does that differently.
I don't think I made a thread for it, but I did make an encounter plugin a while back.



Edit: I did.
https://forums.rpgmakerweb.com/index.php?threads/malikis-encounter-rate-options-ver-1-4a.61799/

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-options.104996/