Exemplo n.º 1
0
def usescreen():
    clear()
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(
        '********************************************************************************'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print("*               	          USE SCREEN			                  *")
    print(
        '*                                                                              *'
    )
    print(
        '*                                Version 0.6                                   *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        "*                                                                              *"
    )
    print(
        '********************************************************************************'
    )
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    choice = input('Option: ')
    clear()
    charsheet()
Exemplo n.º 2
0
def adventure():
    clear()
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(
        '********************************************************************************'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print("*               	          Adventure Mode 		                  *")
    print(
        '*                                                                              *'
    )
    print(
        '*                                Loading...                                    *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        '*                                                                              *'
    )
    print(
        "*                                                                              *"
    )
    print(
        '********************************************************************************'
    )
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    time.sleep(2)
    import adventure
Exemplo n.º 3
0
def amenu():
    print("")
    print(
        "You head out of town and come to a burned bus blocking a crossroads.")
    print(
        "The bridge heading north is blown out. You can only go east or west.")
    print("")
    print("")
    print("")
    print("")
    choice = input("You go... ")

    if choice == "east":
        clear()
        print("east and I walk for 1 mile.")
        time.sleep(3)

    if choice == "west":
        print("west, and you stepped on a landmine. It went off.")
        time.sleep(3)
        print(colored.red('You Have Died.'))
        time.sleep(3)
        die(name)
        sys.exit("Exiting")
Exemplo n.º 4
0
def charsheet():
    #XP display
    clear()
    exp = contents[0:8]
    level = exp[4]
    expint = int(exp[4:8])
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(' ')
    print(colored.red("Character Name: ") + colored.blue(charfile))
    print(' ')
    print(colored.yellow(exp))
    print(colored.yellow('Level: ') + colored.yellow(level))

    stripn = len(charfile)
    stripf = 16 + stripn

    contents1 = contents.replace(contents[:stripf], '')

    print(' ')

    stripstat = 86
    contents2 = contents1.replace(contents1[:stripstat], '')

    inventype = contents2[0:10]
    invlook = stripf + 86 + 11
    actinv = contents.replace(contents[:invlook], '')
    inventory = actinv.split(",")

    statlist = contents1[0:86]
    statlist2 = statlist.split(',')

    hp = 5
    hpcalc = statlist2[2]
    hpcalc2 = hpcalc[11]
    hpcalc3 = int(hpcalc2)
    hpfinal = hpcalc3 * hp

    if hpfinal > 24:
        print('HP:' + colored.green(str(hpfinal)))

    elif hpfinal > 14:
        print('HP: ' + colored.yellow(str(hpfinal)))

    elif hpfinal > 1:
        print('HP: ' + colored.red(str(hpfinal)))

    print(' ')
    print(colored.white(statlist2[0]))  #strength
    print(colored.white(statlist2[1]))  #perception
    print(colored.white(statlist2[2]))  #endurance
    print(colored.white(statlist2[3]))  #charisma
    print(colored.white(statlist2[4]))  #inteligence
    print(colored.white(statlist2[5]))  #agility
    print(colored.white(statlist2[6]))  #luck

    print(' ')
    print(' ')

    if inventype == "INVENTORY4":
        print("Inventory size: Survival (6 Slots)")
        print(' ')
        print(inventory)

    if inventype == "INVENTORY2":
        print("Inventory size: Medium (15 Slots)")
        print(' ')
        print(inventory)

    if inventype == "INVENTORY1":
        print("Inventory size: Light (10 Slots)")
        print(' ')
        print(inventory)

    if inventype == "INVENTORY3":
        print("Inventory size: Heavy (20 Slots)")
        print(' ')
        print(inventory)

    menu()
Exemplo n.º 5
0
import os
import sys
import time
from clint.textui import colored
from chillfunc import clear
from chillfunc import die

clear()
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(' ')
print(
    '********************************************************************************'
)
print(
    '*                                                                              *'
)
print(
    '*                                                                              *'
)
print(
    '*                                                                              *'
)
print(