Remove Actor Class

Senzerar

Villager
Member
Joined
Jul 27, 2013
Messages
5
Reaction score
0
First Language
Dutch
Primarily Uses
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.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
$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.
 

Senzerar

Villager
Member
Joined
Jul 27, 2013
Messages
5
Reaction score
0
First Language
Dutch
Primarily Uses
@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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top