How would I trigger a common event when player health/mind stat drops below a certain number?

I've just recently started on my first project in Rpg Maker Mv. I have two status bars for the player character. (health/hp and mind instead of mp)
If either Mind/Health drops to zero it will trigger a game over screen. I also wanted to have it where if the health/mind stat drops below a certain number it will have an effect on the player character. For example if the Max health/Mind is 20, the effect would only trigger if the character's health is below 5.

Spoiler: Mind/Health Menu
Health and Mind.png

I was trying to set up a common event that changes the player character sprite/face, plays certain bgs/bgm and adds filter effects over top the screen.

Spoiler: Normal
Original.png
Spoiler: Low Mind Stat
Effects.png

I was wondering how I would get the common event to be triggered if the characters health/mind stat drop below 5 and have the common event end/not run if the characters health is above 5. Any suggestions/help would be greatly appreciated.
There are two ways to do this.
the complicated but better way and the easy but lag-prone way.

For the complicated way yoiu simply call a common event on everything that changes the player health after it has changed.
this is easy for battles (troop event condition actor health<5% then check the exact value), but you would have to add that call to every event on maps that does damage and to all heaking skills and so on. And it might still cause problems with damaging tiles as they don't have such triggers.

The easy way is to make a common event parallel process with a wait(5) and then check the current health the normal way (control variable and conditional branch).
The problem with this is that if your game uses too many parallel processes, it will cause lag.

You'll have to decide for yourself which way to go based on the rest of your game
There are two ways to do this.
the complicated but better way and the easy but lag-prone way.

For the complicated way yoiu simply call a common event on everything that changes the player health after it has changed.
this is easy for battles (troop event condition actor health<5% then check the exact value), but you would have to add that call to every event on maps that does damage and to all heaking skills and so on. And it might still cause problems with damaging tiles as they don't have such triggers.

The easy way is to make a common event parallel process with a wait(5) and then check the current health the normal way (control variable and conditional branch).
The problem with this is that if your game uses too many parallel processes, it will cause lag.

You'll have to decide for yourself which way to go based on the rest of your game
The game wouldn't have battles. I was planning on having certain enemies chase players and have the players health/mind drop if the event/enemy touches them.
That or certain puzzles/traps if activated/done wrong would do damage. I would also include certain items the player can pick up/find that can restore health/mind.

I know a bit about conditional branches, but still a bit unsure how variables work.
the event/enemy touches them.
there.
hook everything to the same common event that starts with the condition to check for sanity.
if sane, subtract.
if below threshold, handle.

it's called common event precisely for that.
I know a bit about conditional branches, but still a bit unsure how variables work.
Then you probably want to do some tutorials and practice to shore that up before you try to get too far into starting your serious project.

Variables are a very basic concept, and necessary to be able to use to make a game/story of any complexity.

(just like in math class, right? x = 4)
but still a bit unsure how variables work.
search the forum for the "variables guide" - it is a tutorial game that will show you how to use variables.

ignore that it is for VXAce - as said above, variables are mathematics and mathematics haven't changed in the last four thousand years at all. and control variable is identical for VX/VXA/MV/MZ.

if you don't find it by searching, it is also linked in my starting point tutorial in my signature.
I don't know if I did this the most efficient way. But I was able to make it work.
Spoiler: Enemy
Enemy.png
I set a variable that starts at 20 at the beginning of the game and changes based on damage to the player or healing items. Each time an enemy/event does damage, it will check if the variable is below a certain number and if so, it will trigger the event.

I created a common event that would change the variable, that I also linked to the healing item.
Spoiler: Healing Item
Healing Item.png

Spoiler: Common Event
Low Mind Status.png
there.
hook everything to the same common event that starts with the condition to check for sanity.
if sane, subtract.
if below threshold, handle.

it's called common event precisely for that.
I got it to work. Thank you!
Then you probably want to do some tutorials and practice to shore that up before you try to get too far into starting your serious project.

Variables are a very basic concept, and necessary to be able to use to make a game/story of any complexity.

(just like in math class, right? x = 4)
I definitely need to figure out how variables work since I plan on having multiple possible endings/character interactions in game.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-trigger-a-common-event-when-player-health-mind-stat-drops-below-a-certain-number.169110/