Ejemplo n.º 1
0
def scanner():
    global monster, player
    if player.hp < 1:
        print("You Died!")
        t.sleep(1)
        ter=input(c.yellow+"Do you want to keep playing, or quit? (1), (2)"+c.reset+" >>>"+c.violet).strip()
        if ter == '1':
            tower.tower()
        elif ter == '2':
            exit()
        else:
            tower.tower()
    elif monster.hp < 1:
        print(c.yellow+"You won!")                                                                                                                                  
        cl.Player.gold+=100000                                                                                                                                      
        save.save_game()                                                                                                                                            
        t.sleep(1)                                                                                                                                                  
        print("Blinding light begins too engulf you.")                                                                                                              
        t.sleep(1.25)                                                                                                                                               
        print(c.clear)                                                                                                                                              
        print(c.reset+".")                                                                                                                                                  
        t.sleep(1)                                                                                                                                                  
        print(c.clear)                                                                                                                                              
        print("..")                                                                                                                                                 
        t.sleep(1)                                                                                                                                                  
        print(c.clear)                                                                                                                                              
        print("...")                                                                                                                                                
        t.sleep(1)                                                                                                                                                  
        print(c.clear)                                                                                                                                              
        print("You awake.")                                                                                                                                         
        t.sleep(1.5)                                                                                                                                                
        print(c.clear)                                                                                                                                              
        credits.roll()                                                                                                                                              
        exit() 
Ejemplo n.º 2
0
def fight():
    global q, player, monster
    load.load_game()
    player = cl.Player()
    monster = cl.Dragon()
    while True:
        if player.hp < 1:
            print(c.yellow + "You Died!")
            t.sleep(1)
            ter = input("Do you want to keep playing, or quit? (1), (2)" +
                        c.reset + " >>>" + c.violet).strip()
            if ter == '1':
                break
            elif ter == '2':
                exit()
            else:
                break
        elif monster.hp < 1:
            print(c.yellow + "You won!")
            cl.Player.gold += 100000
            save.save_game()
            t.sleep(1)
            print("Blinding light begins too engulf you.")
            t.sleep(1.25)
            print(c.clear)
            print(".")
            t.sleep(1)
            print(c.clear)
            print("..")
            t.sleep(1)
            print(c.clear)
            print("...")
            t.sleep(1)
            print(c.clear)
            print("You awaken.")
            t.sleep(1.5)
            print(c.clear)
            credits.roll()
            exit()
        else:
            print(c.clear)
            print(c.blue + player.name + str(" HP = ") + str(player.hp) +
                  str(": ") + player.name + str(" MP = ") + str(player.mp))
            print(c.red + monster.mname +
                  str(" HP = " + str(monster.hp) + str(": ") + monster.mname +
                      str(" MP = ") + str(monster.mp)))
            q = input(c.reset + "Attack(1) or Heal(2)? >>>" +
                      c.violet).strip().lower()
            if player.agi >= monster.agi:
                pmove()
                scanner()
                ai()
            elif monster.agi > player.agi:
                ai()
                scanner()
                pmove()
