Conditional branches involving player levels

I was hoping this was something that could be done with the event editor, using conditional branches, but that doesn't look like it can be done, since levels isn't a condition I can set in it.

This isn't something that's crucial for me to have, since I haven't come to a point where I want to take advantage of something like this, but it is something I would like to have for later parts in my game that I have planned.

What I'm looking for is the ability to have the players current level be used as a condition for certain things.

An example scenario: Let's say Actor A is at level 16, and Actor B is only a temporary party member, but you want his level to match Actor A's level, for the sake of better combat balancing. I'm hoping it's possible to make a script that can work as a conditional branch where if Actor A's level is (equal to/less than/greater than) a number, then you can have whatever action you want to happen. With that as an option for a conditional branch I could then just use the event editor to change the actor level to a level corresponding to the player.

This might sound simple or trivial to people that know how to code, but I legitimately know nothing about coding.
You can use Control Variables -> Game Data -> Actor -> Level to store an actor's level in a variable, then check that variable using Conditional Branch -> Variable, e.g.

◆Control Variables:#0001 level = Level of Reid ◆If:level < 5 ◆Text:None, None, Window, Bottom : :Come back when you're level 5. ◆ :End
This is exactly how I get around this! 😀
1641170600798.png
You can use Control Variables -> Game Data -> Actor -> Level to store an actor's level in a variable, then check that variable using Conditional Branch -> Variable, e.g.

◆Control Variables:#0001 level = Level of Reid ◆If:level < 5 ◆Text:None, None, Window, Bottom : :Come back when you're level 5. ◆ :End

Ah, thanks dawg. Didn't check there.

That solves my problem I guess
Variables are your best friend. 😀 Learn them and know them. You can do some amazing things with them. Far more than switches!

You can even store player coordinates with them and use them for teleportion among other things. You should experiment with them a little and see how they interact with other systems.
Moved to: MZ Support

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branches-involving-player-levels.143553/