How to Make a Number Game RPG Maker

Hello,

I have been interested in making a game which asks you math questions.

The way it works is a prompt comes up showing two random numbers. 

The player inputs a number, which is stored as a variable. I want to make it so if the inputed number is equal to the sum of the two random numbers,

(which are two variables) then you can move on. I'm not quite sure how to do this, because variables can only equal one other variable. I can't set it as a constant, because these are randomly generated problems.

Any ideas?

Thanks, Zander
Have a third variable.


Add the first variable to it.


Add the second variable to it.


Compare it to the input amount.
Thanks!

Everything works, except I can only enter the number correctly once per event.

I can't go back and do it all again. Is it possible to make it so I can always

overwrite the Inputed number?
RPGPRo.JPG

Here is the event.

Once I go back and try to go through the event,

it says my correct input is incorrect.
You want to set Variable 4 (the solution) to 0 before adding the two numbers to it, otherwise it keeps adding the two new random numbers to the old random numbers (if that makes any sense).
Awesome!!!!!!!

Thanks so much!
Alexkymovie, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Play the Variables Guide, it has a section that teaches you exactly how to do this.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-number-game-rpg-maker.16316/