Пример #1
0
    def player_select_class():
        player_options = ('Mage', 'Warrior', 'Archer', 'Assassin')
        Screen.char_options()

        while True:
            choice = input('\n\n'
                           'SELECT A NUMBER OR TYPE HELP THEN NUMBER:> ')
            if choice in ['1', '2', '3', '4']:
                return player_options[int(choice) - 1]
            # lore is the story and it is found in InfoDics
            elif choice[0:4].lower() == 'info':
                lore = InfoDics.info_on_classes[player_options[int(choice[5]) - 1]]
                Screen.display(lore)
                pause()
            else:
                print("Not An Option.")
Пример #2
0
    def class_selection():
        global player_class_choice
        player_options = ('Mage', 'Warrior', 'Archer', 'Assassin')
        Screen.char_options()

        choice = input('\n\nSELECT A NUMBER OR TYPE HELP THEN NUMBER:> ')

        if choice == '1':
            player_class_choice = player_options[int(choice) - 1]
        elif choice == '2':
            player_class_choice = player_options[int(choice) - 1]
        elif choice == '3':
            player_class_choice = player_options[int(choice) - 1]
        elif choice == '4':
            player_class_choice = player_options[int(choice) - 1]
        ##-- lore is the story and it is found in InfoDics --##
        elif choice[0:4].lower() == 'info':
            lore = InfoDics.info_on_classes[player_options[int(choice[5]) - 1]]
            Screen.display(lore)
            input("\n\nPress Enter to Continue:> ")
            class_selection()
        else:
            print("Not An Option.")
            class_selection()