Comparing random numbers

Thanks Gyuszko, Zutty shared a file I just opened and looks like it had almost the structure I desire. Let me adjust mine and see what it looks like. Regards.

1 Like

Good to know! Wish you good luck on your project!

IMG_20191102_090028 Hello Zutty, what’s the idea behind this. It seems confusing

and this one too where it says globalvariable(randomx)-globalvariable(major)

Hi!
The idea is to save the result of the math in a specific variable (comparacao)
If (random1) is equal to Major, comparacao will be 0, otherwise it will be not 0…
It’s not possible compare 2 variables and apply an action based on result.
I could use at the end
if GlobalVariable(random1)-GlobalVariable(Major)=0… Do+5 to global variable score
but it wont work.
So I keep the value in a variable “comparacao” to check
if GlobalVariable comparacao1=0… add 5 to variable score.

Thank you Zutty! I think I can fix mine completely now.