YanFly's Enemy Levels Plugin help with level scaling

Hi,

I'm trying to use YEP_EnemyLevels to create an event where the enemies' level increase after each battle, however I'm having a lot of trouble getting the level increases to work. It would be something simple like the enemy troop starts at lvl 1 in the first battle and by the fifth battle the whole troop is level 5 and so on...

I've also been trying to use SRD_BatteEndEvents to have that event run only after the battle was won. However, the troops are always at level 1 even after adding enemy.gainLevel(1) or $gameTroop.gainLevel(1)

I'm pretty lost and would greatly appreciate some help.

Here's a few screenshots to help illustrate
Spoiler: screenshots
1724174005693.png
1724174027077.png
1724174104904.png

I should also mention that I tried using the Plugin Command in the Troop Battle event and inside the Win condition and neither worked...
I can't remember fully so don't go on this 100%

But in the yep e levels, there is a option to base what level the enemy is on based your party and there is an, can't remember the term but it gives a enemy different level.


So if you had a LV6 slime,

And you put 3 of the same slimes in a battle, you'll have a Lv6 slime alongside LV5 slimes or a Lv5, LV6 and LV7 slime.

How far are you testing this? Just one battle or a couple?
I've also been trying to use SRD_BatteEndEvents to have that event run only after the battle was won. However, the troops are always at level 1 even after adding enemy.gainLevel(1) or $gameTroop.gainLevel(1)
This can't do anything. Enemies only exist inside a battle. If you're running an event after the battle was won, there are no enemies and there is no troop.

Additionally, the enemies will always start each battle however you defined their level in their notetag, you would need to do this at the beginning of a battle (or, really, in that notetag).

Can you clarify: are you trying to do this per enemy - every time you see a slime, all slimes level up - or per fight - all enemies start at level 1, next fight all enemies are level 2, etc.
How far are you testing this? Just one battle or a couple?
Can you clarify: are you trying to do this per enemy - every time you see a slime, all slimes level up - or per fight - all enemies start at level 1, next fight all enemies are level 2, etc.
The idea is the level increases per fight, so say we have 5 slime encounters, the first battle all slimes would be level 1, then in the next fight all slimes will be level 2 and so on...
The idea is the level increases per fight, so say we have 5 slime encounters, the first battle all slimes would be level 1, then in the next fight all slimes will be level 2 and so on...
That's still not clear to me, because you mixed the words I used with the example connected to the other words.

Please read my question again - I'm happy to give you the notetag code you need for this to work, but I need to know exactly how you want it to work.

Is it per enemy - every time you have a battle with any slimes, all slimes level up - or is it per fight - every time you have a fight all enemies level up?

That is, you've fought 3 battles so your next encounter has a bat, a slime, and a goblin, and they're all level 4?
Oh I see what you mean... I think per fight would be the closest to it. Every troop is made of the same enemy, however, I would like that even if the 3 battles were bats for example, but the fourth battle is against slimes, all slimes would be level 4 if that makes sense
So choose a variable. Make an Autorun on your game's first map that sets it to 1, then self switches itself off.

Then put a Troop Event into each troop (or you can use something like Yanfly's Base Troop Events) that runs on Turn 0 and adds 1 to the variable.

Your enemies will all have the notetag:
Code:
<Custom Starting Level>
level = $gameVariables.value(42);
</Custom Starting Level>
where 42 is the ID of your variable.
Oh, that worked! Thanks a lot o7

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-enemy-levels-plugin-help-with-level-scaling.171271/