Petrify and ATB

So, I am trying to make a petrify state like in the classic final fantasies. I am looking for a script that would treat the petrified character as "dead" in terms of being targetable by enemies and allies (except by status curing items/skills) but still alive when using revival spells/items, particularly when it comes to TPKs.
I am also trying to find an ATB system since all the ones I searched for are for MV.

Original thread: https://forums.rpgmakerweb.com/threads/petrify-and-atb.176854/