Health Indicator Show Picture Help?

Im trying to figure out how to show a picture, that indicates the overall health of the party, based on opacity, with fair health making the picture more transparent, and making the opacity lessen as the parties health declines. So... if theres a character that need to be healed, the player will know based on this graphic that appears on screen. Not a health bar or anything like that. I know theres probably plugins for this, but I really want to figure out how to do it using common events, as I pretty sure that something like this would require that rout to be taken....I think I would need to use variables too, but im having trouble understanding how to use them in this case.

upload_2017-7-26_22-34-46.png


As an example, here is what the picture would look like if the parties health were critical.

upload_2017-7-26_22-37-17.png


...and this, if the party were at like, mid over all health.

Could any of you advise me on how to make this work. Thank you, in advance.
You can set up a common even like this maybe...
Obviously this is very crude and would need tweaking but this should achieve it
Capture.JPG
You can set up a common event on parallel process and have the following script command:

Code:
$gameScreen.picture(pictureID)._opacity = 255 * (1 - $gameActors.actor(1).hpRate())

Replace pictureID with the ID of the picture. This will base opacity on the hp rate of actor 1.

Alternatively, you could base opacity on the party leader as well:

Code:
$gameScreen.picture(pictureID)._opacity = 255 * (1 - $gameParty.leader().hpRate())

Original thread: https://forums.rpgmakerweb.com/threads/health-indicator-show-picture-help.81850/