import random print "Welcome to the game" print # Random events bosslife1 = random.randrange(24, 79) bosslife2 = random.randrange(34, 69) bosslife3 = random.randrange(44, 89) herolife = random.randrange(35, 65) randstats1 = random.randrange(3, 14) randstats2 = random.randrange(3, 14) randstats3 = random.randrange(3, 14) randstats4 = random.randrange(5, 12) randstats5 = random.randrange(3, 10) randstats6 = random.randrange(3, 8) randstats7 = random.randrange(3, 8) randstats8 = random.randrange(3, 10) randstats9 = random.randrange(8, 16) randstats11 = random.randrange(7, 14) randstats12 = random.randrange(5, 10) randstats13 = random.randrange(4, 8) # Hero and enemies stats herostats = ["Arnold", "Life", herolife, "Stats", "Attack", randstats1, "Defense", randstats2, "Magicka", randstats3] enemy1 = ["Svennebannan", "We finaly meet boy....", "Life", bosslife1, "Stats", "Attack", randstats4, "Defense", randstats5, "Magicka", randstats6] enemy2 = ["Merasmus", "Life", bosslife2, "Stats", "Attack", randstats7, "Defense", randstats8, "Magicka", randstats9] enemy3 = ["Lutpik", "Life", bosslife3, "Stats", "Attack", randstats11, "Defense", randstats12, "Magicka", randstats13] print herostats # Prologue print print "prologue" print print "You live in a villiage with you and your family doing well and." print "But one day a man enters a villiage, nothing special about him really just an old man..." print "The next morning you find the villiage on fire, so you wake up your family and try to escape..." print "But then you are knocked out, and when you finally wake up your family is dead..." # KAP 1, The search for revange print print print "The search for revange!" print print "You become full of hatred on the evil that is Svennebannan" print print "You find the man... NO the monster who took your family from you!!!" print print print print print print
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