How do i event an Evolving Encounter Rate ?

In a Game I'm Currently working on, The Player can raid various Maps at night as each day passes, From the safety of the Shelter. New Challenging Raid maps are introduced every few Days. Depending on the number of times you visit the Raid maps, The Encounter rate increases on these Raid Maps every time from :
Low Encounter Rate -> Average Encounter Rate -> High Encounter Rate -> Boss Encounter Rate.
(Basically, The Player faces increasing number and variety of Battle troops)

I need help on how to achieve this through Events. I have somewhat of a Basic understanding on how to achieve the initial steps - Count number of times Player enters each Raid Map - Lets call the Variable "Entry Count for Map X" and declare it in each map. What would I do next ? i assume i declare it somehow in a Conditional Branch ? I'm lost since I'm not good at Events. I need some Ideas / Help / Explanation on how to event this Mechanic.

PS : The Type of Battle Encounter shouldn't matter for me, I'm very flexible towards implementing either a Default Pre-made Step based Map Encounter or Invisible Encounter Event that will move towards Player and trigger on Event touch (Since I don't plan to use Visual Enemy Display on Map)
Which RM do you want to do this in?
Which RM do you want to do this in?


On RPG Maker MV
Let's say you want the encounter rate to decrease by 5 steps each time you enter the map. Add 1 to the variable in the transfer event, and on the raid map make an autorun event somewhere on the map with this script command:

Code:
$dataMap.encounterStep = Math.max(1, 30 - 5 * $gameVariables.value(3))

Where 30 is whatever your default value is and 3 is the ID of the variable.

Then put an "erase event" command so the event stops processing, but will come back when you re-enter the map.
Let's say you want the encounter rate to decrease by 5 steps each time you enter the map. Add 1 to the variable in the transfer event, and on the raid map make an autorun event somewhere on the map with this script command:

Code:
$dataMap.encounterStep = Math.max(1, 30 - 5 * $gameVariables.value(3))

Where 30 is whatever your default value is and 3 is the ID of the variable.

Then put an "erase event" command so the event stops processing, but will come back when you re-enter the map.

Thanks a lot, That is really helpful. That's a very simple and elegant solution, I imagined it would be more complex with multiple self switches. Thats exactly what I needed.
Thanks a lot, That is really helpful. That's a very simple and elegant solution, I imagined it would be more complex with multiple self switches. Thats exactly what I needed.

Things like this are often simpler than people think they're going to be. 🙂

I've moved this thread to MV Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-event-an-evolving-encounter-rate.123497/