ATB Gauge with Hud Maker?

Hello 🙂
I tried all day to find the "value"-Formula to create an ATB-Gauge with the Hud maker.
For displaying the HP Bar it's:

current value: $gameParty.leader().hp
max value: $gameParty.leader().mhp

and boom, there is a healtbar.

But what on earth are the value's to create an ATB-Bar? I was searching everywhere and could'nt find a single solution for this.

i tried things like:
$gameParty.leader().agi
$gameParty.leader().magi
or
$gameParty.leader().atb
$gameParty.leader().matb

but nothing works. I'm also a noob in this and I'm really lost.

can you please help me? Thaaaaaaaanks a lot in advance 🙂

Sincerely,
Michi

I've moved this thread to Plugin Support. Thank you.

I did some testing myself and this seems to work rather well. party member [0] refers to the first actor in your party. [1] would be 2nd etc.

Essentially your current value for atb will be $gameParty.battleMembers()[0].atbRate() which is a value between 0 and 1. the max value will be 1. There is also a $gameParty.battleMembers()[0].atbChargeRate() which is a value between 0 and 1 with a max value of 1.
the atbRate is when the bar fills before you can attack and the atbChargeRate is when the bar fills after you attack. I used 3 gauges stacked ontop of eachother for each actor and made them show/hide depending on conditions as seen below in the example for the first actor in the party.

Gauge 1 of party member [0]:
Current: $gameParty.battleMembers()[0].atbRate()
Max: 1
Condition:
Code:
!!$gameParty.battleMembers()[0] ? $gameParty.battleMembers()[0].atbRate() < 1 : false


Gauge 2 of party member [0]:
Current Value: $gameParty.battleMembers()[0].atbRate()
Max Value: 1
Condition:
Code:
!!$gameParty.battleMembers()[0] ? $gameParty.battleMembers()[0].atbRate() == 1 && $gameParty.battleMembers()[0].atbChargeRate() == 0 : false

Gauge 3 of party member [0]:
Current Value: $gameParty.battleMembers()[0].atbChargeRate()
Max Value: 1
Condition:
Code:
!!$gameParty.battleMembers()[0] ? $gameParty.battleMembers()[0].atbChargeRate() > 0 : false

this may not be 100% perfect but its really close. You just need to stack those 3 gauges on top of each other and do a set of those for each actor in your party. the gauges will hide and show depending on the conditions so it’ll appear as one gauge at all times but really its 3, one for each part of the atb system, atbRate, atbChargeRate, and one for when your atbRate is at max to signal the player they can attack, this one (Gauge #2) should be a different color or glowy/shiny whatever you want. Hope this helps

ps: depending on what your gauges will look like in the end you can probably get away with showing Gauge #2 while Gauge #3 is filling, just have a transparent background on Gauge #3 and put Gauge #3 on a higher layer so that it simulates whats shown in the default gauges (red filling up the gauge over the yellow effect)

Original thread: https://forums.rpgmakerweb.com/threads/atb-gauge-with-hud-maker.121465/