How do I kill the player (or the entire party) once MP (sanity) hits 0?

So I've been trying to do this for days now, and most of the attempts just end up killing me INSTANTLY or drain the mp, but not kill the player once mp hits 0 or lower. Can anyone please help?
Screenshot 2025-02-15 212302.png
Screenshot 2025-02-15 212311.png
Don't crop the screenshots of your pages, show the whole pages. In your second pic you're setting variable 4 ('Sanity') to the character's MP, but then in your conditional you're checking some other variable ('Leon's MP')? Put in the conditional If : Sanity = 0
OMG
Don't crop the screenshots of your pages, show the whole pages. In your second pic you're setting variable 4 ('Sanity') to the character's MP, but then in your conditional you're checking some other variable ('Leon's MP')? Put in the conditional If : Sanity = 0
instantly fixed it...I'm so stupid...

TYSM!!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-kill-the-player-or-the-entire-party-once-mp-sanity-hits-0.175482/