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,676
Reaction score
1,797
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
837
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,746
Reaction score
1,611
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,746
Reaction score
1,611
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 Posts

Latest Profile Posts

Databasing. Just with what I consider "bare minimum", I have listed over 200 skills. That's not all of it, and isn't even considering skills that only 1 class would realistically have. lol

It's a Spanish devlog don't get scared!.
Just read the forum rules just for kicks and rule 14 reminds me of this:
150.jpg
I'm in the process of converting all locks and intimidate/persuade dialogue options into D20 DC based success/fail (modified by player skill). Before, it required a certain flat amount you had to meet, but with rolls, it offers more freedom. For instance, you can repeatedly try to unlock a door instead of just not meeting the requirement to unlock it.
Since we get very close: If you want to enjoy the advent calendar as it is intended, wait til your date and the day in the URL line up, so you have the final day on actual christmas and not the day before... time zones ;3

Forum statistics

Threads
117,054
Messages
1,104,170
Members
153,022
Latest member
kopa
Top