Encounter Steps with Region ID

I was looking around the web and RPG Maker MV to see if I could find anything about changing the encounter steps depending on the Region ID, but I do not see anything anywhere saying that it is possible to do so or even an option to change the Encounter Steps besides in the Map Settings.

Am I overlooking something or is this just not doable without a script? If so, then can someone point me in that direction because I don't see a script anywhere either.
As far as I remember, the step count depends on each group configured on the map.

You could easily create your own dating system with events and help with a little Javascript:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆
:End

And if you want to check the terrain ID to set the battle background graphic:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆Control Variables:#0015 = $gamePlayer.terrainTag()
  ◆
:End
1759633024086.png


And simply adding a variable would make it simple to check a minimum number of steps to start a battle, and then you could restart the count:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆Control Variables:#0003 Step Count += 1
  ◆If:Step Count ≥ 25
    ◆Control Variables:#0005 Tag Terrain = $gamePlayer.terrainTag()
    ◆If:Tag Terrain = 0
      ◆Change Battle Back:Grassland & Grassland
      ◆
    :End
    ◆If:Tag Terrain = 1
      ◆Change Battle Back:Dirt1 & Grassland
      ◆
    :End
    ◆If:Tag Terrain = 2
      ◆Change Battle Back:Dirt2 & Grassland
      ◆
    :End
    ◆
  :End
  ◆Battle Processing:Bat*2
  :If Win
    ◆
  :If Escape
    ◆
  :End
  ◆
:End

Of course, these are simple examples, I would do most of these checks just with Javascript, but it will depend on what you really need.
I was looking around the web and RPG Maker MV to see if I could find anything about changing the encounter steps depending on the Region ID, but I do not see anything anywhere saying that it is possible to do so or even an option to change the Encounter Steps besides in the Map Settings.

Am I overlooking something or is this just not doable without a script? If so, then can someone point me in that direction because I don't see a script anywhere either.
A while ago, Trihan did a plugin called "RegionEncounters.js". I don't think that that is one of the ones that he lists in his signature, so you will have to Google it, but it is on this site. It lets you do 2 things:

  • Firstly let each region of a map have a different encounter rate;
  • Secondly set the encounter rate of a region to a variable. [Top tip - if you forget to set the variable before the player enters that region on that map, your party will get very busy.]

It is pretty much plug-in-and-play. All you need to do is put notetags in the maps that you want to use its features.

This plugin also works on MZ, I have found.
A while ago, Trihan did a plugin called "RegionEncounters.js". I don't think that that is one of the ones that he lists in his signature, so you will have to Google it, but it is on this site. It lets you do 2 things:

  • Firstly let each region of a map have a different encounter rate;
  • Secondly set the encounter rate of a region to a variable. [Top tip - if you forget to set the variable before the player enters that region on that map, your party will get very busy.]

It is pretty much plug-in-and-play. All you need to do is put notetags in the maps that you want to use its features.

This plugin also works on MZ, I have found.
Thank you so much! I will look into this in the next few days.
As far as I remember, the step count depends on each group configured on the map.

You could easily create your own dating system with events and help with a little Javascript:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆
:End

And if you want to check the terrain ID to set the battle background graphic:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆Control Variables:#0015 = $gamePlayer.terrainTag()
  ◆
:End
View attachment 350701

And simply adding a variable would make it simple to check a minimum number of steps to start a battle, and then you could restart the count:
Code:
◆If:Script:$gamePlayer.isMoving()
  ◆Control Variables:#0003 Step Count += 1
  ◆If:Step Count ≥ 25
    ◆Control Variables:#0005 Tag Terrain = $gamePlayer.terrainTag()
    ◆If:Tag Terrain = 0
      ◆Change Battle Back:Grassland & Grassland
      ◆
    :End
    ◆If:Tag Terrain = 1
      ◆Change Battle Back:Dirt1 & Grassland
      ◆
    :End
    ◆If:Tag Terrain = 2
      ◆Change Battle Back:Dirt2 & Grassland
      ◆
    :End
    ◆
  :End
  ◆Battle Processing:Bat*2
  :If Win
    ◆
  :If Escape
    ◆
  :End
  ◆
:End

Of course, these are simple examples, I would do most of these checks just with Javascript, but it will depend on what you really need.
I appreciate this as well! Thank you! I will see which one of these options fit best for me.
A while ago, Trihan did a plugin called "RegionEncounters.js". I don't think that that is one of the ones that he lists in his signature, so you will have to Google it, but it is on this site. It lets you do 2 things:
The plugin you're referencing is here:

It kind of does what you're describing, but it's important to understand what it exactly does, because we don't really know what the OP is trying to achieve.

What Trihan's plugin does (which he states in the post) is reset the encounter steps every time you change regions, according to the rate you want for that new region.

So if you're going to have sections of a map and walking around in them has encounters more or less frequently, this can work.

But if you're trying to do something like Pokémon's system where you encounter more quickly when walking through tall grass (which, incidentally, is supported by RPG Maker natively), Trihan's plugin will do the opposite of that because it will reset the random number of steps every time you walk in and out of the grass.

I've just added this feature to my Encounter Control plugin - you can use map notetags to make specific regions count more or less toward your encounter steps without resetting the count.

You know better than anyone else what you want. In my opinion, both Trihan's and ATT_Turan's plugins are excellent, but are not same. Instead of the old saying "Yer pays yer money and you makes your choice" it is "Yer thanks the kind gentlemen for writing free plugins and yer takes yer choice."

Spoiler: My take on Trihan's plugin
I take ATT_Turan's information to mean to only use this to give regions different encounter rates when you think that the player is going to walk through the same region for a while. This conforms to my experience.

On the other hand, setting a region on a map to a variable means that you can alter the difference in the number of encounters for that region, leaving other regions and maps untouched. A whole map might be the same region.

This plugin is compatible (in MZ) with MalMZ_EncounterConditions, which lets you vary which troop are available under certain conditions (such as a switch being on). Haven't checked whether Mal does one for MV yet.

Spoiler: My take on ATT_Turan's plugin
This works very differently from Trihan’s encounter plugin. Could use this for game difficulty levels, or for making all maps more dangerous at night. Not so easy to do the “kill robber chief to make one map or large chunk of a map safer” trick, though. [You can always edit the events that tranfer in to the map to check a switch and if it is on, turn encounters off. Remember to turn on encounters when you leave the map.]

In general, high numbers in note-tags and the variable chosen as a parameter mean higher numbers of encounters.

One parameter variable affects the encounter rate of all regions on all maps. Setting the variable to 1 is equivalent to not using the feature. Setting the variable higher increases the number of encounters (2 gives a noticeable increase).

You can use note-tags to set a differential between the regions of a map, but can't alter them in game.

This offers the feature of avoiding the same enemy troop appearing repeatedly. It lets you avoid random encounters very soon after the previous one. It also lets you get rid of random encounters for a map when your party reaches a certain average level chosen for that map.

Not yet tested whether this plugin is compatible (in MZ) with MalMZ_EncounterConditions, but I suspect that it will.

Original thread: https://forums.rpgmakerweb.com/threads/encounter-steps-with-region-id.180419/