Remove Actor Class

Hello everyone,

I have Yanfly's Ace Engine installed with RPG maker vx Ace. All 106 scripts of it. And now is my question in one of his scripts states that if you use. $game_actors[x].remove_class(y). It should remove the class from the player. However if I use this in this way $game_actors[1].remove_class(1) in a script call then it does nothing. This is quite important to me because a player get's to choose it's own class out of currently 3 classes. 

$game_actors[1].remove_class(1) This should delete class 001 by actor 001 right or am i doing something wrong? I would like to hear from you.
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
$game_actors[1].remove_class(1) This should delete class 001 by actor 001 right or am i doing something wrong? I would like to hear from you.
You've misread the description of the function.

The "remove_class"-Command will NOT remove the class from the actor, it will remove it from the list of available classes to switch to when the player wants to switch classes next time.

Is there a command to force the actor into the class change screen? if so, then you should use that script call after removing the class from the list of unlocked classes.

Because the game needs a class on an actor, you will never be able to simply remove a class, you can only change it to something else.
@Andar Thanks for the reply but I use it like this. In a dialog you'll have to choose which class you want to be Archer, Swordsman or Spearman. On the moment of leaving the current location it checks which class you chose. If you chose anything different than Swordsman it should be removed because than Archer or Spearman is the current class. However when I press on Esc then it opens the menu, I go to Class and can still select swordsman. If that isn't what the function is supposed to do than I don't get calling it Remove_Class. Cause it doesn't remove from my Class Menu and it also doesn't remove my option to change to it. I want to make sure if people choose Archer they can't just go in and change to Swordsman manually or just using Archer as Main Class and Swordsman as Subclass.
Then please give us a few screenshots of what you're doing.

However the command will not be able to remove the currently selected class - it can only remove the selection options (it might be that it fails to remove a class in all cases if that class is active, then that is a problem with the script).

If the class to be removed is not active, then it should work - unless there is a problem elsewhere. And to find that, we need to see the event pages using thos commands and the status/class of the actor before stepping on the events triggering the commands.

Original thread: https://forums.rpgmakerweb.com/threads/remove-actor-class.16648/