Пример #1
0
    def lvl1valinta():
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|              Next we'll pick your 2 lvl 1 spells                   |"
        print "|                (input both numbers separately)                     |"
        empty(1)
        for i in range(1, len(numlvl1) + 1, 1):
            print "|", menu.space(25 - len(str(i))), str(i) + ":", wizlvl1[
                i - 1], menu.space(12 + max(pituuslvl1) -
                                   pituuslvl1[i - 1]), "|"
        valittu1 = menu.retry(menu.valinta, 1, len(wizlvl1))
        valittu2 = menu.retry(menu.valinta, 1, len(wizlvl1))

        print "|                        So do you want to pick:                     |"
        empty(1)
        print "|                          ", wizlvl1[
            valittu1 - 1], "and", menu.space(8 + max(pituuslvl1) -
                                             (pituuslvl1[valittu1 - 1])), "|"
        print "|                          ", wizlvl1[
            valittu2 - 1], "?", menu.space(10 + max(pituuslvl1) -
                                           (pituuslvl1[valittu2 - 1])), "|"
        empty(1)
        yesno = menu.YN()
        valitut = [valittu1, valittu2]
        if yesno == 1:
            empty(1)
            return valitut
        elif yesno == 2:
            empty(1)
            valitut = lvl1valinta()
            return valitut
Пример #2
0
    def lvl1valinta():
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|     Next I'll just print all the druid spells for you to see.      |"
        empty(1)
        for i in range(1, len(numlvl1) + 1, 1):
            print "|", menu.space(25 - len(str(i))), str(i) + ":", wizlvl1[
                i - 1], menu.space(16 + max(pituuslvl1) -
                                   pituuslvl1[i - 1]), "|"
            time.sleep(0.1)
        empty(1)
        time.sleep(3)

        valitut = []
        for i in range(1, len(numlvl1) + 1, 1):
            valitut.append(i)
        return valitut
Пример #3
0
    def cantripvalinta():
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|                            Spellcasting                            |"
        empty(1)
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|  As you would imagine, spells are a major part of being a wizard   |"
        print "|  As a wizard you'll choose 6 lvl1 spells to add to your spellbook  |"
        print "|   alongside 3 so called cantrips that can be used anytime anywhere |"
        empty(1)
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|                First let's pick your 3 cantrips                    |"
        print "|                (input all 3 numbers separately)                    |"
        empty(1)
        for i in range(1, len(numlvl0) + 1, 1):
            print "|", menu.space(25 - len(str(i))), str(i) + ":", wizlvl0[
                i - 1], menu.space(25 + max(pituuslvl0) -
                                   pituuslvl0[i - 1]), "|"
        valittu1 = menu.retry(menu.valinta, 1, len(wizlvl0))
        valittu2 = menu.retry(menu.valinta, 1, len(wizlvl0))
        valittu3 = menu.retry(menu.valinta, 1, len(wizlvl0))

        print "|                        So do you want to pick:                     |"
        empty(1)
        print "|                          ", wizlvl0[
            valittu1 - 1], " ", menu.space(23 + max(pituuslvl0) -
                                           (pituuslvl0[valittu1 - 1])), "|"
        print "|                          ", wizlvl0[
            valittu2 - 1], "and", menu.space(21 + max(pituuslvl0) -
                                             (pituuslvl0[valittu2 - 1])), "|"
        print "|                          ", wizlvl0[
            valittu3 - 1], "?", menu.space(23 + max(pituuslvl0) -
                                           (pituuslvl0[valittu3 - 1])), "|"
        empty(1)
        yesno = menu.YN()
        valitut = [valittu1, valittu2, valittu3]
        if yesno == 1:
            empty(1)
            return valitut
        elif yesno == 2:
            empty(1)
            valitut = cantripvalinta()
            return valitut
Пример #4
0
    def cantripvalinta():
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|                            Spellcasting                            |"
        empty(1)
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|  As you would imagine, spells are a major part of being a cleric   |"
        print "|   As a cleric, you can cast any spells from the cleric spell list  |"
        print "|   alongside 3 so called cantrips that can be used anytime anywhere |"
        empty(1)
        print "|--------------------------------------------------------------------|"
        empty(1)
        print "|                First let's pick your 3 cantrips                    |"
        print "|                 (input both numbers separately)                    |"
        empty(1)
        for i in range(1, len(numlvl0) + 1, 1):
            print "|", menu.space(25 - len(str(i))), str(i) + ":", wizlvl0[
                i - 1], menu.space(26 + max(pituuslvl0) -
                                   pituuslvl0[i - 1]), "|"
        valittu1 = menu.retry(menu.valinta, 1, len(wizlvl0))
        valittu2 = menu.retry(menu.valinta, 1, len(wizlvl0))
        valittu3 = menu.retry(menu.valinta, 1, len(wizlvl0))

        print "|                        So do you want to pick:                     |"
        empty(1)
        print "|                          ", wizlvl0[
            valittu1 - 1], " ", menu.space(24 + max(pituuslvl0) -
                                           (pituuslvl0[valittu1 - 1])), "|"
        print "|                          ", wizlvl0[
            valittu2 - 1], "and", menu.space(22 + max(pituuslvl0) -
                                             (pituuslvl0[valittu2 - 1])), "|"
        print "|                          ", wizlvl0[
            valittu3 - 1], "?", menu.space(24 + max(pituuslvl0) -
                                           (pituuslvl0[valittu3 - 1])), "|"
        empty(1)
        yesno = menu.YN()
        valitut = [valittu1, valittu2, valittu3]
        if yesno == 1:
            empty(1)
            return valitut
        elif yesno == 2:
            empty(1)
            valitut = cantripvalinta()
            return valitut