Hi! I'm very new at this but I wanted to know if anyone could help me with this, I want to make it so that when a status effect is applied the portrait on the battle screen changes and once it's cures or passes it goes back to normal. I was wondering if there was a plugin or way to code that in? thank you in advance! <3
Changing the Actor portrait when a status effect is applied?
RPG Maker MV SupportYou can do this with event commands from within the editor.
Have common event running as a parallel process that uses the conditional branch command to check whether an actor has the state you are interested in showing a different face graphic for. Make sure you have the box ticked to give it an "else" branch. Look on the second tab of the conditional branch dialogue to choose the actor and state. In the "if" part, use "Change Actor Images" from the third tab of "event commands". "Change Actor Images" sets the face picture, walking character sprite and sideview battler of an actor. Set the actor's face to the status afflicted one, but to set the character graphic and, if you use side view battles, the battler, to their normal graphic.
In the "else" portion of the conditional branch, set the normal face, normal walking character and battler.
In the same parallel common event, repeat for the other party members.
Somewhere in the event, remember to put a "wait" command. (I suggest trying about 30 frames.) This will reduce the amount of processing time that the parallel event will use, because you don't want your game slowed. If the game seems slower than it should, increase the wait time.
If you wanted to check for multiple states to show different face pictures, it is slightly more complicated, but still fairly easy.
You may find it useful to have a go at a few tutorials to help you become more confident.
Good luck!
Edit: Something like this:
Have common event running as a parallel process that uses the conditional branch command to check whether an actor has the state you are interested in showing a different face graphic for. Make sure you have the box ticked to give it an "else" branch. Look on the second tab of the conditional branch dialogue to choose the actor and state. In the "if" part, use "Change Actor Images" from the third tab of "event commands". "Change Actor Images" sets the face picture, walking character sprite and sideview battler of an actor. Set the actor's face to the status afflicted one, but to set the character graphic and, if you use side view battles, the battler, to their normal graphic.
In the "else" portion of the conditional branch, set the normal face, normal walking character and battler.
In the same parallel common event, repeat for the other party members.
Somewhere in the event, remember to put a "wait" command. (I suggest trying about 30 frames.) This will reduce the amount of processing time that the parallel event will use, because you don't want your game slowed. If the game seems slower than it should, increase the wait time.
If you wanted to check for multiple states to show different face pictures, it is slightly more complicated, but still fairly easy.
You may find it useful to have a go at a few tutorials to help you become more confident.
Good luck!
Edit: Something like this:
Thank you so much!!! will report back if it works! 😂
Hi again! i tried to do it as you said but I wasn't able to figure it out? did I do it wrong or is there something I'm not seeing? I'm so sorry if it looks weird I'm not sure what I'm doing, i also tried it on a completely new project and it also didn't work 😐
Thanks again in advance 😩
That method actually won't work, because parallel common events don't run in battle. Perhaps you could find a plugin to change that. Otherwise, you'll have to find a way to manually call the common event after every action, or something along those lines (I'd imagine that there's a Yanfly plugin that could help with this).
In either case, the way the common event is set up would result in a lot of unnecessary party refreshes, so I'd recommend changing it so it doesn't try to change the actor images if the current image is already the correct one.
Oh maybe, I tried to find one but couldn't find any Yanfly plugins, maybe I'm not looking hard enough? thank you for pointing out the unnecessary refreshers! that is something I will keep in mind for the future 😂
Original thread: https://forums.rpgmakerweb.com/threads/changing-the-actor-portrait-when-a-status-effect-is-applied.162261/