A couple of things here.
Your screenshot is showing the enemy scan in battle.
So you have to ask if the stats being shown are because the bestiary is showing database stats or if the debuff script is not working for your project, and yes I understand that the states are only for the enemies in battle, but depending on how things work together it could push the updated stats to the bestiary.
This is from not looking at any code.
Inspecting Venka script...
The Scan window is a child of the bestiary stats window.
in bestiary stats it is using $data_enemies[enemy_id]
Not the battle enemy, the database enemy.
You could try adding into the bestiary script line 1224 for the def enemy_id=(enemy_id)
@enemy = SceneManager.scene.enemy_window.enemy if (SceneManager.scene_is?(Scene_Battle) && SceneManager.scene.enemy_window.active)
Not tested, just taking a look at yanfly's enemy target info script.
Doesn't work enemy window is not active at that moment.
Moved to: RGSSx Script Support
<max buff stat: +x>
Reading this by itself can be confusing but when you also read the MAXIMUM_BUFF_LIMIT
down on line 266, it become a little bit clearer.
The note tag will restrict how many times that particular stat can be buffed.
So it you had <max buff atk: +1>
then you can only add a buff to the atk stat once. The next time the stat is attempted to be buffed will not apply.
If you want to send me in a PM your updated scripts file then I can play with a battle and see if I can find if this is working or not, but also describe what you are doing or send the troops file, or enemy file or the map file. Not sure where you do the battle from what troop event you are using or what enemy or what skill.
Either bestiary_include? doesn't exist or there's something wrong with @enemy.shown_id...
I have no idea why it's causing an issue as when I put p(@enemy.shown_id) it works fine, but gives me the same error for the same line.
In the script on line 551 if I add in attr_reader :shown_id then the problem goes away.
I also figure out the enemy_window option I was suggesting, however it won't work as the script is looking for specific data and the enemy_window gives Game_Enemy while the original code gets the RPG::Enemy
So in short I don't think you will ever get it to show lowered stats when they are buffed or debuffed.
But at the same time it actually doesn't look like they are getting debuffed.
I'll look more later.
So I spent a few hours on this yesterday and figured out (admittedly to my own lack of intelligence or maybe just understanding as to what the venka bestiary does),
there is a misconception with the venka bestiary script.
The bestiary will show the enemy stats and features that are configured in the database. It will not look at the current enemy that is in battle.
It simply gets the enemy id and loads the database information.
So the debuffs window on the enemy scan is showing any features that have debuff's applied to them.
If you apply a debuff to an enemy in battle this will not be considered for the scan window.
The bestiary script needs to be rewritten to have that as a possibility.
My tests of the buff and state manager seems to work fine (test project).
Once a new script or modification of venka bestiary is made then this should be solved.