MZ Gold to HP transfer and shop.

Hello everyone, I am looking for a way to make the shopkeeper in my game only accept the players health as currency. I was wondering if there was a way to make a plugin that allows health to go up and down with purchases and without having to make events for each individual item.
Thank you!
You need to be more detailed. Who pays with HP? Party leader, the entire party, one specified character...
How does the conversion rate go?
What happens when you sell?

Original thread: https://forums.rpgmakerweb.com/threads/gold-to-hp-transfer-and-shop.132101/