How to change class at a certain level?

I'd like to have a character change class after it reaches a certain only. Say the soldier is limited to level 30, once he hits that limit he could change class by talking to a NPC/doing a quest.

Where I'm stuck is how do I make the NPC check the character's level? I tried adding a common event to a skill unlocked at level 40 which would then activate a switch for the event to become active but the skill never kicked the common event. If possible I'd like to do it without the use of a script or with a very simple script, I saw some and honestly I have no idea what to type and where so the best option would be a script which add some kind of "check level" event lol.

Either way, I'm looking forward to read your replies and hopefully a good solution will be there! 🙂

(P.S.: I did see many posts about changing class but 99% of them had no level requirement, the others used scripts..)
Set your character's level to a variable via a common event, then set a conditional branch where the NPC checks the relevant variable. I'm not on my home PC where I can see Ace's menus, so I can't give you the exact steps for doing this right now. I recommend checking the variable options on your own; setting variables is usually a straightforward process. 🙂
use control variable (game data section) to load an actors current level into a variable, then you can check that number.
Thank you! Now I also won't ask common questions such as how to check how much gold the player has, after a quick search I found a game guide about Variables by Celianna. ^_^

Edit: Is it possible to limit the level of a class instead of the level of a character? If not can I change the name of a new character to a previous custom name? I have an option to let players choose the name of the character and I can still use \N[1] in the text box but in the menu it shows as the default name since the character changed.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-class-at-a-certain-level.42454/