So I'm making a game without battle sequences, where you touch and then defeat monsters with knockback. Both Parties take damage scaling off Attack and Defense. Thing is, I thus have to treat the Monster HP as a Variable. With script prompts, you can easily substract the difference of the player Attack and the Monsters Defense from the Monsters HP-Variable. To do the same thing in reverse though, I can't reduce the HP of the Player as a Variable, because it isn't one. I have to us the simple "Change HP" command. But that command won't let me use a script prompt. As a consequence, i thought just adding the Defense to the HP first and then subtracting the ATK would solve the problem, but that added Defense can't surpass the Maximum HP, leaving me with the Bug where the first Attack when your player is at Max HP will ignore your defense stat, which is bad for a few interactions. I need some way to change the players HP with a script call, can anyone help?
Here is an example Monster-Event btw:
Here is an example Monster-Event btw: