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,673
Reaction score
1,795
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
420
Reaction score
836
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,706
Reaction score
1,590
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,706
Reaction score
1,590
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

Sharing my past was a mistake. Will delete the post when I get access to a working internet connection again.
TFW you get a plugin working correctly with your other plugins ♡\( ̄▽ ̄)/♡

(CW for minor gore - Einar's Y incision is gone for his test portrait)

Cs5kAbZ.png
Doing some winter related edits for a cozy cottage!
I think it's the third time I am changing my skill info plugin, but as I get better at programming, I want to fix the trash I made earlier :p

Streaming while I am programming the plugin. Join in if you wish :)
Currently working on a side game for the One Map Game Challenge. :kaoblush:
3H2mUEI.png

As you can see, the game will be called "Welcome To November". Hopefully, I'll finish it before November ends. :dizzy:

Forum statistics

Threads
116,980
Messages
1,103,487
Members
152,844
Latest member
schuzz6
Top