State that isn't removed upon death

Like the title says, I need a way to make a state doesn't expire upon the dead of the battler.

Scripts like Neon Black's Passive Skills or Hime's Permanent States work, but what those scripts do AFAIK is merging states' features into actor's features. While practically this makes what I want (the state doesn't get away from the actor no matter what happens), it doesn't allow to check for states on a actor (mostly to read notetags for other's scripts), and I absolutely need to do that for a lot of other things.

Also, by setting a state irremovable by death, I could combo it with Hime's Auto States to create a flawless "passive skills" system that works with virtually any other script.

Any ideas?
A script that doesn't remove states on death is Gamefreak's Stop State Removal on Death. States still act as normal, but they are not removed when dying. Pretty useful as I use one state to alter exp/gold/item drops and another state to keep my Defend up while dead; removal via timing will still occur even when dead.

Original thread: https://forums.rpgmakerweb.com/threads/state-that-isnt-removed-upon-death.75967/