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)
def forest(hero): filename = (path + "/forest.txt") myChoice = story.read(filename, 2, hero) if myChoice == '1': lightstove(hero) elif myChoice == '2': meadow(hero)
def meadow(hero): filename = (path + "/meadow.txt") myChoice = story.read(filename, 2, hero) if myChoice == '1': picnic(hero) elif myChoice == '2': forest(hero)
def wood(hero, weapon): hero['weapon'] = weapon[0] hero['class'] = weapon[1] filename = (path + "/wood.txt") story.read(filename, None, hero) woods.fork(hero)
def Arcane(hero): filename = (path + "/arcane.txt") myChoice = int(story.read(filename, 5, hero)) wood(hero, ArcaneWeapon(myChoice))
def Warrior(hero): filename = (path + "/warrior.txt") myChoice = int(story.read(filename, 5, hero)) wood(hero, Weapon(myChoice))
def lightstove(hero): story.read(path + 'light_stove.txt', None, hero)
def picnic(hero): story.read(path + "/eat_picnic.txt", None, hero)