Class condition brainstorm

I ant that if the main character(not follower) was a specific class to trigger a specific eventpage on npc.
Also that provide some hability on the map like trow stuff using a common event.
Note: Also some character himself will have hability in addition then their class.

Basicly, I thinking for find a way to make that possible.

First idea that I got it's was to add in player and class tag an item name. Using a pluggin, automaticly item will be or not be
in enventory depending if I have specidic player or class as main character(not follower).

Like this I can use brench condition in event.

Of course it's not that much logical to use itme for ability... But as I can put hability or equipement in event tab... it's a workabl way I think.

Good point: Easy to keep code clean and bug free.
Bad point: Require developpement of a pluggin and that was less intiutive.

I got a second idea and similar.

In class I can add ability there and ability will add automaticly item in my enventory.
For specific hero hability, I can use a tag for give them more ability.

I like this way, it's so logicial.


Of course in both solution, that require a plugging. And also I need to find a way for make item imposible to remove.
I just suggested it in another topic as well, how about usingHimeworks' Custom Page Conditions instead of the item workaround (or just a normal Conditional Branch if you don't need multiple pages)? You can easily make a Conditional Branch with a Script to check if the first party member belongs to a certain class:
Code:
$gameParty.leader().isClass($dataClasses[classID])
or has a certain skill:
Code:
$gameParty.leader().hasSkill(skillID)
I just suggested it in another topic as well, how about usingHimeworks' Custom Page Conditions instead of the item workaround (or just a normal Conditional Branch if you don't need multiple pages)? You can easily make a Conditional Branch with a Script to check if the first party member belongs to a certain class:
Code:
$gameParty.leader().isClass($dataClasses[classID])

For some reason this one doesn't work for me. Is there a different code when using subclass instead of classes?
Is there a different code when using subclass instead of classes?
Yes, there is. Assuming you use Yanfly's Subclass plugin, you need to write
Code:
$gameParty.leader.subclass() === $dataClasses[yourIDhere]
or
Code:
$gameParty.leader._subclassId === yourIDhere
(replacing yourIDhere with the subclass ID, of course.)
Thank you so much!!!!!!!! It works!!!

And one final issue:

How can I use a script to change a certain subclasses' level?

Original thread: https://forums.rpgmakerweb.com/threads/class-condition-brainstorm.74439/