Stasis ability?

Hey everyone. I need some help creating a specific state.

So to make this short, I have this state which is called "Stasis".
When you are affected by Stasis, you cannot be hit by any form of direct action, be it enemy attacks, friendly healing or items.

This is optional, but I would also like any other state to be non-functional during the stasis but also have their duration extended equal to the time affected by stasis.

Now I don't know if this is realistic or how you would implement that.
But if anyone got something please do tell me.

Also, if this is only possible with plugins, please excuse me for not putting this thread in plugin requests.

Thanks in advance.
Only possible with plugins. There are a few different ways you could do this; for example, a small plugin could be written that checks for the state before running the apply skill/item effect method for the battler. Alternatively, I think you could use Yanfly's Buffs & States Core and rig a <Custom Select Effect> to remove the battler from the array of targets.

States could be extended by modifying the stateTurns[x] property for that battler, where x is the ID of a state on the battler (e.g. ((target_battler_object)).stateTurns[17] += 3 would increase the length of State 17 on the target by 3, if you can find a correct reference for the target battler's object). However, making the state's properties null and void while leaving the state on the battler would be rough and would most likely need a plugin of its own.

I actually made a Stasis state a few months ago in another engine, and I have to say it's been a real B to try and reconcile with all the other effects. 😀

Original thread: https://forums.rpgmakerweb.com/threads/stasis-ability.121993/