Putting players level in a variable

Trying to do a level up event, were the player can semi-fully customize what stats they get (It won't allow the player to do the same stats every level up, and it's going to be semi-dependent on there actions to level up/how they earn EXP) were the player can pick three stats out of the eight on each level up out of a choice of four one to two being semi-random

Only, i need to know how to store players level into a variable, so it can check if the player leveled up. Anyway to do this?
in events? Control Variables > Game Data > Actor (choose actor) > Level

Of course if you have 5 different actors in your party, they could have 5 different levels.

If you want the leader's level, it'll be Control Variables > Script > $game_party.leader.level
in events? Control Variables > Game Data > Actor (choose actor) > Level

Of course if you have 5 different actors in your party, they could have 5 different levels.

If you want the leader's level, it'll be Control Variables > Script > $game_party.leader.level
Thanks. There's only one actor in this game. I assume i can use the same to put stats into variables for various game events? Thank you Shaz

Edit: Also, the event will use two variables. One to read what the actors level was, and one to read what it is. Five actors would mean 10 variables >~<
Five actors would mean 10 variables >~<
Not 10 it would be 6.
1 for each of the 5 Actors, and 1 Placeholder Variable for the current checked player and his level.
since that 1 variable does not need to remember its value for later on, we can just reuse it and overwrite it again and again.

Edit:
Control Variable1 = Actor1 Level
If Variable1 is more than Variable2(Actor1 last safed level)
yes case: Control Variable2 + 1
do your state stuff
no else case
end
Control Variable1 = Actor2 Level
If Variable1 is more than Variable3(Actor2 last safed level)
yes case: Control Variable3 + 1
do your state stuff
no else case
end
If you feel particularly keen to save variables, you could simply put this in your conditional branch without having to use a temporary variable:
Code:
$game_actors[actor_id_goes_here].level > $game_variables[variable_id_for_current_actor_goes_here]

Of course, you have to change "variable_id_for_current_actor_goes_here" and "actor_id_goes_here" accordingly.

Original thread: https://forums.rpgmakerweb.com/threads/putting-players-level-in-a-variable.113607/