Class unlock through level check

Edit: For the most part I managed to get it working, but i'm gonna try a different aproach. At least if it does not work I have this option here, thanks guys!


Hello everybody, I've been searching for a way to create a system that globally unlock certain classes whenever any actor reaches the required level X in another class, and i'm using the class change and subclass from yanfly's. I've set up my system to be  Rank(class)/Class(subclass), and I have 3 ranks that each unlock a class tree. But I wish to allow every rank to learn every class in due time.

To better understand, let's say we have three actors, each with lvl 20 in rank a, b and c. Once an actor reaches level 20 in rank a, that rank's class tree is unlocked for actors in ranks b and c.

I have created a npc that would be a class changer/unlocker and variables, but I can't quite figure out how to check if the level is match to change said variable..

Thank you anyways!






Class.png
Set a variable to game data and the actor's level.


53cd81bcde5c563f8489a4479a4a63f8.png
But then I'd have to check for every actor, wouldn't I? I was wondering if there was a way to check globaly if any actor have the corresponding level of a certain rank
If you are using Yanfly's Enemy Levels plugin you can use a script call for the highest level member.


$gameParty.highestLevelAllMembers
If you are using Yanfly's Enemy Levels plugin you can use a script call for the highest level member.


$gameParty.highestLevelAllMembers

Ok, gonna try that


Managed to do a work arround using your first suggestio, I think I'll settle for now, but i'm still not quite satisfied with the result
Try this addon?
Try this addon?


I have, but then again it is bound to actors, not classes, so it does not help me that much =( 

Original thread: https://forums.rpgmakerweb.com/threads/class-unlock-through-level-check.56245/