Yanfly Visual HP Gauge - Delay Issue

I have some enemies that don’t have full HP when their battles begin. I’m using variables in the Troops menu to set these HP values.

However, I have Yanfly’s Visual HP Gauges Plugin and when the battle starts, it takes time for “Turn 0” to kick in. You can see that the HP gauge is full for a moment before it processes the variables and removes the HP. Obviously, I’d like the correct HP from the variable to be instantly there.

Does anyone know how I can do this? I’ve been trying to figure it out all day! 😀 Someone in my previous thread suggested that I may have to modify the plugin. Either by delaying the display of the gauge or calling a script command before the battle starts.

I've moved this thread to Plug-in Support. Thank you.

Moved to: Plug-in Support

Oops, sorry! I'll remember for next time. 😀

Still haven't solved this problem and I've been searching the internet all morning. Is there anyone at all that might know?
Looks like Visual HP Gauges gives battlers a property called "_noHpGauge" that you can set to either true or false to determine whether a gauge should be shown at all. You could set "_noHpGauge" to true before changing the enemy's HP. There's a section on line 436 of the plugin that will set it back to false if the battler is revived, so you shouldn't have to worry about toggling it back and forth manually.

Here's a modified version of the troop event example I gave in your other post about this issue:
Spoiler: Disable HP Gauges When HP Is 0
B1GOpya.png

What I've done is, for each enemy that we're about to adjust the HP of, we first check if the stored variable's value is 0 HP (or less, for some reason). If it is, then the _noHpGauge property is set to true. If it's not, it's set to false. Then we adjust the HP, which causes the update method in Yanfly's Plugin to show the gauge and animate it if the _noHpGauge property is false and do nothing if it's true.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-visual-hp-gauge-delay-issue.104588/