Hello,
I'm using RPG Maker MZ and VisuStella's plugins and I'm wondering if there's a command or code to change an actor's battle portrait when a state is applied (since I'm using the Portrait style for the Battle Layout). I've looked for it in both the plugin's help and the wiki but couldn't find anything. I'm a total noob when it comes to coding :elswt:
My character uses a skill that changes him into a unicorn (adds Unicorn State) and while I have a working system to change the battler I have no idea how to change the Battle Portrait. I created a common event to switch his graphics when the state is applied and after it expires.
This is the code I have for the Unicorn State:
I'm using RPG Maker MZ and VisuStella's plugins and I'm wondering if there's a command or code to change an actor's battle portrait when a state is applied (since I'm using the Portrait style for the Battle Layout). I've looked for it in both the plugin's help and the wiki but couldn't find anything. I'm a total noob when it comes to coding :elswt:
My character uses a skill that changes him into a unicorn (adds Unicorn State) and while I have a working system to change the battler I have no idea how to change the Battle Portrait. I created a common event to switch his graphics when the state is applied and after it expires.
This is the code I have for the Unicorn State:
Code:
<JS On Add State>
$gameTemp.reserveCommonEvent(24);
</JS On Add State>
<JS On Erase State>
$gameTemp.reserveCommonEvent(25);
</JS On Erase State>
<JS On Expire State>
$gameTemp.reserveCommonEvent(25);
</JS On Expire State>