How do I make all my characts have a class available when one joins my party

Ok, so firstly I am using Yanflys dual job script with sub jobs. What I am trying to do is when an NPC joins my party as a specific class

For example

I am a solider, NPC1 Joins me, she is a Witch

How do make it to where the witch job is now available to any of my characters to switch to?
You will need to provide a link to the script you are using so that people who might be able to help you do not have to go hunting around to find it.  Don't post the script here, just give the link.  
It really doesnt have anything to do with the script, I just want each of my characters to aquire the ability to use the job of a new character that joins my party. for example I can only be a solider, but when a witch joins the party, both of my characters can now be a soldier or a witch. the script only allows sub classing and such which i know how to use and am not worried about. just need to know what i need to do when the dialog for my npc is done and she joins the party to be able to set it so that at that point both of my characters can swap between those 2 available jobs

Should be a simple basic function within VX Ace itself but i cant figure it out. 😛
It really doesnt have anything to do with the script, I just want each of my characters to aquire the ability to use the job of a new character that joins my party.
That depends on how you want the actors to switch - if you're using the script's scene to switch classes, then it does depend on the script, we need a link to it and this will be moved to script support.


If you're using event commands (the only other method available without the script), then you need to set up your own switches to enable or disable class selection by show choices.


Since that would require endless conditional branches to do by eventing, I'll be assuming that you do use the script to change classes - everything else would be really stupid if you have it already installed.


I've moved this thread to Script support. Please be sure to post your threads in the correct forum next time. Thank you.
But it literally has nothing to do with the script itself.... it should be a basic function to do in ace itself... like, instead of reaching a certain level to unlock a class or have a class spacific character, i want classes to unlock for all characters each time a new npc joins. The script i use for sub classing has nothing to do with this so i dont see how this is script support, im not asking for help with with the script.

I just need to know how to set an event to unlock classes for all characters when someone joins. So instead of just being able to be a soldier, when a witch joins i want to be able to swap between witch or soldier.

If that is impossible without a script, which would be strange for a $70 program... then idk lol... Perhaps i uderstand less of this than i assumed... a lot of work for 1 person whos just starting i suppose
But it literally has nothing to do with the script itself.... it should be a basic function to do in ace itself... like, instead of reaching a certain level to unlock a class or have a class spacific character, i want classes to unlock for all characters each time a new npc joins. The script i use for sub classing has nothing to do with this so i dont see how this is script support, im not asking for help with with the script.
OK, then answer one question:


How do you change the class in your project?


If it is done by the class change screen of the script, then this is using the script.


If you change the class by event command - which means you place the commands to change to a specific class in an event on the map or in the database, then it's not scripting.


By default the player CANNOT select any change unless you as the developer give the commands to make a change. There is no "class selection" at all, by default all classes are fixed forever unless you make them change as the developer of the game.
Instead of insisting that the script has nothing to do with what you want you could just post a link to it so that someone could help you.

I had that problem too and I solved it with this code snippet that I wrote. My snippet requires the script you keep calling "unrelated".

Paste this in a new script:

# Requires YEA - Class Systemclass Game_Actor < Game_Battler def unlock_same(target) init_unlocked_classes if @unlocked_classes.nil? @unlocked_classes = $game_actors[target].unlocked_classes end # def end # defclass Game_Interpreter def unlock_group_class(x) @x = x @y = $game_party.all_members.collect {|z| z.id } @y.each {|b| $game_actors.unlock_same(@x)} end # def end # classNow you can use these script calls:

$game_actors[x].unlock_same(y)

This will unlock all the classes actor y has for actor x.

unlock_group_class(x)

This will unlock all classes actor x has for everyone in the party.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-all-my-characts-have-a-class-available-when-one-joins-my-party.41831/