MV Change battler opacity

Hey again y'all,
I'm trying to find a way to make the "Vanish" skill make the battler actually vanish. I haven't seen a way to do this via the database, and I saw this script by @caethyril in another thread (https://forums.rpgmakerweb.com/index.php?threads/opacity-state.108683/ - first reply), but it doesn't seem to work, or maybe I'm using it wrong (I dropped the notetag in the Hide state notebox). Is there a way to make the Vanish skill (or more specifically the Hide state, which the skill calls on) reduce opacity on the battler to 50 or so and then return to 255 once the Hide state ends? This skill is ONLY used by enemies if that makes a difference.
Hi, not sure how you'd do it completely without plugins, but if you're using YEP's Buffs & States core like in the thread you referenced (https://forums.rpgmakerweb.com/index.php?threads/opacity-state.108683/), then you'd want to put these note tags in your hide state:

<Custom Apply Effect>
user.battler().opacity = 128;
</Custom Apply Effect>



<Custom Remove Effect>
user.battler().opacity = 255;
</Custom Remove Effect>

The Apply effect will make it so that opacity is set to 50% (128) whenever the state is applied, and the Remove effect will reset it to 255 whenever the state is removed/expires.

Hope this was useful.
I'm back here now. I got the plugin from @caethyril working. My only issue now is that it only takes effect once the state is applied. This means that when my ninjas throw their smoke bomb, the smoke bomb animation plays, THEN they disappear, so they're still fully visible at the end of the animation. Just a split second, but long enough to notice. Is there a way to make the opacity change when the skill is cast prior to state being applied(or at least while the animation is playing)?
You could use Yanfly's skill core and put user.battler().opacity = 128; (like @den399 suggested for the apply effect) in a <Custom Execution> notetag instead. Though maybe that will make your ninja invisible too early. If you want even more granular control you will probably need an Action Sequence.
Yeah, it's really just a matter of timing here. I'll look into some action sequences for the skill and see where that gets me.

Edit: Took some playing around, but it looks like the action sequence I put in there is working now!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/change-battler-opacity.146166/