Rural Farm HP calculation in the hud, readjusting hearts to represent a different character

I want to know how I would adjust each heart in the HUD to represent a different active party member's HP(not all actors, just the active ones) in order left to right. 1, 2, etc.
How would I do this? Or is it even possible with this system?


Basically I know absolutely nothing about how the heart system works(the only part of it that I fully understand is the time system and how it works) and if the entire thing is locked specifically to party member 1, actor 1, or what... However, a big issue I have even attempting this on my own is that in variables > game data > party, where it lists party member by what number they are in the party, it's locked to actor ID and I can't have it use the character's HP instead.


Can someone help me, please? 😀  
It's bound to one actor only (the party leader), it cannot be used for multiple party members, you'd need to overhaul the system completely and event it yourself. Check out the common event HP Calculation, this is where it'll calculate how much HP the player has, and store it in a variable which will display the correct 'hearts'. Besides, the heart graphics aren't individual, you would need to edit these yourself and crop them into individual images for your intended purpose.


You can still set a variable to the party member's position (instead of Actor ID). Go to Game Data > Party > Member #1. This should set the variable to that actor's ID in slot number 1, so that you can create a conditional branch for each one of these actor IDs.


So what exactly do you want to do with the HUD?
It's bound to one actor only (the party leader), it cannot be used for multiple party members, you'd need to overhaul the system completely and event it yourself. Check out the common event HP Calculation, this is where it'll calculate how much HP the player has, and store it in a variable which will display the correct 'hearts'. Besides, the heart graphics aren't individual, you would need to edit these yourself and crop them into individual images for your intended purpose.


You can still set a variable to the party member's position (instead of Actor ID). Go to Game Data > Party > Member #1. This should set the variable to that actor's ID in slot number 1, so that you can create a conditional branch for each one of these actor IDs.


So what exactly do you want to do with the HUD?

Simply that, actually. Just make the hearts represent a different character.
The system itself is wonderfully done, so there's no changes I'd like to make aside from that. A lot of the project relies on the time system, different periods of the day make different enemies appear in the wild, different NPC's are accessible, etc.

I've locked the first member of the party into his slot because of some bugs I was having(battle system related, nothing to do with the HUD,) and he's a tank so he has a massive amount more HP than anybody else, so I thought it'd be helpful to be able to monitor everybody's HP on the HUD.
You would need 5 variables to represent the hearts/actors, and then make these hearts into single graphics (currently when the player is full health, there's 5 hearts in one image, you need to split these into 5 images). In the script, you need to add these images and tie them to the variables you used. Right now it only uses one variable to display one image, whereas you need 5 images.


Then in the common event HP calculation, you do the same calculation for the other actors, but update their appropriate variable instead.


So to sum it up:


- You need to chop up the hearts images, into 5 individual hearts


- You have to add 5 new variables with the images tied to them in the script section


- In the common event HP Calculation, you need to calculate the same thing for those 5 variables


Then it should work, probably.
You would need 5 variables to represent the hearts/actors, and then make these hearts into single graphics (currently when the player is full health, there's 5 hearts in one image, you need to split these into 5 images). In the script, you need to add these images and tie them to the variables you used. Right now it only uses one variable to display one image, whereas you need 5 images.


Then in the common event HP calculation, you do the same calculation for the other actors, but update their appropriate variable instead.


So to sum it up:


- You need to chop up the hearts images, into 5 individual hearts


- You have to add 5 new variables with the images tied to them in the script section


- In the common event HP Calculation, you need to calculate the same thing for those 5 variables


Then it should work, probably.

I'll see what I can do 😀
Thank you, Celianna!

Original thread: https://forums.rpgmakerweb.com/threads/rural-farm-hp-calculation-in-the-hud-readjusting-hearts-to-represent-a-different-character.71962/