Is there a scriptcall that checks if Lvl (or variable) increased by 1?

All i can figure out so far is that it can check a specific number, but i'm wanting a condition for a side quest to be that you need to increase your level by 1, " get stronger to be worthy of this reward! " sort of thing. ( well, by 2 actually but each +1 is an " objective " to complete that quest so it needs to run twice to complete both, and therefore, the quest. ) regardless of what level you already are by the time you get the quest.
so level +1 ( or variable +1 ) needs to be a direct condition. I already have level set as a variable to show it alongside other leveling systems in the menu ( fishing/mining lvl, ect )
but i can't for the life of me figure out a simple way to check "if" it INCREASES by one without having to go through and setup a version for every level you might already be. xD

i've looked everywhere and found similar requests/info but its not /exactly/ what i need and i don't know javascript for crap to be able to know how to do it myself i know very tiny bits and pieces but not enough to put it all together -3-;
I don't understand what you think you need JavaScript for.

If you already saved the actor's level into a variable, then you'd just use Conditional Branch to see if their level is now higher than that variable.

What is the question?
I don't understand what you think you need JavaScript for.

If you already saved the actor's level into a variable, then you'd just use Conditional Branch to see if their level is now higher than that variable.

What is the question?
oh frick. I'm not really sure how i would make that work, the player level variable changes with the player level consecutively, it updates to show within the menu as you level up because i wanted it to be alongside the other things that level up, that's the only reason i made it.

i don't see a way to set player level without it being that same variable... I don't see any " actor level " in the conditional branch pages. "if" Variable PlayerLevel > Varaible PlayerLever also doesn't seem like it would work because it's always going to be the same. xD
I've never seen someone use the variable option when checking variable, only the " constant " option, so i'm not really familiar with it.

I guess i would need to set /another/ variable that checks the level once when starting the quest that doesn't increase as your level does... and use that as the second variable? because the one i have is parallel- it's always updating along side your level.
I would need it to check a second time for the second lvl +1 objective.
I really don't see what's so confusing you so badly...it's the two most basic event commands, Control Variables and Conditional Branch.

When you start the quest, you set a variable equal to the actor's level.

Whenever you want to check for progress, you set another variable equal to the actor's level and do conditional branch for variable 2 is > variable 1. That's it.

Or, since you want two levels, you can throw in basic math (still with Control Variables) and do variable 2 - variable 1, then conditional branch to see if variable 2 is now >= 1, then >= 2.
Yes, that's what i was trying to clarify in my reply to make sure it would be done correctly. because again i've never once seen someone use a variable to check another variable in a conditional branch, I've only ever used constant, and wasn't really sure how it would work being doubled up. and being dyslexic i get turned around very easily when i don't already know what i'm doing... thank you.
All i can figure out so far is that it can check a specific number, but i'm wanting a condition for a side quest to be that you need to increase your level by 1, " get stronger to be worthy of this reward! " sort of thing. ( well, by 2 actually but each +1 is an " objective " to complete that quest so it needs to run twice to complete both, and therefore, the quest. ) regardless of what level you already are by the time you get the quest.
so level +1 ( or variable +1 ) needs to be a direct condition. I already have level set as a variable to show it alongside other leveling systems in the menu ( fishing/mining lvl, ect )
but i can't for the life of me figure out a simple way to check "if" it INCREASES by one without having to go through and setup a version for every level you might already be. xD

i've looked everywhere and found similar requests/info but its not /exactly/ what i need and i don't know javascript for crap to be able to know how to do it myself i know very tiny bits and pieces but not enough to put it all together -3-;
The easiest way to do this is to check current value, and compare it with previous value.

So, the point where you save the current player level in a variable, you want to add another variable check.

For example, when you save the current value, keep a trace of the previous value :
variable 2 = variable 1
variable 1 = current level

Then, you want to check if variable 1 is greater than variable 2, if it is, it means the level increased.
To know the exact amount of levels that increased, you can add to the logic like this :

if variable 1 > variable 2 // it means the level increased
variable 3 = variable 1 - variable 2 // will contain the difference

Now, for each level, you can give whatever you need to give by looping like this :
loop
if variable 3 >= 1 then
give something
variable 3 = variable 3 - 1
if variable 3 = 0 break loop
else repeat above

This is basic, but should allow you to do what you want.
The easiest way to do this is to check current value, and compare it with previous value.

So, the point where you save the current player level in a variable, you want to add another variable check.

For example, when you save the current value, keep a trace of the previous value :
variable 2 = variable 1
variable 1 = current level

Then, you want to check if variable 1 is greater than variable 2, if it is, it means the level increased.
To know the exact amount of levels that increased, you can add to the logic like this :

if variable 1 > variable 2 // it means the level increased
variable 3 = variable 1 - variable 2 // will contain the difference

Now, for each level, you can give whatever you need to give by looping like this :
loop
if variable 3 >= 1 then
give something
variable 3 = variable 3 - 1
if variable 3 = 0 break loop
else repeat above

This is basic, but should allow you to do what you want.
The problem was i hadn't really thought/known about using a variable instead of a constant for a variable in a conditional branch lol.

I do have it figured out now. I have it setup in a common even that is parallel to a
" start quest " switch.

Common event:

If x switch is off
If Actor Lvl Variable > Quest Start Lvl Veriable

(( Plugin command to mark objective 1 complete ))
Change Quest Start Lvl to match Actor Lvl Variable
Turn x switch on

Else
If Actor Lvl Variable > Quest Start Lvl Variable

((Plugin command to mark objective 2 complete ))
Turn y switch on

If y switch is on
((Plugin command to show " talk to NPC " objective 3. ))

Talk to NPC with switch y on
(( Plugin command to mark quest/objective 3 complete ))
Turn off switches.


Thank you for the detailed response! always appreciate the effort.
This thread is closed due to being reported as solved. If you need it reopened, report the thread to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-scriptcall-that-checks-if-lvl-or-variable-increased-by-1.172457/