Creating a Burst Gauge That Uses TP

2nd post on the board tonight.

I want to create a single resource bar that acts like a burst gauge for the party to use for special attacks. I've been following a guide created by VisuStella for the gauge itself, and it's fairly straight forward. However, I was curious if I could make it so that the bar acts more like a unified TP gauge for the party to draw from.

I've asked a similar question to this on the forums before, but that was for RPG Maker VX Ace. Great system, but since I'm using MZ now, the help I got from that thread isn't as useful anymore.

I feel like making the gauge use TP IS possible with how it's set up in common events, I'm just unsure how to do it.

(Also, since the guide I'm using does involve some VisuStella plug-ins, I apologize if I should have asked this on the JS Plug-In Support Board. I didn't know whether or not the extent of plug-ins mattered here, since they're only really used for getting the gauge into battles)

Here's the guide I've been following. If I need to clarify anything, please let me know.

Just thinking out loud because there are more ways that lead to Rome...

Do you already have a solution for TP to be shared across the entire party? In any case, if you want to make use of the gauge shown with show picture, you could (I think) have the bar length be proportional to party TP by using a script call for showPicture, e.g.:

For initializing:
$gameScreen.showPicture(2, 0, 0, 0, <variable for party TP>, 100, 255, 0);

For updating:
$gameScreen.movePicture(2, 0, 0, 0, <variable for party TP>, 100, 255, 0, 60);

You'd still need a mechanism to update this picture whenever there is a TP change, though. I guess you could do this with a Battle Parallel plugin, or just have a small plugin that calls the common event when there is a TP change.
Just thinking out loud because there are more ways that lead to Rome...

Do you already have a solution for TP to be shared across the entire party? In any case, if you want to make use of the gauge shown with show picture, you could (I think) have the bar length be proportional to party TP by using a script call for showPicture, e.g.:

For initializing:
$gameScreen.showPicture(2, 'bar', 0, 0, 0, <variable for party TP>, 100, 255, 0);

For updating:
$gameScreen.movePicture(2, 'bar', 0, 0, 0, <variable for party TP>, 100, 255, 0);

You'd still need a mechanism to update this picture whenever there is a TP change, though. I guess you could do this with a Battle Parallel plugin, or just have a small plugin that calls the common event when there is a TP change.
.... *Ok you know what, yeah I should prolly set up the party TP OOF--*

I guess a part of me thought it'd be possible to assign TP to variables. A lot of issues I've been having, they've had very simple solutions, honestly.

As for showing the gauge, I've actually gone and set up the graphics for mine. They range from 0-100, with each picture going up by an increment of 1 each.

The whole reason I wanna use TP for this is mostly because it's more reliable to calculate from damage dealt, I guess. But honestly if it proves too complicated to add, I'll likely scrap using TP entirely oof.
.... *Ok you know what, yeah I should prolly set up the party TP OOF--*
I'm not sure what to make of this, as I kind of assumed that you wanted something like a burst gauge for the entire party...? Which would naturally mean you need some way of having a single TP value for the entire party.

I guess a part of me thought it'd be possible to assign TP to variables. A lot of issues I've been having, they've had very simple solutions, honestly.
Can you specify what you mean with "assign TP variables", like, to what? It's important that I understand you correctly.

As for showing the gauge, I've actually gone and set up the graphics for mine. They range from 0-100, with each picture going up by an increment of 1 each.
I'd heartily recommend just using the movePicture to change the dimensions of the gauge graphic instead, since having 100 pictures for a single gauge seems overkill.

The whole reason I wanna use TP for this is mostly because it's more reliable to calculate from damage dealt, I guess. But honestly if it proves too complicated to add, I'll likely scrap using TP entirely oof.
I'm not sure what part of what I said discouraged you, but what I said was nothing overly complicated IMHO.

Below is an example using a battle parallel plugin. It's a little janky becauseSo... I've slightly changed the length of the bar so that the inner dimensions of the gauge are 400px wide:
1740457019169.png

And I created a matching overlay:
1740457090245.png

Then, I create two common events, one for initialization:
1740457173112.png

...and one for update:
1740457567284.png

Note that picture(2), which will be the gauge, is set at x=9.

In the base troop event at turn 0 you will call common event 181.

Adapting this to a shared TP value is just a matter of finding a plugin for it (or DIY it) and change the Control Variables commands accordingly!
Can you specify what you mean with "assign TP variables", like, to what? It's important that I understand you correctly.
Sorry, I was really tired last night and, probably didn't do a good job at explaining anything, oof.

When I said that, I meant something akin to checking what the TP of the party was, then making the "Burst Gauge" match up with whatever the current value is.

I'm not sure what part of what I said discouraged you, but what I said was nothing overly complicated IMHO.
Again, sorry oof. I just kinda started rambling about it. ADHD be like that, I guess lmao.

Below is an example using a battle parallel plugin. It's a little janky becauseSo... I've slightly changed the length of the bar so that the inner dimensions of the gauge are 400px wide:
View attachment 332486
And I created a matching overlay:
View attachment 332487
Then, I create two common events, one for initialization:
View attachment 332488
...and one for update:
View attachment 332490
Note that picture(2), which will be the gauge, is set at x=9.

In the base troop event at turn 0 you will call common event 181.

Adapting this to a shared TP value is just a matter of finding a plugin for it (or DIY it) and change the Control Variables commands accordingly!
This is all pretty useful. The main reason I was looking at making multiple images for the gauge was mostly because of the text honestly. Like, the number percentage I mean lol. I just wanted to ensure it all looked correct and all, but I'll probably edit what I have to function more like this.

I actually did do some digging and found a forum post that involved creating a shared TP pool using common events instead of a plugin. Was thinking maybe of using that for this, since I couldn't really find any reliable plugins.


Idk if it'll work lmao... or how to do it.... but screw it we ball LMAO

EDITING CAUSE I'M A DUNCE. I just reread ur things and realized it already tracks the tp of (what I assume to be) the party leader. So all I really need to do is set up shared TP and I should be golden.

For now anyway. I'm planning on having 9 characters in my game, so while it won't be an issue for now, would there be a way to change it from trackiing "Actor ID's" TP to tracking "Party Member 1's" TP... if that makes any sense
I just reread ur things and realized it already tracks the tp of (what I assume to be) the party leader.
It's actually the first actor that it's now referencing.
I'm planning on having 9 characters in my game, so while it won't be an issue for now, would there be a way to change it from trackiing "Actor ID's" TP to tracking "Party Member 1's" TP... if that makes any sense
I don't think there is a way to get the TP of the party leader just with "vanilla" event commands, but you can use a script call for this:

BurstGaugeInitialize would be:
◆Show Picture:#1, BurstBar100, Upper Left (0,0), (100%,100%), 255, Normal
◆Show Picture:#2, BurstBarGreen, Upper Left (9,0), (1%,100%), 255, Normal
◆Move Picture:#2, Linear, Upper Left (9,0), (100%,100%), 255, Normal, 60 frames (Wait)
◆Control Variables:#0091 Leader TP =
$gameParty.members()[0].tp
◆Script:$gameScreen.picture(2).move(0, 9, 0, $gameVariables.value(91), 100, 255, 0, 60);

And BurstGaugeUpdate would be:
◆Wait:12 frames
◆Control Variables:#0092 Leader Previous TP = Leader TP
◆Control Variables:#0091 Leader TP =
$gameParty.members()[0].tp
◆If:Leader TP ≠ Leader Previous TP
◆Script:$gameScreen.picture(2).move(0, 9, 0, $gameVariables.value(91), 100, 255, 0, 60);
◆
:End

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-burst-gauge-that-uses-tp.175793/