turn baced adventure python 2.7.12 -
im working on basic turn baced game , need cleaning script , ading battle sequence im not coding can great
its not finished, ideas or criticism great thnx
p.s. pleas excuse spelling mistakes have dislexia :^(
import time import random import os hp = (0) spell = (0) atack = (0) time.sleep (0.5) print(" +-----------------------------------+") print(" | welcome tomb of horrors |") print(" +-----------------------------------+") time.sleep (1) print 'set caricters name' name = raw_input(">") print 'set caricters fighting fightingclass:' print ' 1. mage hp=50 spell=50 atack=10' print ' 2. warior hp=40 spell=10 atack=50' print ' 3. asasin hp=20 spell=10 atack=70' style = raw_input (">") if style == "1": hp = (50) spell = (50) atack = (10) fightingclass= "mage" wepon= "staff" elif style == "2": hp = (40) spell = (10) atack = (50) fightingclass= "warior" wepon= "sword" elif style == "3": hp = (20) spell = (10) atack = (70) fightingclass= "asasin" wepon= "dagar" elif style == "420god": hp = (10000) spell = (1000) atack = (1000) name = "snoopgod" fightingclass= "god" wepon= "bong" print ("you shal known "+ name +" "+ fightingclass ) time.sleep (3) os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print ('you enter dark room 2 doors 1 left , 1 right.?') time.sleep (1) print (' 1. enter left door') print (' 2. enter right door') door = raw_input('> ') if door == "1": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print ('you enter left door.') time.sleep (1) print ('theres giant bear eating appears human arm') time.sleep (0.5) print ('tho mutalated hard sure') time.sleep (0.5) print ('what want do?') print (' 1. try take arm') print (' 2. scream @ bear') print (' 3. fight bear') bear = raw_input('> ') if bear == "1": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print 'you approach bear slowly' time.sleep (0.5) print 'never breaking eye contact.' time.sleep (0.5) print 'after feel thousand years' time.sleep (0.5) print 'you face face bear.' time.sleep (0.5) print 'you grab arm , pull. of course bear responds eating face.' time.sleep (0.5) print 'well done!' time.sleep (6) print '~you dead~' time.sleep (4) elif bear == "2": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print 'you scream @ bear' time.sleep (0.5) print '*a decent sound well*' time.sleep (0.5) print 'the bear not impressed' time.sleep (0.5) print 'he insantly eats face.' time.sleep (0.5) print 'well done!' time.sleep (6) print '~you dead~' time.sleep (4) elif bear == "3": print ('you rase '+ wepon) time.sleep (2) print ('take long deep breath') time.sleep (1) print ('and step forawd') time.sleep (1) os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print ('+=============================================================================+') print ('|~~~~~~~~~~~~~~~~~~~~~~~~~~~~/ \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|') print ('|~~~~~~~~~~~~~~~~~~~~~~~~~~~~| battle begins |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|') print ('|~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|') print ('+=============================================================================+') time.sleep (6) print 'you won battle' print (name +' wins') time.sleep (6) hp - 10 atack + 40 spell + 40 else: os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print('you think while troll weilding '+wepon) print('comes through trap door , shanks you!') time.sleep (2) print '~you dead~' time.sleep (4) elif door == "2": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print ('you enter right door.') time.sleep (1) print 'you find jabawoky in midle of room' print 'you stare @ jabawoky creature of eternal power' print 'oh dear, seems insanity of jabawoky existence had driven quite insane.' print ' 1. try comprehend existance' print ' 2. scream' print ' 3. contemplate fabrics of molecula crafting' insanity = raw_input('> ') if insanity == "1": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print ("your mind melts green flavoured jelly!") print 'and oozes out of ears' time.sleep (6) print '~you dead~' time.sleep (4) if insanity == "2": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print ("your mind melts blue flavoured jelly!") print 'and oozes out of ears' time.sleep (6) print '~you dead~' time.sleep (4) if insanity == "3": os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print 'your body survives, powered pure insanity!' print ' hp - 10' print ' atack + 40' print ' spell + 40' time.sleep(4) else: print '~you dead~' time.sleep (4) else: os.system('cls') print(" +-----------------------------------+ | name : "+ name ) print(" | tomb of horrors | | wepon : "+ str(wepon)) print(" +-----------------------------------+ | hp : "+ str(hp)) print(" | spell : "+ str(spell)) print(" | attack : "+ str(atack)) print(" +--------------------------------") print("") print('you think while troll weilding '+wepon) print('comes through trap door , shanks you!') time.sleep (2) print '~you dead~' time.sleep (4)
thanks great xd
Comments
Post a Comment