Trying to create an all encompassing state like death.

So what I'm wanting to do, this is simply more out of curiousity for later projects than for ones now, is create a state that, like death, encompasses all battle situations and even outside of some for cases like fall damage and the like.

I wanted this to sort of be like the bleeding state in D&D where you go below a certain health percentage and your character is marked as bleeding.  I was wanting this simply for the ability to change music, effects, etc... when the player gets very low on health to make it feel like a more tense situation.  I tried sort of copying the death/K.O. scripting and simply changing it to bleeding and linking it to state_id 26, which is the bleeding state I created to try and test it out, however it doesn't work still and I know next to nothing about scripting so I don't know if I'm simply missing something simple or if I need to add in a whole new script to make this state.

Like I said this is more for just curiousity because I might make a game with a heavy D&D feel if I can and I was wondering about this, but it's no big deal really if I can't figure it out. 

Thanks to anyone who takes time to look at my problem!  🙂
ah woops, just realized i should put this in scripting forums lol. my bad.
No, it's in the correct forum, but please do not double post. If you wish to move your thread, report your own topic and ask for it to be moved.
How do you want the bleeding state to be removed?
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


Closing since you went ahead and made a new post. You could have just reported this one and asked it to be moved.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-create-an-all-encompassing-state-like-death.16014/