[RMVXAce] XAS switch activates when player is low hp

Is there a way that I could activate a switch in XAS (Xiderowg Action System) when the player is low life. There was a script function for this in xp , hero_lowhp_switch(SW_ID,true/false) , but I cant seem to find anything similar to that on VX ace. Look at my example for a better understanding of the question

Example:

Spoiler
Player with 500 hp meets a boss with 1000 hp. Player takes 450 damage from the boss. Switch activates and an event runs. I would really appreciate help. 🙂
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
A common event maybe? I'm just talking out of my ass here since I'm not too familiar with XAS. Just a thought.

Original thread: https://forums.rpgmakerweb.com/threads/rmvxace-xas-switch-activates-when-player-is-low-hp.15468/