change enemy transparency/image mid battle? (front view)

basically i wanna be able to make an enemy invisible as a state effect. i could do that by either changing their picture to a completely transparent one or using a script to change their transparency.

does anyone have a way to do either? a script for either or just a way to event it? i still want the enemy to be fully functional, just visually gone. thanks so much!

if i can't do it as a state effect, is it possible to event it in troop events?
I have not personally tried this, but I think you could use the event command 'Enemy Transform' to transform your enemy to another enemy with the same stats but no picture. (https://rmmv.neocities.org/page/01_10_15.html)
If the transform trick works, there is also this Yanfly Tips & Tricks explaining how you can tie transformations to a state, using only the Battle Engine Core and Buffs & States Core, which are both part of their free starter pack plugin collection.
gosh, i had no idea transforming retained hp and mp. thank you🙂
Glad I could help.

As an aside: Even if the transform didn't retain hp and mp you could just save the current hp and mp of the visible enemy in variables, then transform into its invisible form and then set the new form's hp and mp to the values stored in the variables.
Conversely if you later want to transform something and don't want it to retain the damage, you could just use the recover all command as part of the transform event.

Original thread: https://forums.rpgmakerweb.com/threads/change-enemy-transparency-image-mid-battle-front-view.141833/