def Init(): print 'Serbinia Caves V1B' print 'Made by Dylan Hamer' import time def Define(): print 'Loading... 25%' global Torch global MonstPower global Sword global Armor global Chest global Loc global Player global MePower def GetName(): print 'Unidentified: Enter your name young sire!' Player=raw_input() #time.sleep(1) def StoryLine1(): print 'Unidentified: ','You sound like a brave knight' #time.sleep(1) print 'Unidenitfied: Allow me to introduce myself' #time.sleep(1) print 'Unidenitfied: My name is Sir Lancelot of Serbinia' #time.sleep(1) print 'Lancelot: For years, the cruel ways of the Xyanoids have tormented us far too much' #time.sleep(1) print 'Lancelot: You have to defeat them! Here is a sword and some armor...' def Armor(Val): print 'Got ',Val,' Armor!' Armor=Val def Monster(MonstPower,MonstName): print MonstName,' appeared with ',MonstPower,' points!' def MonstHit(): print 'You hit with',Sword,' Attack Damage' MonstPower=MonstPower-Sword def MonstHit(): print 'Monster hit with',MonstAttack,' Attack Damage' MePower=MePower- Init() Define() GetName() StoryLine1()
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