Trying to figure out a conditional branch

I am trying t figure out how to do this: I am trying to create a person who enchants a weapon, but only every 10 levels the player is. I can't figure out how to do it correctly. If anyone can help, that will be great!
Something like this?

Spoiler
Enchant_Level_01.PNG


Enchant_Level_02.PNG



In the example above. I set a variable upon meeting the enchanting NPC for the first time, 10 in this case. From then on, if the player's level is equal to or greater than that variable, 'enchanting' can occur. When 'enchanting' does occur, the variable is increased by 10.


So starting at 10, the enchant variable increases: 10 + 10 = 20, 20 + 10 = 30, 30 + 10 = 40, 40 + 10 = 50


Thus, every 10 levels, the player can 'enchant' their weapon.
I would probably set a variable equal to the actor's level and then use the conditional branch to check if the variable is greater than 10.


edit: Oh wait, every 10 levels. Hmmm, might have to do nested conditionals to check for each 10.
Something like this?




In the example above. I set a variable upon meeting the enchanting NPC for the first time, 10 in this case. From then on, if the player's level is equal to or greater than that variable, 'enchanting' can occur. When 'enchanting' does occur, the variable is increased by 10.


So starting at 10, the enchant variable increases: 10 + 10 = 20, 20 + 10 = 30, 30 + 10 = 40, 40 + 10 = 50


Thus, every 10 levels, the player can 'enchant' their weapon.

thank you so much for your help!! bless you!

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-figure-out-a-conditional-branch.64446/