Hide Yanfly Party Limit Gauge at battle end

I'm unfamiliar with javascript so I was hoping to get some help designing a base troop event so that yanflys party limit gauge hides upon killing last enemy. I'm using a custom victory scene which still shows the party limit gauge on screen while everything else disappears. I need that gauge to hide as well. I tried setting battle event conditions to something like this.

condition: check if enemy is <=0. Span: Turn (Not sure what to set as i tried all)
Then a conditional branch with script call
If : Script : $gameTroop.aliveMembers().length == 0;
Plugin command: HidePartyLimitGauge
: Else
: End

Can't seem to get it to work at all and not sure what else to try.


http://yanfly.moe/2016/02/06/yep-67-party-limit-gauge/
The reason is because when the enemies are defeated, the game stops checking for events that can run. Basically, the pages are shut down and you're taken right to the Victory phase.

Himeworks' End Phase Triggers
should help solve that issue. Hope this helps!

Side note, I'm a big fan of your game. Hope development is coming along well. All the best!
The reason is because when the enemies are defeated, the game stops checking for events that can run. Basically, the pages are shut down and you're taken right to the Victory phase.

Himeworks' End Phase Triggers
should help solve that issue. Hope this helps!

Side note, I'm a big fan of your game. Hope development is coming along well. All the best!

Thank you! I saw a post similar and also used himes plugin. It still wont do what I want as is so I'm at a loss.

Thanks for the compliment. Been keeping an eye on asylum as well. 🙂 hope to try it soon.

Original thread: https://forums.rpgmakerweb.com/threads/hide-yanfly-party-limit-gauge-at-battle-end.90550/