Fire Emblem Seal System

I wanted to implement a method of advancing a job system similar to the seal system from Fire Emblem games. The idea is that, each job is on a certain tier, and when a character has met certain prerequisites and has a seal of that tier, they can use the seal to unlock a specific class, specifically for them.

Say, for example, you had one character do all the heavy lifting as a Freelancer. A basic seal could then make them a Warrior. Or, if you used what limited magic potential a starting job like that has to heal, you could make them a White Mage.

I know Yanfly has a job system plugin already, but what I need on top of that is to have class unlocks via item be a bit more universal. I can easily set up dozens and dozens of items to have specific characters get specific jobs, but the seals should be able to let a character of your choice get a job of your choice from a certain set.
Have you tried an item that calls common event with multiple conditional branches for all requirements such as level and current class when used?
I don't know if my solution works, but I think you can do it with Class Change Core (YEP).

The solution is written on a post below.

In the damage formula on the item put:

a.actorId() === 1 ? $gameVariables.setValue(1 ,ID) : 0; a.actorId() === 2 ? $gameVariables.setValue(2 ,ID) : 0; etc.
I don't know if my solution works, but I think you can do it with Class Change Core (YEP).

In the damage formula on the item put:

a.actorId() === 1 ? $gameVariables.setValue(1 ,ID) : 0; a.actorId() === 2 ? $gameVariables.setValue(2 ,ID) : 0; etc.

You then have a common event which has the plugin command:
UnlockClass v[ID] 6
- This allows the actor with the variables id to unlock Class 6.

So if it's actor 1, then it will unlock class 6

I hope this works, but I'm not sure if it does

Do you mind walking me through that damage script a bit? The damage formula only allows one line of code, so it's likely I screwed something up.
@Ise no Kaml

I'm sorry! The formula I wrote above is wrong, but this should work:
Code:
$gameVariables.setValue(VariableID, b.actorId()); 0
It changes a variable to the actors id. You then start a common event, which checks the variable's value.


Here's a picture if you want:
Spoiler
Capture.PNG
The plugin command for the common event:
UnlockClass v[VariableID] 6
- This allows the actor with the variables id to unlock Class 6.

So if it's actor 1, then it will unlock class 6
Thanks, it works!

Original thread: https://forums.rpgmakerweb.com/threads/fire-emblem-seal-system.118470/