Visual Status Effects?

Is there a way to make a party member look different when they have a status effect? For example, let me show you Ness from Earthbound, completely okay.

66qchKG

Then say some mushroom enemy gives him a "Mushroomized" status effect, causing him to get confused. This ailment stays outside of battle, and shows Ness with a mushroom on his head.

hQEHYPA

Is there any script that can do the same thing, which is to change what the actor looks like when a status effect is applied to them?
I think you can do it with a parallel process, without any need for scripts at all. Just have a parallel process common event run constantly (let's say once every 30 frames) and check if any party member has a sprite-modifying status. If it does, change its sprite accordingly, if it does not, restore the default one. Of course, if you want to do it with a script you can do it with a script as well, it is quite easy as long as every different sprite is part of the same sprite-sheet.
I think you can do it with a parallel process, without any need for scripts at all. Just have a parallel process common event run constantly (let's say once every 30 frames) and check if any party member has a sprite-modifying status. If it does, change its sprite accordingly, if it does not, restore the default one. Of course, if you want to do it with a script you can do it with a script as well, it is quite easy as long as every different sprite is part of the same sprite-sheet.

This would be a good method, just note that if you want this to happen in battle (like if the actor got the state in battle and not out of it), you'd need a scene interpreter script because parallel common events dont run on the battle scene by default.
That or a troop event that runs at the end of each turn. It does not run when you kill the last enemy, but the one in the map covers for that.
Thank you two for contributing help.

I was able to find a way to get it working.

Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/visual-status-effects.109866/