+Cyclops Posted February 18 Share Posted February 18 I'm asking some questions by using the "Input" feature. It all goes great until the user clicks OK when nothing has been entered. It drops back to the Location/You See/Inventory screen. They can then back out of the zone and then back in to get another chance to answer. I've attached am image of my code. And a second image of something I tried to catch a blank answer. Quote Link to comment
+capoaira Posted February 18 Share Posted February 18 I'm not sure, but maybe an empty input is considered as wrong. You can catch it with useing the onWrong() method (not sure if it called onWrong, maybe something similar). I allways copy my else branch into these method to catch all incorrect answers. Quote Link to comment
+Cyclops Posted February 19 Author Share Posted February 19 It's called "on Error" of the Input. I just tried it and it displays the message that the answer is wrong and then jumps back into the question. Thanks so much. 1 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.