Yanfly enemy level script + MOG enemy hp and boss hp script

Hey guys could use some help with this. I am trying to use yanflys enemy level script and wanted to use MOG enemy and boss hp scripts but I keep getting this error:
1599167251385.png

How would I fix this?
Scripts:
you just need to put the enemy levels below Mog's HP scripts
you just need to put the enemy levels below Mog's HP scripts
Ok that worked. How would I go at keeping the gauge shown during the battle? Also is there an addon for tp and mp?
keeping the gauge shown during the battle
Two spots in the script for enemy hp
Line 140 and 303 change the false to true for @enemy.hp_meter_active
But in testing this the meter doesn't go away after the enemy is killed.
addon for tp and mp?
You could probably copy the script and change everything that says hp to mp. But there is also an issue with that. what if the enemy has 0 mp. the game will crash with a divide by 0 error.
Two spots in the script for enemy hp
Line 140 and 303 change the false to true for @enemy.hp_meter_active
But in testing this the meter doesn't go away after the enemy is killed.

You could probably copy the script and change everything that says hp to mp. But there is also an issue with that. what if the enemy has 0 mp. the game will crash with a divide by 0 error.
That worked. Nevermind about the mp and tp. How would I go at showing the numbers for regular enemies with the hp bar?
I would then recommend Ventwig VTS Enemy HP Bars

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-enemy-level-script-mog-enemy-hp-and-boss-hp-script.126699/