Ejemplo n.º 3
0
def fight():
    global q, player, monster
    load.load_game()
    player=cl.Player()
    monster=cl.Dragon()
    while True:
        if player.hp < 1: 
            print(c.yellow+"You Died!")                                                                                                                                                                       
            t.sleep(1)                                                                                                                                                                               
            ter=input("Do you want to keep playing, or quit? (1), (2)"+c.reset+" >>>"+c.violet).strip()                                                                                                                              
            if ter == '1':                                                                                                                                                                           
                break                                                                                                                                                                                
            elif ter == '2':                                                                                                                                                                         
                exit()                                                                                                                                                                               
            else:                                                                                                                                                                                    
                break                                                                                                                                                                                
        elif monster.hp < 1:                                                                                                                                                                         
            print(c.yellow+"You won!")                                                                                                                                                               
            cl.Player.gold+=100000
            save.save_game()
            t.sleep(1)                                                                                                                                                                               
            print("Blinding light begins too engulf you.")
            t.sleep(1.25)
            print(c.clear)
            print(".")
            t.sleep(1)
            print(c.clear)
            print("..")
            t.sleep(1)
            print(c.clear)
            print("...")
            t.sleep(1)
            print(c.clear)
            print("You awaken.")
            t.sleep(1.5)
            print(c.clear)
            credits.roll()
            exit()
        else:
            print(c.clear)
            print(c.blue+player.name+str(" HP = ")+str(player.hp)+str(": ")+player.name+str(" MP = ")+str(player.mp))
            print(c.red+monster.mname+str(" HP = "+str(monster.hp)+str(": ")+monster.mname+str(" MP = ")+str(monster.mp)))
            q=input(c.reset+"Attack(1) or Heal(2)? >>>"+c.violet).strip().lower()
            if player.agi >= monster.agi:
                pmove()
                scanner()
                ai()
            elif monster.agi > player.agi:
                ai()
                scanner()
                pmove()
Ejemplo n.º 4
0
def finish():        
    print(c.yellow+'You go in for the final blow.')
    t.sleep(2)
    print('Flameblade unleashes a large burning flame.')
    t.sleep(2)
    print("An arrow punctures Grimnove's head")
    t.sleep(2)
    print("Light begins to spurt out from Grimnove's broken body")
    t.sleep(2)
    print('Debris is crashing down through the room, but flames cover you two like a shield.')
    t.sleep(2)
    print('You crawl out from the debris.')
    t.sleep(2)
    input('[Press enter to continue.]')
    credits.roll()
    town.hub()
Ejemplo n.º 5
0
def finish():        
    print(c.yellow+'You draw your last arrow.')
    t.sleep(2)
    print('The swordsman shoots a beam of fire out from his sword.')
    t.sleep(2)
    print("Your arrow punctures Grimnove's head")
    t.sleep(2)
    print("Light begins to spurt out from Grimnove's broken body")
    t.sleep(2)
    print('Debris is crashing down through the room, but flames cover you two like a shield.')
    t.sleep(2)
    print('You crawl out from the debris.')
    t.sleep(2)
    input('[Press enter to continue.]')
    credits.roll()
    town.hub()
Ejemplo n.º 6
0
def finish():        
    print(c.yellow+'You go in for the final blow.')
    t.sleep(2)
    print('You stab the archer right through the chest.')
    t.sleep(2)
    print('His body scorched by the flame.')
    t.sleep(2)
    print('You hear a deep laugh from behind you.')
    t.sleep(2)
    print('You bow, before your new god.')
    t.sleep(2)
    print('A Dark Skull comes by, an places a dark cape on your back.')
    t.sleep(2)
    print('You are now king of the dark.')
    t.sleep(2)
    input('[Press enter to continue]')
    credits.roll()
Ejemplo n.º 7
0
def scanner():
    global monster, player
    if player.hp < 1:
        print("You Died!")
        t.sleep(1)
        ter = input(c.yellow +
                    "Do you want to keep playing, or quit? (1), (2)" +
                    c.reset + " >>>" + c.violet).strip()
        if ter == '1':
            tower.tower()
        elif ter == '2':
            exit()
        else:
            tower.tower()
    elif monster.hp < 1:
        print(c.yellow + "You won!")
        cl.Player.gold += 100000
        save.save_game()
        t.sleep(1)
        print("Blinding light begins too engulf you.")
        t.sleep(1.25)
        print(c.clear)
        print(c.reset + ".")
        t.sleep(1)
        print(c.clear)
        print("..")
        t.sleep(1)
        print(c.clear)
        print("...")
        t.sleep(1)
        print(c.clear)
        print("You awake.")
        t.sleep(1.5)
        print(c.clear)
        credits.roll()
        exit()