Exile, Remove with Yanfly Scripts

I'm looking for a way to making something similiar to exile in MTG

Exile is a game zone outside the field of play. It is also a keyword action, meaning "putting into the exile zone".

What i need to create it?


- Battler cannot move and can't be targeted by anything, except a exclusive spell that return it from exile.


It could be done by state setup and Yanfly Target scripts.


- Disable battler from battlefield (image and shadow).


Thats my problem. Is there a way to do it?


With Yanfly buff and states core i created this


<Custom Apply Effect>


// user._prevImage = ?????;


user.setBattlerImage("_blank");


</Custom Apply Effect>


<Custom Remove Effect>


// user.setBattlerImage(user._prevImage);


</Custom Remove Effect>


It clear battler graphic but, there still is shadow, also as you see i don't know how to restore previous battler image.


I need this also for other states like frog, petrify, zombie, shapeshift etc. I found other script but it is incompatible with other yanfly's scripts.


Remove, Exit states


<Custom Remove Effect>


// Remove user from battlefield


</Custom Remove Effect>


Something similiar to escape option, because it freeze game while last party member is targeted by right skill.


Thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/exile-remove-with-yanfly-scripts.64240/