There was a script I was using for an item that acted like a fairy in a bottle. Not sure if that will be of help.

How do I use the subscreen to display full or empty health tanks?