MV State that Avoids Low Level Random Encounters

Seems to work like a charm now. Thank you.

Now for extra or alternative control, depending on circumstances or other projects, are there other tags I can use, such as enemy defense vs party attack, and whether I can use it across the whole game rather than just the region? Much like the script rpglord posted?
Seems to work like a charm now. Thank you.
Yup yup! No problem.

Now for extra or alternative control, depending on circumstances or other projects, are there other tags I can use, such as enemy defense vs party attack, and whether I can use it across the whole game rather than just the region? Much like the script rpglord posted?
My plugin works with the initial lists of potential enemies the party will be facing, so it works BEFORE the enemy data is constructed. While you can use the raw enemy data to pull stats, you'd have to create those functions yourself.

The good news here is that the snippet @rpgLord69 made doesn't conflict with my plugin and they both can be used.
My issue with theirs is that is will functionally cancel a battle altogether vs remove that one from the list so a different one can occur; Not a problem if you WANT there to be no battles.

As for universal tags, it's not really possible with my plugin.
The short answer is you can put copies of your effective tags in each map's notes. Simple copy/paste for many dungeon maps. (And remember again that putting -1 in the region part of the tag will effect that whole map.)

As for long term effectiveness, you have to have creative use of your switches and variables for that.
From what I can tell, you are using it for a repel item system, so as long as it is tied to a switch, it should be fine.

I have 5 different elemental repels in my game, so I have to do things slightly differently which is why the original design effects the troops' weight directly. My repels makes some troops disappear while some others appear.

I also invite you to look at the other original functions of my plugin like changing and locking down the encounter rate. VERY easy to do with Common Events and those effects WILL persist between maps.
I'll just comment here that I thought that skipping the battle is what they asked in the opening post.
Yup yup! No problem.


My plugin works with the initial lists of potential enemies the party will be facing, so it works BEFORE the enemy data is constructed. While you can use the raw enemy data to pull stats, you'd have to create those functions yourself.

The good news here is that the snippet @rpgLord69 made doesn't conflict with my plugin and they both can be used.
My issue with theirs is that is will functionally cancel a battle altogether vs remove that one from the list so a different one can occur; Not a problem if you WANT there to be no battles.

As for universal tags, it's not really possible with my plugin.
The short answer is you can put copies of your effective tags in each map's notes. Simple copy/paste for many dungeon maps. (And remember again that putting -1 in the region part of the tag will effect that whole map.)

As for long term effectiveness, you have to have creative use of your switches and variables for that.
From what I can tell, you are using it for a repel item system, so as long as it is tied to a switch, it should be fine.

I have 5 different elemental repels in my game, so I have to do things slightly differently which is why the original design effects the troops' weight directly. My repels makes some troops disappear while some others appear.

I also invite you to look at the other original functions of my plugin like changing and locking down the encounter rate. VERY easy to do with Common Events and those effects WILL persist between maps.
One last thing, would it be possible to make it so an actor's overwhelming level/attack/defense/etc vs the troops' increases the chances of enemy units fleeing during battle, should the player choose to not use a repel?
"Possible" is the key word here.

Yes, it's certainly possible, but doing it is outside of the scope of the plugin I provided here.
You would have to find an enemy AI or skill condition plugin AND find out how to directly compare battler stats when the enemy is choosing skills.

I did a quick search, but didn't find any.
I'm fairly certain it's out there tho.

Technically, you should be able to do this with battle events that turn on a switch. And the switch triggers the escape skill with a higher rating. (I'd do it with player level as opposed to stats as it would be easier to code. And party level is already hard coded into the engine!)
You can make a turn 0 troop event where you compare stuff and then alter the escape skill rating with script (set it back after battle). For example:

$gameTroop._enemies[0].enemy().actions[1].rating = 7;

EDIT: Or actually you can just reference (actions start at 0) $dataEnemies[enemyId].actions[id].rating

Original thread: https://forums.rpgmakerweb.com/threads/state-that-avoids-low-level-random-encounters.181204/