예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
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()
예제 #4
0
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()
예제 #5
0
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()
예제 #6
0
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()