Having an item in your inventory relate to HP.

Hello! I am somewhat new to RPG Maker VX Ace myself, I worked on a game earlier that took me 200+ hours as a little test to see how well it works. Now that it's over I'd like to start up my next game soon but... I want it to have a unique mechanic I suppose. It's a fangame too, but a fangame from a series that is difficult to turn into an RPG. Pikmin.

In Pikmin, your health could be considered your Pikmin, if you run out you lose. You also lose if you run out of normal HP though. The normal HP is no issue, I had the idea of Pikmin being an inventory item that counts towards HP. If you're attacked you lose a set amount of HP, each Pikmin is worth a set amount that scales from 5, 10, 15, ect... So you're attacked and you lose 5 HP, you lose one Pikmin. I want to know is it possible to lose an item as well? The attack isn't guaranteed to hit is what I'm going for, and there are 5 types of Pikmin. One Pikmin is Purple who is more durable than others and gives 10 HP instead of 5 HP like the others. Not only that but Red Pikmin are immune to fire, White to poison, Blue to water, and Yellow to electricity. Is it possible to make this game the way I'm trying or should I just give up while I'm far ahead?

To sum it up, I want an item in your inventory to add HP to you by simply sitting there, and you lose the item if you are attacked. There are 5 variations of the item, some are immune to certain types of attack elements. (Was that a good sum up lol?)

Anyways I'd love some help on this! I don't know scripting very well but I'm willing to try it out if necessary, in which case I'd have to start learning more than the basics I suppose, which is a good idea regardless for this next project. 

Thanks for the help if you can give it!

(Really hoping it's not an easy solution or anything now haha, because if it is I'll feel pretty dumb...)
It's probably going to require a script to do this. So I'll move it to the Script Requests forum.
Alright sounds good, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/having-an-item-in-your-inventory-relate-to-hp.43546/