MZ Change class during a fight (Class Change System VisuStella MZ)

I'm looking for a way to be able to change class, or subclass, during a fight like FF13 does, through an object for exemple (for the user).

I use VisuStella's plugins. If anyone has an idea ...
EDIT:

I tried different things and I have a problem that bothers me.


I use a skill to change classes during fight, which refers to an event, but the Class Change System plugin don't let me use variable as I would like (it doesn't seem to work).

Let me show you :
ChangeClass1.pngchangeClass2.png

Here I use the actor ID '47' to change the subclass of the character '47', and it's work well.

To simplify my events, I want to use a variable that will give me the actor ID.

ChangeClass4.png



With this I can have the actor ID that I want at the right time. (As a reminder it's during a fight)


I use the game in French so :
<- Its "control variables" / "game data" / "last" / "ID of the last character that acted"





ChangeClass3.png
But if I want to put it like that it's don't work. (I know, it's not the right variable here but let's pretend it is)




Am I using the wrong script ?
Or is it normal that it doesn't work ?







I may have missed the solution. If you have it, please let me know.

Original thread: https://forums.rpgmakerweb.com/threads/change-class-during-a-fight-class-change-system-visustella-mz.147279/