def Shield(): framework.output('You pull out your shield, fearing the worst.', 'Do you stand and wait for the inevitable?') if framework.answer() == True: Continue() else: PutDown()
def Sword2(): framework.output( "You grab the sword, feeling it's power. Meanwhile, the parasite has infected a large dog.", 'Do you fight the dog?') if framework.answer() == True: Fight() else: Ignore()
def Sword(): framework.output( 'You weild the mighty sword in your hands, ready to fight the vampire.', 'The vampire runs at you. Do you attack?') if framework.answer() == True: Attack() else: Dodge()
def Vampire(): framework.output( 'You walk with the villager to his town. In the town square, you see the dark shadow of a vampire.', 'On the ground you see a large sword. Do you pick up the sword?') if framework.answer() == True: Sword() else: Shield()
def start(): framework.output( 'You meet a villager from a nearby town. He begs you to help him fight off a vampire that is terrorizing his village. Do you accept?', '') if framework.answer() == True: Vampire() else: Parasite()
def Parasite(): framework.output( 'You keep walking. In the trees you hear a parasite crawling towards you.', 'You are trying to put on your armor when you see a sword lying on the ground. Do you pick up the sword?' ) if framework.answer() == True: Sword2() else: Armor()