Zealvern

Villager
Member
Joined
Oct 30, 2020
Messages
23
Reaction score
5
First Language
Spanish
Primarily Uses
RMMV
Both work great separately, but is there any way to portray the Barrier Points the YEP plugin gives you in the SRD HUD? The barrier points are displayed as missing health.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,691
Reaction score
1,805
First Language
Dutch
Primarily Uses
RMMV
you can try to put the barrier points as variable and show that in the HUD,
otherwise it should be possible otherwise, but I dont use Barrier Plugin
or use it at the moment, but there should be something you can use
otherwise to display it as text.
 

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
426
Reaction score
847
First Language
English
Primarily Uses
RMMV
$gameParty.members()[0].barrierPoints() this will show barrier points on text or gauge. I've got it set where a different colored gauge appears you have barrier points. so yeah, instead of saying $gameParty.members()[0].hp change it to barrierPoints()... oh you'll have to make this it's own gauge and text though so it doesn't interfere with the normal HP gauge.
 

Zealvern

Villager
Member
Joined
Oct 30, 2020
Messages
23
Reaction score
5
First Language
Spanish
Primarily Uses
RMMV
$gameParty.members()[0].barrierPoints() this will show barrier points on text or gauge. I've got it set where a different colored gauge appears you have barrier points. so yeah, instead of saying $gameParty.members()[0].hp change it to barrierPoints()... oh you'll have to make this it's own gauge and text though so it doesn't interfere with the normal HP gauge.
Yeah, the problem is that if the character's HP has BP, it'll show itself as missing health

hold up

what if I make a BP barrier that scales with max HP, flip it upside down and place it above the HP?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,843
Reaction score
1,665
First Language
English
Primarily Uses
RMMV
Yeah, the problem is that if the character's HP has BP, it'll show itself as missing health
This sounds weird. You shouldn't need to do funky workarounds for this, you should look at the code for drawing the HP gauge because that's a completely separate number from barrier points.
 

Zealvern

Villager
Member
Joined
Oct 30, 2020
Messages
23
Reaction score
5
First Language
Spanish
Primarily Uses
RMMV
This sounds weird. You shouldn't need to do funky workarounds for this, you should look at the code for drawing the HP gauge because that's a completely separate number from barrier points.
The missing health? I guess it's because when you have full HP and you recieve Barrier Points, the game has to increase the maxHP to accomodate the BP, and since HUDMaker's gauges only have one variable in mind, the BP are invisible there.

Maybe I'm mistaken, but it seems that's the reason. I tried with the flipped gauge and it seems to work.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,843
Reaction score
1,665
First Language
English
Primarily Uses
RMMV
The missing health? I guess it's because when you have full HP and you recieve Barrier Points, the game has to increase the maxHP to accomodate the BP
Except it doesn't - as I said, your barrier has nothing to do with your HP. They're two different numbers. They're not connected any more than your HP and your Agility are. That's why I was asking to see the code for the HP gauge, because it couldn't have anything to do with your barrier unless it was coded to.

But if you're satisfied with your fix, that's fine! I'm glad you got it to work.
 

Zealvern

Villager
Member
Joined
Oct 30, 2020
Messages
23
Reaction score
5
First Language
Spanish
Primarily Uses
RMMV
Except it doesn't - as I said, your barrier has nothing to do with your HP. They're two different numbers. They're not connected any more than your HP and your Agility are. That's why I was asking to see the code for the HP gauge, because it couldn't have anything to do with your barrier unless it was coded to.

But if you're satisfied with your fix, that's fine! I'm glad you got it to work.


Okay, you were right. I made a silly mistake while testing. On the test battle, the party starts already wounded, so what I thought was the BP transforming into missing health was ACTUAL missing health. God thank you made me notice.

This is what I have right now (everything is pretty much placeholder), we'll focus on the third party member since he passively starts with a barrier equal to 20% of his max HP. The barrier is the pink bar.

1635412579385.png

The code for the HP gauge is the following:

Current value
$gameParty.members()[2].hp
Max value
$gameParty.members()[2].mhp

The code for the Barrier is the following:

Current value
$gameParty.members()[2].barrierPoints()
Max value
$gameParty.members()[2].mhp

I made a tweak for both Max value formulas, making it add the current BP to the maximum HP, and it seems to work
$gameParty.members()[2].mhp+$gameParty.members()[2].barrierPoints()

Only thing I slightly dislike is that the barrier stays on the right if there is missing health, so instead of looking like this:
1635413573418.png
it looks like this:
1635413608219.png
But it doesn't bother me that much.
 

Latest Threads

Latest Profile Posts

aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v
Well, I've got a party tomorrow, and my friends are coming over. I wanted to work a bit on the Fandom Scouts assets so I can be ready when that update arrives... in other news, Pizza Time Horror is getting a second teaser, and it shows Cabaret Helen's last performance before the location closed.
Also who used to be scared of Chuck E as a kid? I was! Now I love him!
The new cards and what they do:

(I am clearly not a youtuber... Haha)

Forum statistics

Threads
117,275
Messages
1,106,053
Members
153,450
Latest member
BRCMuller
Top