Esempio n. 1
0
def end1(player):
    sleep(2)

    print3(f"You used the key you got from killing {Enemy('mini1').name} and {Enemy('mini2').name}")
    print3("The door opened revealing a spiral staircase leading up")
    print3("Escaping is the only thing you can think of")
    print3(".")
    print3(".")
    print3(".")
    print3("It's been 10 minutes")
    print3("You finally reached the top")
    print3("There's a door blocking your way")
    print3("You opened it")
    print3("Only to be greeted with a vast open space covered in snow")
    print3("You sit desperately")
    print3("Thinking of what's your next action")
    print3("With nothing but empty space")
    sleep(4)
    print3("The End")
    print3(".")
    print3(".")
    print3(".")
    print_s2("?")

    return 'credits'
Esempio n. 2
0
def room20(player):

    if trigger.boss == False:
        print1("\nYou entered the room and notices a creature guarding a door")
        print1("The door looks different from the rest of the doors you have seen")
        print1("Beside it, two keyhole can be seen")
        print1("You feel a glimpse of hope")
        
        action = prompt("You need to fight that creature to get to that door\n1. Fight (Warning: Boss fight)   2. Leave")
        if action == 1:
            print2("You want to get out of here")
            print1("You charged yourself at that monster")

            battle(player, 'boss')
            trigger.boss = True

            print1("You killed it")
            print1("You can finally get out of this place")
            print1("You approached the door and realized it's a keyhole")
        else:
            print2("You thought that you are not strong enough to face it")
            print_s2("You go back the way you came")
            return 'room19'

    if trigger.mini1 == trigger.mini2:
        action = prompt("Do you want to escape?\n1. Yes   2.No")
        if action == 1:
            return 'end1'
        elif action == 2:
            return 'room19'

    print_s2("You have no choice but to come back when you got a key")
    return 'room19'
Esempio n. 3
0
def char_create(player):
    stat_allocate = 22

    print("========================================================================================================")
    print1(f"You have {stat_allocate} Skill Points.")
    print1("STR affect your damage reduction and the damage you dealt.")
    while True:
        player.str = prompt("Enter a number between 0-8 for your STR.")
        if player.str < 0 or player.str > 8:
            print_s2("Error: Invalid input")
            continue
        stat_allocate -= player.str
        break

    print2("--------------------------------------------------------------------------------------------------------")
    print1(f"You have {stat_allocate} Skill Point(s) remaining.")
    print1("AGI affect your evade and hit chance.")
    while True:
        player.agi = prompt("Enter a number between 0-8 for your AGI.")
        if player.agi < 0 or player.agi > 8:
            print_s2("Error: Invalid input")
            continue
        stat_allocate -= player.agi
        break
    
    print2("--------------------------------------------------------------------------------------------------------")
    print1(f"You have {stat_allocate} Skill Point(s) remaining")
    print1("MISC skill will affect your chances of landing a critical, making a parry, and increase potion effectiveness.")
    while True:
        player.misc = prompt("Enter a number between 0-8 for your MISC.")
        if player.misc < 0 or player.misc > 8:
            print_s2("Error: Invalid input")
            continue
        stat_allocate -= player.misc
        break

    print("========================================================================================================")
    if stat_allocate < 0:
        print_s2("Error: Stat exceeding limit")
        return 'char_create'
    if stat_allocate > 0:
        action = prompt(f"You have {stat_allocate} skill points remaining. Do you want to restart?\n1. Yes   2. No")
        if action == 1:
            return 'char_create'
        else:
            pass
    
    print1(f"Your stats will be")
    print(f"STR: {player.str}   AGI: {player.agi}   MISC: {player.misc}")
    if prompt("Confirm?\n0. RESTART   1. CONFIRM"):
        print_s2("Starting...")
        return 'intro'
    else:
        return 'char_create'
