Level Requirement Event Issue

So...
I've been using this thread to help me figure out how to put level restrictions on some of my areas, but...uh...
The problem is, it won't work.
I'm really dumb, so it's probably something super simple and obvious, but I'm a big dumb so I most likely missed it.

The event is supposed to check the actor's level and make sure it is equal or it surpasses the required level, which is 2.
Here's the code I'm using:
hY54Ldh.jpg


But for some reason, when you trigger it, it just tells you, "You do not meet the requirements."
The only time it shows the Choices is if it's set to check if your level is 0, but you spawn at level 1.
I don't understand what's going on.

Summary:
The Event code is supposed to check to see if Actor's level is 2 and if the Actor is level 2 or above, let the Actor and their party pass. If it is lower than 2, then it will lock them out and display the text: "You do not meet the requirements."
It won't let the Actor through no matter what unless I change it to let the Actor through if they are level 0 or lower, which is not what I want.

Help.
Where do you set the variable LevelReq2?
I'm a newbie and I'm not sure if this suggestion might work. How about making the event 2 pages. The first page could be just a text box saying something like you're not ready for the place yet. The second page could require a global switch to be activated by reaching the required level. I haven't personally got round to trying something like this yet so please reply to inform me whether this idea/method works.

Hope that helps,

Vincent
It's a thought, but 2 pages aren't required. The problem that I can see is that the variable being checked is never set equal to the player's level, so, it's going to default to 0, if it's never declared as something else. However, OP may have set it elsewhere, which is why I ask.
Where do you set the variable LevelReq2?
I'm not sure what you mean by that.
Do you mean the variable I labeled?
That would be 0001.
No, at some point before the condition statement you have to set the variable equal to the player's level.
No, at some point before the condition statement you have to set the variable equal to the player's level.
Okay, so I really don't understand the question. Here's the "process" to which I MADE my Level2Rest variable,
Does this help?
VHZztxu.jpg

Q9KlmFN.jpg

2xv6Cwd.jpg

Here's the code for the condition statement
IFQPjYm.jpg

Is there something else I'm needing/missing?
But where did you "make" the variable? It's not in this event that is checking the level. So, depending on the event you made it in - if that event does not happen first, the variable will not be set to the actor's level.

Also, I see no name on Actor 1 - you did create a character there, right?
But where did you "make" the variable? It's not in this event that is checking the level. So, depending on the event you made it in - if that event does not happen first, the variable will not be set to the actor's level.

Also, I see no name on Actor 1 - you did create a character there, right?
Uh...
I made it in the Control Variables option within the Game Progression tab?

Yes, they are nameless because you choose their own name at the beginning.
Okay, so, I still don't know what event you set the variable in. Because as far as I can see, you are not setting it in the same event that you are using it to check for the conditional branch.

You need to do something like:
variable2.png
Okay, so, I still don't know what event you set the variable in. Because as far as I can see, you are not setting it in the same event that you are using it to check for the conditional branch.

You need to do something like:
View attachment 72909
I just spent about 5 minutes wailing in agony.
It works now that I've added that little line of code at the top.
Thank you.
But that's what I was meaning. I can see you set the variable earlier - but I have no earthly idea what event you did that in. So it was obviously in some event that was not running before the event with conditional branch. Therefore the variable was not actually being set. Does that make sense?

Also, I really suggest you maybe take a look at some basic tutorials. Andar has some linked in his signature. They're a good place to start.
What you're probably missing here and why mlogan asked about it:

Control variable sets the number in the moment it is executed - but NOT for following times.
If you use it in a different event, then it will set the value to the level number at that moment.
But if the player continues to play and levels up, that will NOT update the variable, that will still contain the number it was given when the command was executed.

Which means any control variable command has to be repeated or placed directly before the value is checked, otherwise it won't have the correct number to check.

Original thread: https://forums.rpgmakerweb.com/threads/level-requirement-event-issue.84972/