Clan Riffster Posted May 7, 2010 Share Posted May 7, 2010 I'm wanting to build a cartridge based loosely on the old rock, paper, scissors, (lizard, Spock), game, and at various stages, the player would be prompted to play. They would be given 5 choices, and would need to pick one. Will it be possible to have a different answer for each choice? Three answers returning them to the previous screen and two choices moving the game forward? If so, what's the best way to go about that? Thanx! -Sean Quote Link to comment
Ranger Fox Posted May 7, 2010 Share Posted May 7, 2010 It depends on if you want the answers to be random. (And, to get something random, a little hand-coding would be needed.) If you just want predetermined answers, there's a way to do that. It would be cleaner, though, if the Groundspeak Builder could offer an OR conditional test as well (I'm not sure about Urwigo). Since it can't, you could do the following: if Answer Equal "Rock" Show a message to the player (Contains Button Script) else if Answer Equal "Lizard" Show a message to the player (Contains Button Script) else GetInput zinputRockPaper1 end end In the above example, rock and lizard are the correct choices. They'll show a message saying the player got it right, then make the next zone active and visible and whatever else you need. If the answer was wrong, it'll ask the player for another answer by showing the input again. Quote Link to comment
+me2d09 Posted May 8, 2010 Share Posted May 8, 2010 With Urwigo, it is extremely easy, because of random decision clause. See attached picture and fully playable urwigo source file (zipped). rockpaper.zip Quote Link to comment
+sTeamTraen Posted May 8, 2010 Share Posted May 8, 2010 It would be cleaner, though, if the Groundspeak Builder could offer an OR conditional test as well. I thought it did. You pick "AND IF" (sigh) and then you can change the "AND" to "OR" later. At least, that's my recollection, I don't have it on this PC to check. Quote Link to comment
+Murlonioteam Posted October 22, 2014 Share Posted October 22, 2014 With Urwigo, it is extremely easy, because of random decision clause. See attached picture and fully playable urwigo source file (zipped). Thankyou so much!!! We modify your base to make a 5 option game also for give a exclusive response for each winning. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.