RPMV Skill Help : Skill that changes the actor in battle but reset when battle ends

Hi there !
I'm building a character that has the capacity to change his shape in battle
(a skill, when he use it, it turns him into another character and it last 5 turns)(also I'm on side battle view system)
I know how to make him change shape with a common event but I don't know how to tell that the effect can only last 5 turns and that the character takes his original shape when the battle ends.
If someone could help me it would be really great ! Thx a lot !
you should implement this over states, because that is the default function of states: changes over time until conditions are met to remove the state.

then use a once-per-turn troop event to check for the state and turn back if its gone, and the same with a common event for after battle (triggered by a switch in battle)
Oh yes a state, of course! xD
All right I'm gonna try it, I'm not very good at event triggering yet but I'll do my best.
Can I ask for questions on this thread if I got trouble doing it?
Thx for your answer and your time!
@Andar
Ok, I tried but I don't understand how it works...
So I created the state, and the skill put the actor in this state.
The state is 5 turns and ends after battle.

Now what I don't understand is :

-how to say that it changes appearence and skils of the character when it's on the state (do I call a common event in the skill as planned or does it work differently) ?

-how to make the event that checks if the state is here and if it is not reset character appearence and skills ? I mean I see some part of it but not completely and I want this to be clean.

If you have the time, could you explain me a bit more precisely the chaining of events or show me with screenshots ? It would really helps !
(sorry for my english btw)
Thx a lot !
1) you still need that common event, the state in itself can only change parameter values. you're only using the state to handle the duration

2) the troop event (and it needs to be in every troop where it works) checks if the actor has the state at the end of every round and if not, transforms him back. trigger and span is turn, and then use a conditional branch to check for state

sorry, I don't have time for screenshots at the moment
Ok right ! No problem I was asking too much anyway, I think I can handle it knowing what you said.
Thx a lot for your time and your reactivity !
@Andar
Done it, it works perfectly ! Thanks a lot, you don't know how much you helped me !

Original thread: https://forums.rpgmakerweb.com/threads/rpmv-skill-help-skill-that-changes-the-actor-in-battle-but-reset-when-battle-ends.130140/