Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Name: Damon Shekari
- #4/23/2017
- #This is old, and pretty scuffed code. I learned about defining things
- #as well as importing time to put a delay on code
- import time
- import random
- def intro():
- print('Welcome to Night Song, created by Damon Shekari.')
- print('------------------------------------------------')
- intro()
- time.sleep(2)
- print('It is January 29, 2093. You are unconscious.')
- time.sleep(1)
- print('*Nudge*')
- time.sleep(1)
- print('You begin to slowly open your eyes. The ground is damp and the clouds above are dark grey.')
- time.sleep(1)
- print('Ivan: What is your name?')
- myName = input()
- print('Ivan: Good to meet you ' + myName + '! Now get up and run!')
- print('There is a Kalashnikov near you. Do you pick it up? [Type yes or no]')
- user_response = input()
- if user_response == 'yes':
- print('You pick up the rifle and rush into the woods with Ivan.')
- else: # user responded with something that was not 'yes'
- print('You rush into the woods with Ivan, unarmed.')
- time.sleep(2)
- print('The sky remains cloudy.')
- print('Ivan hands you a bag with some bandages in it. [Type inv to bring up loot]')
- user_response = input()
- if user_response == 'inv':
- print('Bandages [3]')
- print('Kalashnikov [1]')
- time.sleep(2)
- print('Ivan digs in his pocket and hands you some bullets.')
- print('Ivan: Brother, take this, you need it more than I do.')
- print('Do you accept the bullets? [Type yes or no]')
- user_response = input()
- if user_response == 'yes':
- print('You have picked up (5) bullets. [Type inv to bring up loot]')
- user_response = input()
- if user_response == 'inv':
- print('Bandages [3]')
- print('Bullets [5]')
- print('Kalashnikov [1]')
- print('Ivan: I need you to go search for the others. Will you? [Type yes or no]')
- user_response = input()
- if user_response == 'yes':
- print('You begin to walk on a trail and a bear kills you.')
- if user_response == 'no':
- print('Ivan is not pleased. He stabs you and leaves you to die.')
- time.sleep(2)
- print('------------------------------------------------------------------------')
- print('Thank you for playing.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement