choose your adventure(first part)

This is a simple Choose your own adventure code. It's really short, but I plan on making it just a tad longer at some point.
 avatar
unknown
python
5 months ago
2.1 kB
3
Indexable
start = input("Where would you like to start, adventurer? The city or the woods?:   ").strip().lower()


if start == "woods":
    print("You encounter a small slime, do you wish to befriend it?")
    slime_response = input("yes or no:   ")

    
    if slime_response == "no":
        print("You attack the slime with a nearby stick, hoping it goes away.")
        print("The slime retreats into the woods.")
        print("Just as you think you're free, a larger slime comes out from the bushes.")
        print("It swallows you whole and your adventure reaches an unfortunate end.")
   
   
    elif slime_response == "yes":
        print("'I won't hurt you', you say.")
        print("'Here, take this.' You hand the slime a piece of food from your pouch.")
        print("It accepts it eagerly.")
        print("You step away from it. It follows. It seems as though you have a friend.")
   
    
    else:
        print("You hesitate, unsure of what to do. The slime grows bored and hops away.")
elif start == "city":
    print("The city is bustling with activity. Your adventure begins in the marketplace.")
    print("You see a stall selling weapons, do you wish to grab one?")
    sword_choice= input("yes or no:    ")

    if sword_choice == "yes":
        print("You purchase a sword from the vender. You feel the power of the sword surge through your body.")
        print("With the sword on your back, you continue your journey.")

    elif sword_choice == "no":
            print("You begin to walk away from the vender.")
            print("'Are you sure you don't want a weapon? From the looks of it, You'll need it later in life.'")
            print("Startled by the vender's voice, you turn around.")
            print("'I'll teach you how to make them. That way, when the time comes for you to use your blade, You'll be able to trust that it's made with integrity'")
            print("You're journey as an adventurer ends, but your life as a blacksmith has just begun.")

    
else:
    print("Confused and unsure where to go, you remain frozen in place. Adventure eludes you.")
Editor is loading...
Leave a Comment