Give enemies levels

What's the best way to give enemies levels and make their stats rise based on their levels aswell as gold and XP?
Yanfly has a plugin for this for MV.

VisuStella did redo this library for MZ, more or less (It's not exactly the same)

So visustella plugins would be my best guess.
Yanfly has a plugin for this for MV.

VisuStella did redo this library for MZ, more or less (It's not exactly the same)

So visustella plugins would be my best guess.
Does VisuStella have any free versions of it?
Does VisuStella have any free versions of it?
That I really do not know. I honestly still use the yanfly stuff. 😛
this one can help as it can give enemy levels as well (require his core plugin),
read the helpfile carefully though.
So I bought the VisuStella enemy level thing, but I don't get how I set a enemy to be a specific level (1) every time you fight it, or even better to be between level 1-3.
Every plugin you download has instructions that you can read when you click the plugin in your plugin manager.

You can also read theirs on their Web site.

Every plugin you download has instructions that you can read when you click the plugin in your plugin manager.

You can also read theirs on their Web site.

Yes, I know that, and I've done so.. But I don't understand how I can give it a level range from 1 to 3 etc. Or keep it at just level 1, so no monsters above level 1 spawns.
I don't know how many Enemies you have but there is a Vanilla way of doing this too (includes a little more work but a little copy/paste work will help with this.

EnemyDisplay.PNG

here we have an Enemy at Slot 40/ID 40 we will change the stats from: the BASE is something you wanna write down for the formula later on.
CustomSkillDisplay.PNG

I gave the Test subject a certain skill to make sure that it both hits the attack and land with no variations of it working. I go with a basic a.atk formula with this one.
CommonEventDisplay.PNG

for our Common Event (1/2) we want to change the Enemy's Attack stat.
$dataEnemies[EnemyID].params[Number from 0 - 7].
Params[0] = HP
Params[1] = MP
Params[2] = ATK
Params[3] = DEF
Params[4] = M.ATK
Params[5] = M.DEF
Params[6] = AGI
Params[7] = LUCK
AveragePlayerLevel - CommonEvent.PNG

Inside the Formula I Multiply the Base Attack (10) with the Average Player Level Variable I have in my game.

JavaScript:
$dataEnemies[40].params[2] = (10 * $gameVariables._data[15])

NOTE: IF you try to use $dataEnemies[40].params[2] as the Base to multiply that with the Variable, it will skyrocket into the Millions right away and it will ruin the way how this is supposed to work!!
I don't know how many Enemies you have but there is a Vanilla way of doing this too (includes a little more work but a little copy/paste work will help with this.

View attachment 299226
here we have an Enemy at Slot 40/ID 40 we will change the stats from: the BASE is something you wanna write down for the formula later on.
View attachment 299227
I gave the Test subject a certain skill to make sure that it both hits the attack and land with no variations of it working. I go with a basic a.atk formula with this one.
View attachment 299231
for our Common Event (1/2) we want to change the Enemy's Attack stat.
$dataEnemies[EnemyID].params[Number from 0 - 7].
Params[0] = HP
Params[1] = MP
Params[2] = ATK
Params[3] = DEF
Params[4] = M.ATK
Params[5] = M.DEF
Params[6] = AGI
Params[7] = LUCK
View attachment 299232
Inside the Formula I Multiply the Base Attack (10) with the Average Player Level Variable I have in my game.

JavaScript:
$dataEnemies[40].params[2] = (10 * $gameVariables._data[15])

NOTE: IF you try to use $dataEnemies[40].params[2] as the Base to multiply that with the Variable, it will skyrocket into the Millions right away and it will ruin the way how this is supposed to work!!
Yeah but I want to do this with the plugin, it seems easier, I just need to learn how to do it 😛
Yes, I know that, and I've done so.. But I don't understand how I can give it a level range from 1 to 3 etc.
1711115538629.png


Please explain which part you don't understand.

The method that @B3N4ZC4L showed would do some of what you want. It has a few problems.
- It's generally bad practice to directly modify $data arrays during gameplay.
- All copies of an enemy within a troop will have the same level, you can't randomly get a level 2 slime and a level 3 slime in the same fight.
- It's also bad practice to have something like that AveragePlayerLevel which is a parallel event with no Wait command in it. There is no possibility that the actors' levels are changing every frame. It should have a wait command and, really, it shouldn't be a parallel common event.

Place a copy on every map where you have battles, make it a parallel map event that does the calculation (or calls a regular Common Event with it) and then does Erase Event. That way it will only run one time after every fight, which is all you need.

Original thread: https://forums.rpgmakerweb.com/threads/give-enemies-levels.167055/