MV YEP Enemy Levels and Regions

Hi everyone, I don't really know where to put this in terms of category!

I was wondering, is there a way to add region capability to the <Min Level: > and <Max Level: > commands on YEP Enemy Levels? I know we can do Map Enemy Levels but we can't do Regions! 🙁

The reason why I ask is because I have about 8 duplicates per enemy in my database, and the drops are generally all the same but with the plugin STV Beast Book, there is a limit of 570 beasts, or else the game will crash upon killing enemy 571+...

I have to end up hiding the other 7 duplicates but this makes a very awkward issue of not obtaining items on the 1 version that is in the database, since there are 7 different versions across the map at different levels!


Is it possible to do a region level scaling? Even if I have to go about making it myself what would I need to look into to make this happen? I know some base coding skills so I just need to know like what script calls and stuff I would need, unless something like this already exists, Thank you for your time!
I haven't used the plugin, but it looks like what you want to do is encompassed by the provided Custom Starting Level notetag, no?

You should be able to reference the region ID where the player initiated the encounter with $gamePlayer.regionId() then incorporate that into your formulae.
Can I do something like this?

<Custom Starting Level>
level = $gamePlayer.regionId(1).level + x;
</Custom Starting Level>

Where X would be a variable that is determined by a parallel that is calling the players region?

Idk if this would still work since I need certain areas to be like level 18-25 enemies only for instance
I...think you misunderstand something. I don't know what you're trying to accomplish with that code.

Where X would be a variable that is determined by a parallel that is calling the players region?
As I previously stated, $gamePlayer.regionId() is the player's region. I'm not sure what "calling" the region means, or why you'd need a parallel (event?).

<Custom Starting Level>
level = $gamePlayer.regionId(1).level + x;
</Custom Starting Level>
The regionId() method returns the region number. Why are you trying to pass the value 1 as an argument to it? And how would a region ID have a level member variable?

There are many ways you could accomplish this, but here's a basic one:
Code:
<Custom Starting Level>
level=$gamePlayer.regionId();
</Custom Starting Level>

If you don't need to use the region IDs for anything else, just make them be the level you want the enemies to have.

Code:
<Custom Starting Level>
if ($gamePlayer.regionId()==5)
    level=19;
else
    level=52;
</Custom Starting Level>

The enemy will be level 52 unless the player is on region ID 5.

For a list of possibilities, just do:
Code:
<Custom Starting Level>
switch ($gamePlayer.regionId())
{
    case 2:
        level=15;
        break;
    case 3:
        level=19;
        break;
    case 5:
        level=21;
        break;
    default:
        level=10;
}
</Custom Starting Level>

You list as many different region IDs as you like as a case, then provide what level you want it the enemy to be. The default is...the default.
I...think you misunderstand something. I don't know what you're trying to accomplish with that code.


As I previously stated, $gamePlayer.regionId() is the player's region. I'm not sure what "calling" the region means, or why you'd need a parallel (event?).


The regionId() method returns the region number. Why are you trying to pass the value 1 as an argument to it? And how would a region ID have a level member variable?

There are many ways you could accomplish this, but here's a basic one:
Code:
<Custom Starting Level>
level=$gamePlayer.regionId();
</Custom Starting Level>

If you don't need to use the region IDs for anything else, just make them be the level you want the enemies to have.

Code:
<Custom Starting Level>
if ($gamePlayer.regionId()==5)
    level=19;
else
    level=52;
</Custom Starting Level>

The enemy will be level 52 unless the player is on region ID 5.

For a list of possibilities, just do:
Code:
<Custom Starting Level>
switch ($gamePlayer.regionId())
{
    case 2:
        level=15;
        break;
    case 3:
        level=19;
        break;
    case 5:
        level=21;
        break;
    default:
        level=10;
}
</Custom Starting Level>

You list as many different region IDs as you like as a case, then provide what level you want it the enemy to be. The default is...the default.
Wow I keep forgetting that the empty () is literally calling the region, stupid me!

Code:
<Custom Starting Level>
if ($gamePlayer.regionId()==5)
    level=19;
else
    level=52;
</Custom Starting Level>


this part is just for the starting level though right? Can I set a cap on the level?
This is really useful to me though!

so with the switch " ($gamePlayer.regionId() "...

The case would be the region number?
this part is just for the starting level though right? Can I set a cap on the level?
There are other notetags (and plugin parameters? I haven't used it) that control level variance. Looks like there's a Maximum Level: x notetag.

Or just make this code determine the final level and don't add any variance. Whatever you want.
There are other notetags (and plugin parameters? I haven't used it) that control level variance. Looks like there's a Maximum Level: x notetag.

Or just make this code determine the final level and don't add any variance. Whatever you want.
Thank you so much, I will play around with this and come back if I get stuck, right now Im just writing down my entire enemy database so that I can use this new method and have no duplicates, thanks to the method you showed me 😀

EDIT: Unfortunately the enemies stay at whatever level I set them at for the region, so my first area starts at level 1-15 but the enemies only go to level 1, I'm sure I'm messing something simple up 🙁
I figured it out I can just use this script call in the troops that are in the regions!

$gameParty.averageLevelAllMembers()

from Enemy Levels to declare a variable

Then if the variable is above the level of the area, let's say 40, set the level to the max of the area like this
If x >= 40
EnemyLevelChangeAll 40
else

end

And then I just have the enemies Minimum level set in the enemy note tags 😀

Original thread: https://forums.rpgmakerweb.com/threads/yep-enemy-levels-and-regions.155229/