Stamina

I think MP of Player is the max Player MP, not the current MP because when I tried your script in my project the player MP decreased but the value of the control variable Stamina never decreased.
this works, i think
I modified your script and this works for me.
I modified your script and this works for me.
DUDE THANKS!!!!!!!

i was like, ALL day looking for it, you really helped me out.

THANKS, AGAIN!
No problem, it took me a bit of editing and troubleshooting to get it to work too.

Original thread: https://forums.rpgmakerweb.com/threads/stamina.157606/