Player Character Spell Classes

I can't quite get this to work, I'd appreciate some ideas! I have a lot of Yanfly's plugins if that helps.

Essentially, at the beginning of the game, the player will pick a class. If they pick mage, for instance, they'll have a choice of subclassing (i.e.: only fire spells, only ice spells) or playing without restriction so that they can learn any spell they want.

I'm trying to figure out how to:
  • Get the game to identify that the player is [specific class].
  • If an elemental subclass is chosen, restrict skills/spells that don't match with the type.
  • If no elemental subclass is chosen, give the player a random set of specified spells to start off with.
The third one is the one I'm mainly stuck on! Thank you.
ok, this no is the best solution but may work without plugin:

First create all subclass but just as a class named:
Mage Ice
Mage Fire

Berseker Axe
Berseker Ancients Path

create all skill

At start of game, run a choose menu, put the available classes (Mage) or (Bersker), we take the mage class as example, when this class is selected show other chosse menu and put the elemental subclass, and set the selected class for the character (Mage Ice), also a option for random.
if player selection if randon you can run a random in the variable number 1 for example from 0 to 1.
0= Ice
1= fire
and set the subclass based in the result.

this is a quick example and may change depending of your skill learn system.
there is a lot of way to make that.

Original thread: https://forums.rpgmakerweb.com/threads/player-character-spell-classes.142848/