First of all I'm new to Construct 2 and I my knowledge of programming is nearly zero. Also I'm not good in English but I'll try to make this as simple and clear as possible.

So I decided to make this kind of game which currently I'm stuck when it comes to calculate simple mathematics using 3 Variables.

For Example:

there are 3 variables

Value1

Value2

Value3

I want C2 to calculate Value1 + Value2 = Value3 , where the Value1, Value2, and Value3 only contain numbers between 0-9, not more not less.

For example: An enemy is destroyed, the instance the enemy is destroyed, then all the Values Value1, Value2 and Value3 are set between 0-9 but also using the equation Value1 + Value2 = Value3 at the same time and the Value3 is the reference because it is the answer in the equation. The value for Value1 and Value2 must be pick at random. For example:

2 + 5 = 7

5 + 2 = 7

3 + 4 = 7

The Variable3 is set to be 7, my question is, can C2 randomly pick any value between 0-9 for Value1 and Value2 and add these two values together so that the Value1 + Value2 will be 7?

I'm beginning to think that C2 cannot decide the variables automatically to match with the equations, which is going to be difficult if I have to write all the possibilities of the equation manually, which is quite a lot of work. But if you guys have any idea, please do share with me, I really need this to make my game.

Yes, one of this game challenges is to solve math within a limited amount of time, let's say when the player kill an enemy, the enemy leave behind a weapon, to acquire that weapon the player need to solve math question, and the stronger the weapon, the harder the equation is going to be, for now I want to test the number 0-9, maybe even harder question might include higher numbers or even number with fractions.

And yes I did figure out how to make all the equations work, including multiplication and division but then the Value1 could be anything, when I just want it be between 0-9 (whole number only, not fraction) in the beginning. After I solve this problem, I would want the Value1 and Value2 not only between 0-9, maybe I can include fraction numbers, or maybe even decimal places, only I wonder if I can control how many decimal places that the Values can hold? For example I only just want all the Variables has only 2 decimal places, but before I go the that problem, I want to solve the fixed 0-9 (whole number) numbers thingy for the equation, where the Value1 could be anything instead of only 0-9.

Question: Say you wanted to make this mathematic game where the player gets 3 options. Obviously 2 of them are incorrect and only 1 is the correct answer. How would this be possible with your capx Korbaach ??