Level up condition

Hello people of the internet,
I need the maker to recognise when a certain character levels up, so that I can make conditions on what happens when a character has leveled up. However, this should not be connected to a level up after a battle. If possible I would like the maker to enable conditions when the character has leveled up for example through an Item or specific event.
Thank you for any help you may provide and please ask for any specifics you might need.
enable conditions when the character has leveled up for example through an Item or specific event.
To level up through an item, don't you need to attach it to a common event? And to level up through a specific event, well, obviously you've got an event.

If you know exactly when the player is going to level up, just put the check in there.
Ok I got the item part, but how would I go about for example giving the character a skill point when he levels up through experience?
You said it should not be connected to level up after battle.

Are you using on-map enemies or random encounters? If on map, use a variable to get the actor's current level (you may need several, if you're doing this for each actor), do the battle processing, then use a different variable to get the actor's new level, then a conditional branch to see if they are different. If they are different, the actor has levelled up due to EXP.

If you are using random encounters, you'd probably need a script to do something like turn on a switch that controls a common event (again, one switch & one common event for each actor, if you have more than one party member and are testing individually) when an actor gains a level through battle.
Thank you so very much,
I use on-map enemies and your advice worked perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/level-up-condition.93843/