how to make Hp = Gold help

I working on a game where the player Hp is his gold I trying to set it where if the player get gold they gain hp and if the loss Hp they loss gold I would lik some help


please.
You could use a variable aside from HP or Gold for that and when it reaches 0 it triggers game over.
you can do that by eventing with mathematics and control variable - just have a control variable load the available gold when it changes, calculate how much it changed and apply a change HP command for the difference. And the other way for damage (or using damage coding to reduce the gold in the damage formula directly).

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-hp-gold-help.72596/