My problem is that when I click "okay" (to return to the game) on menu2, menu1 pops up again, which I don't want -- "okay" works fine to return to the game on message two. For both boxes, button 0 is "Okay" and button 1 is either "MORE" (menu1 to menu2) or "BACK" (menu2 to menu1). I don't want "Okay" on menu2 to go back to menu1. There's a bunch of redundant stuff in here, but that's from playing around trying to figure out what I'm doing wrong.
- Bunch of *cut* variable declarations -Begin GameModeIf IsKeyPressed 184 == 1 || IsKeyPressed 56 == 1 If IsKeyPressed 37 == 1 set skillcheck to 1 EndifEndifIf skillcheck == 1 - bunch of cut variable settings - set skillcheck to 0 set skillmsg1 to 1EndifIf skillmsg2 == 1 showmessage aaEpicSkillMSG2 skillrepair skillscience skillsneak skillspeech skillsurv skillua set checkmenu2press to 1 set skillmsg2 to 0 set skillmsg1 to 0endifif checkmenu2press == 1 set menu2pressed to getbuttonpressed if menu2pressed == 0 set checkmenu2press to 0 set skillcheck to 0 set skillmsg1 to 0 set skillmsg2 to 0 elseif menu1pressed == 1 set skillmsg1 to 1 set checkmenu2press to 0 endifendifIf skillmsg1 == 1 showmessage aaEpicSkillMSG1 skillbarter skillew skillexpl skillguns skilllp skillmed skillmelee set checkmenu1press to 1 set skillmsg1 to 0 set skillcheck to 0endifIf checkmenu1press == 1 set menu1pressed to getbuttonpressed if menu1pressed == 0 set checkmenu1press to 0 set skillmsg1 to 0 set skillmsg2 to 0 set skillcheck to 0 elseif menu1pressed == 1 set skillmsg2 to 1 set skillmsg1 to 0 set checkmenu1press to 0 endifendifEnd
How do I stop that first box (skillmsg1) from popping up when button 0 is pressed on menu2?
