Changing Actor Opacity when exiting a state?

Hello all, I'm using Yanfly's Battle Scripts.
One of my actors knows a skill called Ultra Instinct that lets
them evade all attacks for 2 turns. I want the sprite to turn transparent while in that state.
I'm using the action battle skill to make the user transparenet currently but I want the state
itself to apply the transparency and remove it when leaving the skill.
So I got something like this but I don't know the variable for changing that value.
In the notebox of the state I've got this

<Custom Leave Effect>

user.setOpacity(255)

</Custom Leave Effect>
I would think the command would have to be something besides user, since the state is not being used.
I would think the command would have to be something besides user, since the state is not being used.
Mmm, that's what I'm thinking. I don't know a whole awful lot about these sorts of things.
Thanks for the answer anyway, I thought id ask the experts. I might end up having to change it.

I've moved this thread to Plug-In support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-actor-opacity-when-exiting-a-state.87782/