Actor Transformation

I have two different characters who transform in different ways:


The first automatically transforms at the start of the battle, as long as their weapon is an "Amulet" (weapon type 11). The changes in stats that occur are different for each Amulet (although that one can be done just by modifying the details of the amulet since they'll transform automatically). When the battle ends, they return to normal. When they are transformed, their SV battler image will change, but face can stay the same. If they're not equipped with an Amulet, they won't transform. This will need to happen in any class, since the character can change class.


The second is a class-based transformation. They can only transform while in the appropriate class, but they don't need a specific weapon in order to do so. Ideally, this would be in the form of a toggleable skill (If they aren't transformed and use the skill, they transform. If they are transformed and use the skill, they turn back to normal). As with the first, this changes the SV battler graphic but not the face. They turn back to normal at the end of the battle. Since they need to function while not transformed too, though, I can't put the stat changes for this on the weapon. 


Are there ways of doing these kinds of transformations? I have some parts in mind but they're incomplete.


For the first:


- I don't know how to make them transform automatically. I also don't know how to make them transform back at the end of the battle. 


For the second: 


- Using Hime's Toggleable States I think I can apply a Transformed state and use a common event in the skill to check whether the state is applied and change the graphic as appropriate.


- I don't know how to automatically transform back at the end of the battle (would need to remove the state and run the common event)


Any help will be greatly appreciated!
Check out this Yanfly's Tips & Tricks video:  http://yanfly.moe/2016/07/06/tips-tricks-actor-transformations-rpg-maker-mv/


You don't need to use his plugins to do it, they just control the timer for ending the transformation, and make the variable names a bit more convenient. 


To do it manually, use


$gameActors.actor(x).setCharacterImage('filename',index);


$gameActors.actor(x).setFaceImage('filename',index);


$gameActors.actor(x).setBattlerImage('filename');


for the Walk Sprite, Face Image and Battler, respectively.


Replace x with the number of the actor to change (you can use a variable if you want, this is the Actor ID, NOT the Party slot), filename with the filename of the image file to use (case sensitive, leave off the extension, remember the quotes), and index with the index number of the specific image to use (start at 0, go across first, then down to the first image on the next row).


For example, to turn the third character into a chicken:


$gameActors.actor(3).setCharacterImage('Nature',2);


$gameActors.actor(3).setFaceImage('Nature',2);


$gameActors.actor(3).setBattlerImage('Chicken');


The first line calls the third set of sprites from the sprite sheet Nature.png and sets them for character 3. (Note that character 3 is indexed 3, but image 3 is indexed 2.)


The second line calls the third face from Nature.png and sets it for character 3.


The third line takes the Battler sprite sheet named Chicken.png (that you would have to manually create) and sets it for character 3.


I don't use the plugin you mentioned, but Yanfly's will work with some minor tinkering. You might also need to use his Base Troop Events to make it automatically run your Common Event to trigger the transformation. Otherwise, you'd need to call the Common Event in every single battle.


http://yanfly.moe/2015/10/18/yep-15-base-troop-events/

Original thread: https://forums.rpgmakerweb.com/threads/actor-transformation.65388/