SOLVED - State that turns you transparent

This should be really easy but I haven't found a notetag either on the VS core engine, battle core or skills/states core that indicates that when a character or enemy is, for instance, in a state called "Hide", their sideview sprite becomes transparent (50% opacity or so).
Am I missing something or is there another resource I can use to get this effect?

Thank you!
I don't know of any MZ plugins of the top of my head.
But for MV, I've been using a nifty plugin by @caethyril.

It can be found here on this thread.
-> There is a lot of stuff going on there, but the plugin you want is
"Cae_BattlerOpacity", which can be found in the "General (48)" category and is the
fourth item from the top.


Now, obviously as I said, this is for MV.
However, the plugin is relatively simple so there is a possibility that it still works with
MZ since the engines are extremely similar.

So I think it's worth the shot if you don't find anything else for MZ.
1000041675.jpg

Does it only change an enemy's opacity? How can I modify that so it works on the actors as well?

Thank you!
Actors are $gameParty rather than $gameTroop.

You'd need to use this with something like VisuStella Skills & States Core, in which case you simply use target
Ok, I might need a bit of guidance, I don't really know how to create JS notetags. Should I just type that into the notes in the State in the database?
Thanks in advance.
Ok, I might need a bit of guidance, I don't really know how to create JS notetags. Should I just type that into the notes in the State in the database?
Thanks in advance.
You don't create notetags, you use the ones that a plugin provides, simply putting in the values you need. Check out the help file for the pertinent information.
Thanks for the help, everyone!
These are the notetages I used on the "Hide" state (using Visustella MZ Skills & States Core)

Code:
<JS On Add State>
target.changeBattlerOpacity(128, 15)
</JS On Add State>

<JS On Erase State>
target.changeBattlerOpacity(255, 15)
</JS On Erase State>

<JS On Expire State>
target.changeBattlerOpacity(255, 15)
</JS On Expire State>

Original thread: https://forums.rpgmakerweb.com/threads/solved-state-that-turns-you-transparent.161375/