MZ Having multiple attack types/health bar types

I’m wondering if a battle system could be done having two different health bars, and if either reaches zero the enemy would be defeated.

something like:
HP
Stamina

And certain attacks deplete one of the bars.

if this is possible, I have an idea of using this to track player choices of how they defeat enemies to determine what type of ending they receive.

Thanks!
You can make attacks do MP or TP damage instead, then give the enemies a state where if MP or TP is 0, kill them and increment some variable counting up MP/DP deaths.
Awesome! Thank you so much Aqua echo. I was thinking of either doing a counter to tally it, or do item drops tied to how the enemy died and have the items trigger the ending.

Original thread: https://forums.rpgmakerweb.com/threads/having-multiple-attack-types-health-bar-types.162855/