def potion_menu_select(): x = -1 while True: try: x = potion_menu_rechoice() if x not in (1,2,3): print("error, type a different number") except ValueError: print("error, type a different number") if x == 1: reselect() elif x == 2: pass elif x == 3: quit_menu_choose()
def choosen(): x = -1 while True: try: x = new_menu() if x not in (1,2,3,4): print("error, type a different number") except ValueError: print("error, type a different number") if x == 1: reenter_name() print("python game") elif x == 2: roll() elif x == 4: print("quit") quit_menu_choose()
def continue_menu_choose(): x = -1 while True: try: x = continue_menu() if x not in (1,2,3, 4): print("error, type a different number") except ValueError: print("error, type a different number") if x == 1: roll() elif x == 2: potion_menu_choose() elif x == 3: save() elif x == 4: quit_menu_choose()