global health # Will increase * 0.5 per level health = 10 global strength # Will Increase * 0.5 per level strength = 1 global defense # Will increase * 0.3 per level defense = 1 global level # Will Increase every 100 XP level = 1 global gold gold = 0 global xp # Will Increase Random Per Encounter or Challenge Survived xp = 0 global gender gender = 1 # Gender will default to 1, being female. when user chooses male, will set to 2 global intro_desc intro_desc = """ Your head is aching horribly. You can see nothing throughout the pitch black surrounding you. Confusion begins to set in.""" global eyesOpen_desc eyesOpen_desc = """ You open your eyes, and as the blur slowly fades away, you finally see the brutal reality of your current situation.""" global reality_desc reality_desc = """ Never before have you experienced anything like this. Bodies, bloody and beaten, hang from what appear to be ropes made of recieving blankets. Nude, and obviously female, the sight of the bodies causes an acidic rise from your stomache, projecting bile from your dry mouth.""" global which_gender which_gender = """ A voice booms out, rather androgynous yet still dauntingly menacing. I wonder, which anatomical parts this particular specimen is bringing to my inventory.""" def Main(): global intro_desc, eyesOpen_desc, reality_desc, which_gender print intro_desc first = raw_input("You should try to do something. Bet you wish you could see. ") if first == "open eyes": print "You slowly open your eyes, though it feels as though you are ripping them open." print eyesOpen_desc pass else: print "You can't exactly do that. Instead of ", first, "maybe work on opening your eyes." Main() print reality_desc print """Something inside of you tells you that your survival might depend on your ability to ASSESS the SITUATION.""" second = raw_input("So, what's the move? ") if second == "assess situation": realityAssess() elif second == "assess the situation": realityAssess() elif second == "assess": print "What would you like to assess? Your SITUATION might depend on" print "doing a proper assessment." else: print "Well,", second, " might seem like a good idea, but you really should have made yourself ASSESS the SITUATION." deathOne() def deathOne(): print """ Your failure to properly handle yourself in a survival situation has ultimately cost you your life. You scream and struggle against the constraints of your dingy hospital bed as a masked figure approaches you, removing your tongue with some sort of medieval looking surgical tool. Perhaps living just wasn't your strong point. We all have a purpose in life, and perhaps yours was to fill this dark warehous operations organic inventory. The sound of a power tool buzzes, slowly growing louder. You don't even have the mental capacity to deduce that the increase in volume is due to the decrease in distance between your skull and the circular saw the figure is holding. Because of your lack of intelligence, the last thing you see in a strange, dark red substance spraying out from somewhere close to your head. Have a nice after life, don't forget to send a postcard. We all would really like to know what there is on the other side.""" Main()
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question