Ejemplo n.º 1
0
def dialogue1():
    universalFunctions.playerStats(mainChar)
    universalFunctions.statMeaning()

    # First choice
    printSlow("Now that you're situated with your stats, would you like to:",
              0, True, 0.02, PADDINGMIDDLE)
    answer = qAnswer(
        "[1] Visit the Town or [2] Fight a Monster?", False, PADDINGMIDDLE)
    while answer not in ["2"]:
        if answer == "1":
            printSlow("The town isn't avaliable yet, try again later ;)",
                      1, True, 0.02, PADDINGMIDDLE)
            clear_screen(PADDINGMIDDLE)
            printSlow(
                "Now that you're situated with your stats, would you like to:",
                0, True, 0.02, PADDINGMIDDLE)
            answer = qAnswer(
                "[1] Visit the Town or [2] Fight a Monster?", False, PADDINGMIDDLE)
        else:
            printSlow("I didn't catch your answer, come again?")
            answer = qAnswer(
                "[1] Visit the Town or [2] Fight a Monster?", False, PADDINGMIDDLE)

    if answer == "2":
        universalFunctions.clear_screen(PADDINGMIDDLE)
        printSlow(
            "Alright lets climb this hill, I think I see some monsters on top!", 0, True, 0.02, PADDINGMIDDLE)
        printSlow("", 0, True, 0.02, PADDINGMIDDLE)

    universalFunctions.clear_screen(PADDINGWIPEART)
    monster1 = Monster("skeleton", mainChar)
    monsterFight(monster1, mainChar)

    # ---------------------------------------
    #         THIS IS THE END SO FAR
    # EVERYTHING BELOW THIS IS JUST TEMPORARY
    # ---------------------------------------

    printSlow(
        "This is the end so far! More to come soon, let me know of any ideas you have for Arx!"
    )
    while True:
        answer = qAnswer(
            "For the mean time you can fight another monster! Type [1] to do so."
        )
        if answer == "1":
            monster1 = Monster("skeleton", mainChar)
            monsterFight(monster1, mainChar)
        else:
            clear_screen(PADDINGNONE)
            printSlow(f"Thank you very much for playing Arx! {name}")
            t.sleep(1)
            exit()
Ejemplo n.º 2
0
def askClass():
    global classSelect
    classSelect = qAnswer(
        "What class would you like to play, [Commoner], [Warrior], [Mage], [Thief], or [Paladin]?"
    )
    while classSelect.lower() not in [
            "commoner", "warrior", "mage", "thief", "paladin"
    ]:
        classSelect = qAnswer(
            "Come again, which class? [Commoner], [Warrior], [Mage], [Thief], or [Paladin]."
        )
Ejemplo n.º 3
0
def askName():
    global name
    name = qAnswer("Hello Adventurer, what is your name?")
    while len(name) > 17 or len(name) < 3:
        if len(name) > 17:
            universalFunctions.clear_screen()
            name = qAnswer("Thats a mighty long name, do you go by something shorter?")
        elif len(name) < 3 and len(name) > 0:
            universalFunctions.clear_screen()
            name = qAnswer(
                "Ive never met an Adventurer with such a short name, what else do you go by?"
            )
        elif len(name) == 0:
            universalFunctions.clear_screen()
            name = qAnswer(
                "What, are you just going to sit there and say nothing? Give me your name."
            )
    console.set_cursor_pos(0, console_info.window_rectangle.bottom - 3)
    printSlow(f"Welcome {name}, to the world of Arx!", 0, True)
Ejemplo n.º 4
0
def dialogue1():
    goodCursorPos = universalFunctions.spacing(29, 55, "[Title: ]", name)
    console.set_cursor_pos(goodCursorPos,
                           console.get_console_info().window_rectangle.top + 2)
    printSlow(f"[Title: {name.capitalize()}]", 0, False)

    goodCursorPos = universalFunctions.spacing(29, 55, "[Class: ]",
                                               classSelect)
    console.set_cursor_pos(goodCursorPos,
                           console.get_console_info().window_rectangle.top + 3)
    printSlow(f"[Class: {classSelect.capitalize()}]", 0, False)
    t.sleep(.5)

    console.set_cursor_pos(0, console_info.window_rectangle.bottom - 1)
    universalFunctions.playerStats(mainChar)
    universalFunctions.statMeaning()

    # First choice
    safeZone = 1
    printSlow("Now that you're situated with your stats, would you like to:")
    answer = qAnswer("[1] Visit the Town or [2] Fight a Monster?")
    while answer not in ["2"]:
        if answer == '1':
            printSlow("The town isn't avaliable yet, try again later ;)", 1)
            universalFunctions.clear_screen()
            printSlow(
                "Now that you're situated with your stats, would you like to:")
            answer = qAnswer("[1] Visit the Town or [2] Fight a Monster?")
        else:
            printSlow("I didn't catch your answer, come again?")
            answer = qAnswer("[1] Visit the Town or [2] Fight a Monster?")

    if answer == '2':
        printSlow(
            'Alright lets climb this hill, I think I see some monsters on top!'
        )
        clear_screen()

    monster1 = Monster("skeleton", mainChar)

    monsterFight(monster1, mainChar)

    # ---------------------------------------
    #         THIS IS THE END SO FAR
    # EVERYTHING BELOW THIS IS JUST TEMPORARY
    # ---------------------------------------

    printSlow(
        "This is the end so far! More to come soon, let me know of any ideas you have for Arx!"
    )
    while True:
        answer = qAnswer(
            "For the mean time you can fight another monster! Type [1] to do so."
        )
        if answer == "1":
            monster1 = Monster("skeleton", mainChar)
            monsterFight(monster1, mainChar)
        else:
            clear_screen(PADDINGNONE)
            printSlow(f"Thank you very much for playing Arx! {name}")
            t.sleep(1)
            exit()