Esempio n. 4
0
 def add_potion(self, module, potionClass):
     item = getattr(import_module(module), potionClass)()
     print_s2(f"\nThe enemy dropped a(n) {item.name}")
     if not item.name in self.potion:
         self.potion[item.name] = item
     elif self.potion[item.name].count >= self.potion[
             item.name].check_limit(self):
         print_s2(f"{self.potion[item.name].name} is already maxed")
     else:
         self.potion[item.name].count += 1
     system('cls')
Esempio n. 5
0
def room15(player):

    if trigger.mini2 == False:
        print1("\nYou notices there's a lot of statue")
        print1("Your instinct tells you to stay away from the statue")
        print1("There is a chest in the middle of the room")

        action = prompt("Do you want to continue?\n1. Yes (Warning: Mini Boss fight)   2. No")
        if action == 1:
            print2("\nYou continue to walk to the chest")
            print1("In the middle of your way, one of the statue starts to move")
            print1("You prepared yourself")

            battle(player, 'mini2')
            trigger.mini2 = True
            apparel_drop(player, Armor('armor3'))
            player.add_potion('Potion.Potion', 'HealingPotion')

            print1(f"You defeated the {Enemy('mini2').name}")
            print1("You proceed to walk to the chest and take the key inside")
        else:
            print1("You go back the way you came")
            return 'room16'

    else:
        if Enemy('slime1').encounter():
            print2(f"\nA {Enemy('slime1').name} is jumping in place")

            battle(player, 'slime1')

        elif Enemy('mini2').encounter():
            print2(f"\nOne of the statues starts to move again")

            action = prompt("Do you want to fight it\n1. Yes   2. No")
            if action == 1:
                print1(f"You decided to fight the {Enemy['mini2'].name} again")

                battle(player, 'mini2')                
                print1("You managed to kill it")
                apparel_drop(player, Armor('armor3'))
                player.add_potion('Potion.Potion', 'HealingPotion')
            else:
                print_s2("You decided that it's a hassle to fight it again")
                return 'room16'

    print1("There's nothing left to see")
    print_s2("You go back the way you came")
    return 'room16'
Esempio n. 6
0
def room13(player):

    if trigger.mini1 == False:
        print1("\nYou entered the room quietly")
        print1(f"You see a {Enemy('mini1').name} guarding a chest in the middle of the room")

        action = prompt("Do you want to fight it?\n1. Yes (Warning: Mini Boss fight)   2. No")
        if action == 1:
            print2("You convinced yourself that you are ready to face that creature")
            
            battle(player, 'mini1')
            trigger.mini1 = True
            apparel_drop(player, Shield('shield3'))
            player.add_potion('Potion.Potion', 'HealingPotion')

            print1(f"You killed the {Enemy('mini1').name}")
            print1("You opened the chest")
            print1("There is a key inside")
            print1("You decded to take it")
            print1("There's nothing left to see")
        else:
            print_s2("You go back the way you came")
            return 'room9'
    else:
        if Enemy('slime1').encounter():
            print2(f"\nA {Enemy('slime1').name} is jumping in place")

            battle(player, 'slime1')

        elif Enemy('mini1').encounter():
            print1(f"\nThe {Enemy('mini1').name} came back")

            action = prompt(f"The {Enemy('mini1').name} came back\nDo you want to fight it?\n1. Yes   2. No")
            if action == 1:
                print2("You decided to fight the minotaur again")
                
                battle(player, 'mini1')
                apparel_drop(player, Shield('shield3'))
                player.add_potion('Potion.Potion', 'HealingPotion')
            else:
                print_s2("You decided that it's a hassle to fight it again")
                return 'room9'

    print_s2("There's nothing left to see")
    return 'room9'
Esempio n. 7
0
 def change_apparel(self, apparel):
     print_s2(f"You took the {apparel.name}")
     self.apparel = apparel
Esempio n. 8
0
 def change_weapon(self, weapon):
     print_s2(f"You took the {weapon.name}")
     self.weapon = weapon