Variable that checks the actor's level

I've been trying to set a variable that changes each time the actor gains a new level
I tried to use control variable = Actor Level. But it didn't work.
I tried it differently, changing it to be equal to the MHP, and it worked. :/ It seems that only with levels it doesn't work.
To make sure I understand, you're doing this to set the variable value?

code.png


Actor_Level.PNG


EDIT: This post has lots of useful related info:

I tried to use control variable = Actor Level. But it didn't work.
it does work - you just didn't understand how it works.

the control variable command sets the variable to the level the actor has in that moment - nothing else.
so the control variable command has to be repeated whenever you want to check the level - there is no automatic update anywhere.

and it's the same for all other actor data - the command never automatically updates, the control variable command always has to be repeated to update the content of the variable.


If you tell us what you want that info for we might be able to tell you which of the several ways would be the best for the updating.
I'm assuming from previous posts that you are using MV?

I've moved this thread to MV Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/variable-that-checks-the-actors-level.128663/