(VX Ace) Yanfly Enemy Levels script (version 1.02) the notetags aren't working...

Hello everyone,

a new issue I don't understand to solve.

The script mentioned in the title, while not crashing, still can't be made to work properly by me.

The reason I need this script is to make one single enemy scale with the player. To do so I use the tag <set level: 0> on all
the other enemies.

The reason I use 0 and not 1 is because I am not sure if level 1 would be base stats I set up in the engine + modifiers or just the base stats, so I went with 0 to be sure. So far so good, this is working as intended.

Then I use notetags, like this:
1716841511048.png


The level scaling is working, I see that the enemy has level 7 for example (depending on average party level) but the stats themselves aren't changing. I know this because I created a test skill that does damage: 50 - b.def * 1 and my enemy has 3 def, so at base level it should do 47 damage, which it does actually but when the enemy is level 7, it does 47 damage as well and not 8 or 2(base + 6 or 7 levels, which would be a def. equal to 42 or 48 depending on if base stats are level 1 or 0).

This is how everything in the script looks:
1716841711044.png


1716841740345.png

And the scripts I am using, in case something there is causing the problems:
1716841804806.png


1716841840414.png


Anyone who might have an idea how to fix this? Thank you in advance.

PS: I did save after installing the script. I am battle testing not by starting the game but via a test battle on troops.
PS2: The first enemy HP bars script is empty, I moved it further down but I never deleted the name, but the scripting area is empty.
Testing out Enemy Levels by itself, it works fine, so there is a script conflict. Move the enemy levels script to the bottom and test.
Thank you @Roninator2 this solved it!

Next time I'll make sure to add scripts at the end. My idea was to have the core Yanfly Scripts together :hswt:

Edit: I have another minor issue now, the enemy has base (level 1) gold amount to drop 52 and in a test battle it was lv 5, the tag is <GOLD: +13 per level> so 52 + (13*4) which should have been 104 yet it gives me 135? Exp is also off though only by 1 and I figured that's fine but the difference from 104 to 135 is kinda big, does anyone know what I need to change?
Could it be the formula STAT_FORMULA = "base * (1.00 + (level-1) * per) + (set * (level-1))" ?

But I thought that when I use tags, those values overwrite the formula...

I did the corrections with the switched exp and gold on lines 493,494 and 505,506.
I remember using this script on vxace in another life.
I'm pretty sure the Exp and Gold tags are inverted.

I remember using this script on vxace in another life.
I'm pretty sure the Exp and Gold tags are inverted.

Thank you but I have these corrected in the script, the error appears after the correction. The error can't be this though because my enemy gives 48 exp at level 5 while starting at 27 and the tag being <exp: +4 per level>, having a 5 point difference (not 1 as I originally thought).

If it was switched with gold, my gold tag is <GOLD: +13 per battle> so it would give me a lot more of exp.

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-yanfly-enemy-levels-script-version-1-02-the-notetags-arent-working.169053/