i need to add a script into this program that i have already which is a number game. I need a variable named play that will hold "yes" or "no" depending if the user wants to play or not a loop and a other loop inside if. I have to ask if the user wants to keep playing and if it does it starts again
heres what i got so far
http://i.imgur.com/Wv3Yy.jpg
Offline
when gf clicked forever set [correct_number v] to (pick random (1) to (10)) set [guesses v] to (0) repeat until <(answer) = (correct_number)> change [guesses v] by (1) ask [Your Guess?] and wait end say (join [You got ] (guesses)) for (2) secs ask [You Play again?] and wait if <(answer) = [no]> stop all end endSomething like that?
Last edited by Magnie (2012-10-11 20:58:57)
Offline