MZ How to continually update variables in battle? (VS Variable Gauges)

Hi all, I’ve been trying to get this plugin to work, and feel like I might be missing something obvious.

I want to use Variable Gauges to display boss HP in battle. I’ve set it up so that the gauge appears, and is full to maximum. But I want to know how I can get it to update after every attack.

(In another thread, NaosoX linked to one of his videos, and it’s exactly what I’m looking for:

)

My question is, how do I get it so the variable is constantly refreshing like that? I’ve tried searching the forums, and they seem to say you need a plugin, and a lot of the answers are more for rmmv. But I’m just wondering if I’m missing something obvious.

In the troop commands, I’ve set the variable to the enemy hp, and tried triggering it through the conditions, but I’m not sure what to do.

Is it something I should be setting through a plugin? Or is it something that is done in the battle events of the Troop command?
It looks like the battle in the video is using action sequencing, so I'd wager you just add
1740359207737.png

At the end of each damaging/healing skill sequences. Alternatively, you could probably also add a common event to all these skills that runs the command, although it wouldn't happen immediately after the damage was taken and thus look jank, probably.
So I might be misunderstanding, but wouldn’t there also need to be another event command, to change that specific variable?

Like, after each move:
-Set variable to boss HP
-Refresh gauges

If so, I’m not sure how I could set the boss-specific variable through a custom action sequence. But again, I am very confused hahaha.
I’ve set it up so that the gauge appears, and is full to maximum.
I assumed this meant you already set up the gauges to display the various HP/MP/Whatever. If that is the case, you only need to refresh it so it displays the new current value after each hit.

I don't own any visu plugins, so I can only assume you'd set them up in the parameters, based on their wiki.
1740361412935.png


If that's not the case, you can just assign the new value after each hit in your action sequence via the basic control variable command.

Edit: I do wonder, why not just use the visu battle core? It comes with HP gauges. The variable ones are better used for custom systems, like the ones shown in their video it seems.
I assumed this meant you already set up the gauges to display the various HP/MP/Whatever. If that is the case, you only need to refresh it so it displays the new current value after each hit.

I don't own any visu plugins, so I can only assume you'd set them up in the parameters, based on their wiki.
View attachment 332395

If that's not the case, you can just assign the new value after each hit in your action sequence via the basic control variable command.

Edit: I do wonder, why not just use the visu battle core? It comes with HP gauges. The variable ones are better used for custom systems, like the ones shown in their video it seems.

Yep, I have the gauges set up, and they’re connected with the variable. And I understand what you’re saying, how I can I assign a new value after each hit, in the action sequence. But, the plugin requires you to set a ‘maximum value’ for each gauge, which would be the max hp of each boss.

So, if boss A is 70hp, and boss B is 120hp, they need different gauges, and (I presume) different variables for each boss. So I’m not sure how I’d do that in the action sequence. (Hope that makes sense)

My goal that I’ve been trying for a while, is to have a big boss hp bar at the bottom of the screen, and I just can’t figure out how to do it. I bought the VS Multi-layer hp gauge plugin, but it unfortunately doesn’t work in conjunction with a field gauge (which wasn’t mentioned in the plugin description). So I bought this plugin, but not sure if this is a solution either. And I think the regular core gauges are just little ones attached to the sprites.

So it’s been quite frustrating! Thanks for your time and help though, I do appreciate it.
Well, anything is possible. You can just put a conditional branch into all the skills that checks which boss is the target, and adjust the correct variable. And yes, you'd need to make a variable for each boss, that's how this plugin does things.

Edit: You can also try using one variable/Gauge for all of them by using $gameTroop.members()[0].mhp as their maximum value. That way, you only need to make sure your boss is the first/only enemy you put into your troop.
Well, anything is possible. You can just put a conditional branch into all the skills that checks which boss is the target, and adjust the correct variable. And yes, you'd need to make a variable for each boss, that's how this plugin does things.

Edit: You can also try using one variable/Gauge for all of them by using $gameTroop.members()[0].mhp as their maximum value. That way, you only need to make sure your boss is the first/only enemy you put into your troop.

Thank you!! I did get it working, by creating different custom action sequences for each skill, and each character’s attack.

I can make a switch for each boss, and also a variable, tied to the gauge and max hp. And then, after the attack is performed in the action sequence, just run a monster conditional branch of each boss (If Switch: Boss A is ‘On’, set Variable: Boss A Gauge to enemy hp)

I tried the script, and it could be a huge help, but I’ve found one obstacle: you need to set gauge max hp before the battle already starts. Otherwise it starts empty.
The gauge max is a parameter in the plugin, no? I'm not sure why you couldn't put it there. Regardless, you could probably do that in a turn 0 troop event in the boss troop. I see no issue with the bar filling up when battle starts, in fact, kinda cool imho.
Hey, not at my pc now but I’ll try that later. $gameTroop.members()[0].mhp is in the plugin parameter, but since Enemy A isn’t established until actually starting the battle, it starts out empty, and doesn’t reset until an action sequence is performed. I’ll try playing around with a troop 0 event, but I can always just go through with a big conditional list of bosses. At least it works!

Thanks again for the help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-continually-update-variables-in-battle-vs-variable-gauges.175774/