[MZ] How to change sv_actor sprite in middle of battle for x turn??

I want to make the main character doing Super saiya for 5 turn, and back to normal again in the end of state.
how to do that?
Out-of-the-box, you can do this through troop events or through common events triggered when you use an item or skill. There is an option to change actor graphics. Other than that, it's hard for me to tell what challenges you are facing. Can you be a bit more specific about what you are trying to do? Is "Change to Super Saiyan" a skill? What is the trigger?
Make the state last for however many turns you want. In its note box put this, which changes the battler and the face that shows on the HUD:

Code:
<JS On Add State>
  if (target.isActor()) {
    target._prevCharName ??= target._characterName;
    target._prevCharIndex ??= target._characterIndex;
    target._prevFaceName ??= target._faceName;
    target._prevFaceIndex ??= target._faceIndex;
    target._prevBattlerName ??= target._battlerName;
    const charName = "[name of sprite sheet]";
    const charIndex = [actor index, starting at 0 for player];
    const faceName = "[name of the face sprite sheet]";
    const faceIndex = [whereabouts on that sprite sheet it is, starting at 0];
    const battlerName = "[name of new battler sheet]";
    target.setCharacterImage(charName, charIndex);
    target.setFaceImage(faceName, faceIndex);
    target.setBattlerImage(battlerName);
    target.refresh();
  }
</JS On Add State>

<JS On Erase State>
  const charName = target._prevCharName;
  const charIndex = target._prevCharIndex;
  const faceName = target._prevFaceName;
  const faceIndex = target._prevFaceIndex;
  const battlerName = target._prevBattlerName;
  target.setCharacterImage(charName, charIndex);
  target.setFaceImage(faceName, faceIndex);
  target.setBattlerImage(battlerName);
  delete target._prevCharacterName;
  delete target._prevCharacterIndex;
  delete target._prevFaceName;
  delete target._prevFaceIndex;
  delete target._prevBattlerName;
  target.refresh();
</JS On Erase State>

All the places where I've put [ ] you need to insert your own data, obviously without the brackets.
Make the state last for however many turns you want. In its note box put this, which changes the battler and the face that shows on the HUD:

Code:
<JS On Add State>
  if (target.isActor()) {
    target._prevCharName ??= target._characterName;
    target._prevCharIndex ??= target._characterIndex;
    target._prevFaceName ??= target._faceName;
    target._prevFaceIndex ??= target._faceIndex;
    target._prevBattlerName ??= target._battlerName;
    const charName = "[name of sprite sheet]";
    const charIndex = [actor index, starting at 0 for player];
    const faceName = "[name of the face sprite sheet]";
    const faceIndex = [whereabouts on that sprite sheet it is, starting at 0];
    const battlerName = "[name of new battler sheet]";
    target.setCharacterImage(charName, charIndex);
    target.setFaceImage(faceName, faceIndex);
    target.setBattlerImage(battlerName);
    target.refresh();
  }
</JS On Add State>

<JS On Erase State>
  const charName = target._prevCharName;
  const charIndex = target._prevCharIndex;
  const faceName = target._prevFaceName;
  const faceIndex = target._prevFaceIndex;
  const battlerName = target._prevBattlerName;
  target.setCharacterImage(charName, charIndex);
  target.setFaceImage(faceName, faceIndex);
  target.setBattlerImage(battlerName);
  delete target._prevCharacterName;
  delete target._prevCharacterIndex;
  delete target._prevFaceName;
  delete target._prevFaceIndex;
  delete target._prevBattlerName;
  target.refresh();
</JS On Erase State>

All the places where I've put [ ] you need to insert your own data, obviously without the brackets.

Kes, this is fantastic.

Is there any way to do this for enemies using SV sprites?

I'm using visustella battle core and the notetag: <Sideview Battler: filename>

As you likely know this allows you to define an SV sprite for an enemy.

Any guidance is appreciated.
@Orsuzath I have no idea, as it's not something I've tried.

As this is a different query from that of the OP, you'll need to start your own thread. You can link back to this one if that helps.

Original thread: https://forums.rpgmakerweb.com/threads/mz-how-to-change-sv_actor-sprite-in-middle-of-battle-for-x-turn.158834/