Is it possible to change Sideview Actor Graphic on state change? (aka Toad/Mini from FF games)

Let's say I have a State which will transform a character into a weaker version of themselves. If you've ever played the Final Fantasy games, I mean states like Toad and Mini, where your character's visual appearance changes and it is accompanied by a loss of stats and possibly other effects.


I want to have something like that for my game. My question is - can this be achieved through states/skills/common events or will I need a plugin for this?


I need it so that every time this state is applied (one of the ways I want it to be applied is by running out of MP - if you can tell me how to do that as well, that'd be great, but I'm mainly focusing on the first thing at the moment), the character's sideview battle graphic is changed to a different graphic which I specify, and when the state wears off/is cured, the graphical change is reverted back to their normal form.


So... eventable or plugin required?
This is absolutely possible. In fact, here is a tutorial that Drifty from Driftwood Gaming made on how to do it:










Hope that helps you out, have a good one.


Z
Changing Graphic under a state:






Applying a state while with no MP:
Changing Graphic under a state:





Applying a state while with no MP:



I use Yanfly's Core plugin (and other plugins by Yanfly), would it not conflict with your plugins since you also use a Core plugin?
would it not conflict with your plugins since you also use a Core plugin?

My core plugin don't change the default functions of the maker. The codes on it are used exclusively by my own plugins. The core plugin will not cause conflicts with YF core. 


What might happen is that a specific YF plugin to cause incompatibility with another specific plugin of mine. But if this is the case, just let me know the conflicting plugins and I will look if a fix is possible. 
I may have an easier way to do this but I need to update my StateCE script. It's similar to himeworks progressive states but calls a common event on status add/remove or expiry.


I will report back once I get it working.


Update:




You can use this script to call a common event when a state is added/removed or expired. You can even call the same event in all 3 cases and just check the variable assigned in parameters for Occurs.


You can determine which actor is affected by checking the variable assigned in parameters for Actor.


Then you could just throw this code into the common event as embedded script:

Spoiler
var actorId = $gameVariables.value(1)
var actor = $gameActors.actor(actorId)
var a = $dataActors[actorId]
var occurs = $gameVariables.value(2)
if (occurs === 1) {
actor.setCharacterImage('Nature', 2)
actor.setBattlerImage('Chicken')
} else if (occurs === 2) {
actor.setCharacterImage(a.characterName, a.characterIndex)
actor.setBattlerImage(a.battlerName)
}
$gamePlayer.refresh()



In this example we're using the sideview chicken actor from the post with the video above and the file is called Chicken.png
Sorry to necro post, but someone might benefit from this.


I wanted to create some different effects like invisibility, and was looking for a way to actually have the SV actors change to reflect it.


I'm using a lot of Yanfly plugins and wanted to figure out a way to pull it off just using what I already had active. To avoid conflicts.


I used the method from the video for the common event, then Yanfly's Buffs and States Core. Specifically the Lunatic tags for custom apply and custom remove effect, then used $gameTemp.reserveCommonEvent(#); to call the event.


Alter the base sprite sheet, or use a different one to get the effects you want, and voila.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-change-sideview-actor-graphic-on-state-change-aka-toad-mini-from-ff-games.58028/