YEP Party Limit Gauge question

http://yanfly.moe/2016/02/06/yep-67-party-limit-gauge/

I'm trying to incorporate a system where the Yanfly's Party Limit Gauge is used as an alternative resource. What I've got so far is that most skills would require using the gauge (power) to use skills. That includes enemies, which is causing a few issues.

The party and the enemy troop have separate gauges, so effects that affect one needs to ensure that it hits the right one. So far, I've done this using if statements and $gameParty or $gameTroop to create the proper effect, such as regenerating some power each turn. My question is if there is a way to use a piece of code to dynamically decide which is needed.

What I want to do is, at the start of battle, add to each gauge base on:

Number of characters in that unit
Each character's luck (more luck means a higher increase)

I'm not sure if I can use the Battle Start parameter in the plugin to create such an effect or if I need some workaround. I once tried using a passive state to add the amount at the start of the battle, but that didn't seem to work since I'm resetting the gauge after the fight ends. Any thoughts?
I'm pretty sure the "Battle Start" parameter only allows modifications for the Party Gauge. I'm thinking Yanfly's Base Troop plugin and some lunatic code should do the trick. What I would do is have a piece of a code that runs whatever formula you want and place it into a variable. Then use Yanfly's script call to add to the gauge based on that variable.
I'm pretty sure the "Battle Start" parameter only allows modifications for the Party Gauge. I'm thinking Yanfly's Base Troop plugin and some lunatic code should do the trick. What I would do is have a piece of a code that runs whatever formula you want and place it into a variable. Then use Yanfly's script call to add to the gauge based on that variable.

The Base Troop plan appears to be working. A couple scripts at the start of the fight can boost each Party Gauge by whatever amount I set. Finding the right amount will take some experimenting, but the framework is there now. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/yep-party-limit-gauge-question.85616/