Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import random
- #DEF GAME
- def game():
- ignorethisvariable = 0
- random.seed()
- print ("Welcome to world of ZED")
- time.sleep (3)
- #Game Start
- print ("You wake up and see a man staning alone across a red bridge, what will you do?")
- time.sleep (2)
- print ("YOU")
- print ("------")
- print ("ATTACK")
- print ("SLEEP")
- print ("SHOUT")
- print ("TALK")
- print ("------")
- time.sleep (2)
- standing = raw_input("What will you do?:")
- standing = standing.lower()
- allowed = ["attack", "shout", "sleep", "talk"]
- #Invalid choice 1
- while standing not in allowed:
- print ("R U DUM?! CAN U NAWT GIVE ME A VALID RESPONSE?!")
- time.sleep (3)
- standing = raw_input('Lets try again, what will you do?:')
- #ATTACK MAN
- standing = standing.lower()
- if standing == 'attack':
- print ('You choose to attack the man, he quickly reacts and knocks you over')
- time.sleep (3)
- print ('You stand up and see the man holding an arm out to help you')
- time.sleep (3)
- print ("???: Don't make too much noise, quickly tell me your name quietly")
- time.sleep (3)
- namechoice = raw_input('Will you tell him your name?: (y/n)')
- namechoice == namechoice.lower()
- if namechoice == 'y':
- name = raw_input('What is your name?')
- print ('???: Ah so your name is %s, my name is Drake!') % (name)
- time.sleep (1)
- print ('You think to yourself about how that name is awfully familiar')
- elif namechoice == 'n':
- time.sleep (1)
- print ("???:We don't have time to be acting like children but fine i'll find out soonner or later")
- #SHOUT
- standing = standing.lower()
- if standing == 'shout':
- time.sleep (2)
- print ("You see the man noticing you")
- time.sleep (2)
- print ('Out of self defense you prepare for a battle, which may be impulsive')
- time.sleep (3)
- print ('BATTLE BEGIN!')
- print ("-------------")
- time.sleep (3)
- #SHOUT - BATTLE STATS
- MYSTERYMAN = 99999
- MYSTATK = 5000
- MYSTDEF = 2000
- MYSTSPEC = 10000
- UHP = 100
- UATK = 10
- UATKPWR = 15
- UDEFR = 10
- UDEFM = 15
- USPEC = 25
- #SHOUT - BATTLE
- if standing == "shout":
- print ("Mystery Man is ready to battle!")
- print ("-------------------------------")
- time.sleep (3)
- print ("BEGIN!")
- print ("------")
- time.sleep (3)
- while UHP > 0:
- print ("HP = %s" % (UHP))
- print ("What will you do?")
- print ("ATTACK - FISTS")
- print ("SPECIAL - UNAVALIBLE")
- print ("DEFEND - FETAL POSITION")
- move1 = raw_input("What shall you do?:")
- move1 = move1.lower()
- if move1 == "attack":
- iAtk = random.randint(UATK, UATKPWR)
- iDamage = iAtk - MYSTATK
- print ("You throw a mean swing and deal %s damage") % (iDamage)
- time.sleep (2)
- if iDamage <= 0:
- print ("The attack did nothing!")
- time.sleep ()
- print ("The Mystery Man prepares to attack!")
- defe = random.randint(UDEFR, UDEFR + 10)
- eAtk = random.randint(MYSTATK, MYSTATK + 100)
- eDamage = eAtk - defe
- UHP = UHP - eDamage
- time.sleep (2)
- print ("A small beam appears from the mans hand")
- time.sleep (2)
- print ("You get hit and pain strikes your body! He deals %s damage!") % (eDamage)
- time.sleep (2)
- if move1 == "defend":
- print ("You are now defending")
- time.sleep (3)
- print ("The Mystery Man prepares to attack!")
- defe = random.randint(UDEFM, UDEFM + 10)
- eAtk = random.randint(MYSTATK, MYSTATK + 100)
- eDamage = eAtk - defe
- print ("A small beam appears from the mans hand")
- time.sleep (2)
- print ("You get hit and pain strikes your body! He deals %s damage!") % (eDamage)
- if UHP <= 0:
- print ("You collapse and your opponent wins")
- #SLEEP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement