Exemplo n.º 1
0
def fork(hero):
    filename = os.path.join(cwd, 'intro.txt')
    myChoice = story.read(filename, 2, hero)
    if myChoice == '1':
        meadow(hero)
    elif myChoice == '2':
        forest(hero)
Exemplo n.º 2
0
def forest(hero):
    filename = (path + "/forest.txt")
    myChoice = story.read(filename, 2, hero)
    if myChoice == '1':
        lightstove(hero)
    elif myChoice == '2':
        meadow(hero)
Exemplo n.º 3
0
def meadow(hero):
    filename = (path + "/meadow.txt")
    myChoice = story.read(filename, 2, hero)
    if myChoice == '1':
        picnic(hero)
    elif myChoice == '2':
        forest(hero)
Exemplo n.º 4
0
def wood(hero, weapon):
    hero['weapon'] = weapon[0]
    hero['class'] = weapon[1]
    filename = (path + "/wood.txt")
    story.read(filename, None, hero)
    woods.fork(hero)
Exemplo n.º 5
0
def Arcane(hero):
    filename = (path + "/arcane.txt")
    myChoice = int(story.read(filename, 5, hero))
    wood(hero, ArcaneWeapon(myChoice))
Exemplo n.º 6
0
def Warrior(hero):
    filename = (path + "/warrior.txt")
    myChoice = int(story.read(filename, 5, hero))
    wood(hero, Weapon(myChoice))
Exemplo n.º 7
0
def lightstove(hero):
    story.read(path + 'light_stove.txt', None, hero)
Exemplo n.º 8
0
def picnic(hero):
    story.read(path + "/eat_picnic.txt", None, hero)