I want to create a script for my game Math Frenzy, a game where you have 60 seconds to do as many math problems as you can. I want to do a Division script, but I want the 1st number to be divisible by the 2nd number, so I want everything to come out even. I think it has something to do with lists, but can someone help me out with a script? Thanks
Offline
CoolPenguin wrote:
I want to create a script for my game Math Frenzy, a game where you have 60 seconds to do as many math problems as you can. I want to do a Division script, but I want the 1st number to be divisible by the 2nd number, so I want everything to come out even. I think it has something to do with lists, but can someone help me out with a script? Thanks
Actually, what I would do is have the program pick two random numbers, multiply them, and then show the product over one of the numbers and the user has to type or choose the other random number.
Offline
set [a] to (pick random (4) to (10)) set [b] to (pick random (4) to (10)) set [c] to ((divisor)*(dividend)) set [expression] to (join (c)(join[/](b))) ask (join[what is ](expression)) and wait if<(answer) = (a)> correct endThat should apply AtomicBawm3's solution.
Last edited by MoreGamesNow (2012-04-01 21:28:17)
Offline