Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Online Python Compiler.
- Code, Compile, Run and Debug python program online.
- Write your code in this editor and press "Run" button to execute it.
- '''
- print("Hello World")
- print("enter your name traveler")
- word = input()
- wordletter = ["a","b","c","d","e","f","g","h","i","j","k","l","n","o","p","q","r","s","t","u","v","w","x","y","z",]
- word = str(word)
- wordlen = len(word)
- if wordlen == 0:
- print("type something dumby!")
- if wordlen > 0:
- if wordlen == 0:
- print("Type something not blank!")
- if word[0] == (wordletter[0]):
- print(1)
- if word[0] == (wordletter[2]):
- print(2)
- if word[0] == (wordletter[3]):
- print(3)
- if word[0] == (wordletter[4]):
- print(4)
- if word[0] == (wordletter[5]):
- print(5)
- if word[0] == (wordletter[6]):
- print(6)
- if word[0] == (wordletter[7]):
- print(7)
- if word[0] == (wordletter[8]):
- print(8)
- if word[0] == (wordletter[9]):
- print(9)
- if word[0] == (wordletter[10]):
- print(10)
- if word[0] == (wordletter[11]):
- print(11)
- if word[0] == (wordletter[12]):
- print(12)
- if word[0] == (wordletter[13]):
- print(13)
- if word[0] == (wordletter[14]):
- print(14)
- if word[0] == (wordletter[15]):
- print(15)
- if word[0] == (wordletter[16]):
- print(16)
- if word[0] == (wordletter[17]):
- print(17)
- if word[0] == (wordletter[18]):
- print(18)
- if word[0] == (wordletter[19]):
- print(19)
- if word[0] == (wordletter[20]):
- print(20)
- if word[0] == (wordletter[21]):
- print(21)
- if word[0] == (wordletter[22]):
- print(22)
- if word[0] == (wordletter[23]):
- print(23)
- if word[0] == (wordletter[24]):
- print(24)
- if wordlen > 1:
- if word[1] == (wordletter[0]):
- fun1 = 1
- if word[1] == (wordletter[2]):
- fun1 = 2
- if word[1] == (wordletter[3]):
- print(3)
- if word[1] == (wordletter[4]):
- print(4)
- if word[1] == (wordletter[5]):
- print(5)
- if word[1] == (wordletter[6]):
- print(6)
- if word[1] == (wordletter[7]):
- print(7)
- if word[1] == (wordletter[8]):
- print(8)
- if word[1] == (wordletter[9]):
- print(9)
- if word[1] == (wordletter[10]):
- print(10)
- if word[1] == (wordletter[11]):
- print(11)
- if word[1] == (wordletter[12]):
- print(12)
- if word[1] == (wordletter[13]):
- print(13)
- if word[1] == (wordletter[14]):
- print(14)
- if word[1] == (wordletter[15]):
- print(15)
- if word[1] == (wordletter[16]):
- print(16)
- if word[1] == (wordletter[17]):
- print(17)
- if word[1] == (wordletter[18]):
- print(18)
- if word[1] == (wordletter[19]):
- print(19)
- if word[1] == (wordletter[20]):
- print(20)
- if word[1] == (wordletter[21]):
- print(21)
- if word[1] == (wordletter[22]):
- print(22)
- if word[1] == (wordletter[23]):
- print(23)
- if word[1] == (wordletter[24]):
- print(24)
- if wordlen > 2:
- if word[2] == (wordletter[0]):
- print(1)
- if word[2] == (wordletter[2]):
- print(2)
- if word[2] == (wordletter[3]):
- print(3)
- if word[2] == (wordletter[4]):
- print(4)
- if word[2] == (wordletter[5]):
- print(5)
- if word[2] == (wordletter[6]):
- print(6)
- if word[2] == (wordletter[7]):
- print(7)
- if word[2] == (wordletter[8]):
- print(8)
- if word[2] == (wordletter[9]):
- print(9)
- if word[2] == (wordletter[10]):
- print(10)
- if word[2] == (wordletter[11]):
- print(11)
- if word[2] == (wordletter[12]):
- print(12)
- if word[2] == (wordletter[13]):
- print(13)
- if word[2] == (wordletter[14]):
- print(14)
- if word[2] == (wordletter[15]):
- print(15)
- if word[2] == (wordletter[16]):
- print(16)
- if word[2] == (wordletter[17]):
- print(17)
- if word[2] == (wordletter[18]):
- print(18)
- if word[2] == (wordletter[19]):
- print(19)
- if word[2] == (wordletter[20]):
- print(20)
- if word[2] == (wordletter[21]):
- print(21)
- if word[2] == (wordletter[22]):
- print(22)
- if word[2] == (wordletter[23]):
- print(23)
- if word[2] == (wordletter[24]):
- print(24)
- if wordlen > 3:
- if word[3] == (wordletter[0]):
- print(1)
- if word[3] == (wordletter[2]):
- print(2)
- if word[3] == (wordletter[3]):
- print(3)
- if word[3] == (wordletter[4]):
- print(4)
- if word[3] == (wordletter[5]):
- print(5)
- if word[3] == (wordletter[6]):
- print(6)
- if word[3] == (wordletter[7]):
- print(7)
- if word[3] == (wordletter[8]):
- print(8)
- if word[3] == (wordletter[9]):
- print(9)
- if word[3] == (wordletter[10]):
- print(10)
- if word[3] == (wordletter[11]):
- print(11)
- if word[3] == (wordletter[12]):
- print(12)
- if word[3] == (wordletter[13]):
- print(13)
- if word[3] == (wordletter[14]):
- print(14)
- if word[3] == (wordletter[15]):
- print(15)
- if word[3] == (wordletter[16]):
- print(16)
- if word[3] == (wordletter[17]):
- print(17)
- if word[3] == (wordletter[18]):
- print(18)
- if word[3] == (wordletter[19]):
- print(19)
- if word[3] == (wordletter[20]):
- print(20)
- if word[3] == (wordletter[21]):
- print(21)
- if word[3] == (wordletter[22]):
- print(22)
- if word[3] == (wordletter[23]):
- print(23)
- if word[3] == (wordletter[24]):
- print(24)
- if wordlen > 4:
- if word[4] == (wordletter[0]):
- print(1)
- if word[4] == (wordletter[2]):
- print(2)
- if word[4] == (wordletter[3]):
- print(3)
- if word[4] == (wordletter[4]):
- print(4)
- if word[4] == (wordletter[5]):
- print(5)
- if word[4] == (wordletter[6]):
- print(6)
- if word[4] == (wordletter[7]):
- print(7)
- if word[4] == (wordletter[8]):
- print(8)
- if word[4] == (wordletter[9]):
- print(9)
- if word[4] == (wordletter[10]):
- print(10)
- if word[4] == (wordletter[11]):
- print(11)
- if word[4] == (wordletter[12]):
- print(12)
- if word[4] == (wordletter[13]):
- print(13)
- if word[4] == (wordletter[14]):
- print(14)
- if word[4] == (wordletter[15]):
- print(15)
- if word[4] == (wordletter[16]):
- print(16)
- if word[4] == (wordletter[17]):
- print(17)
- if word[4] == (wordletter[18]):
- print(18)
- if word[4] == (wordletter[19]):
- print(19)
- if word[4] == (wordletter[20]):
- print(20)
- if word[4] == (wordletter[21]):
- print(21)
- if word[4] == (wordletter[22]):
- print(22)
- if word[4] == (wordletter[23]):
- print(23)
- if word[4] == (wordletter[24]):
- print(24)
- if wordlen > 5:
- if word[5] == (wordletter[0]):
- print(1)
- if word[5] == (wordletter[2]):
- print(2)
- if word[5] == (wordletter[3]):
- print(3)
- if word[5] == (wordletter[4]):
- print(4)
- if word[5] == (wordletter[5]):
- print(5)
- if word[5] == (wordletter[6]):
- print(6)
- if word[5] == (wordletter[7]):
- print(7)
- if word[5] == (wordletter[8]):
- print(8)
- if word[5] == (wordletter[9]):
- print(9)
- if word[5] == (wordletter[10]):
- print(10)
- if word[5] == (wordletter[11]):
- print(11)
- if word[5] == (wordletter[12]):
- print(12)
- if word[5] == (wordletter[13]):
- print(13)
- if word[5] == (wordletter[14]):
- print(14)
- if word[5] == (wordletter[15]):
- print(15)
- if word[5] == (wordletter[16]):
- print(16)
- if word[5] == (wordletter[17]):
- print(17)
- if word[5] == (wordletter[18]):
- print(18)
- if word[5] == (wordletter[19]):
- print(19)
- if word[5] == (wordletter[20]):
- print(20)
- if word[5] == (wordletter[21]):
- print(21)
- if word[5] == (wordletter[22]):
- print(22)
- if word[5] == (wordletter[23]):
- print(23)
- if word[5] == (wordletter[24]):
- print(24)
- if wordlen > 10:
- print("thats to big of a word try a smaller one")
- print("hello ", word)
- print(word, "welcome to the world of pyRPG1")
- print("are you a boy or a girl")
- sex = input()
- print("so you are a", sex)
- if sex == "boy":
- print("a young man like you should be interested in an adventure!")
- print("are you?")
- adventure_question = input()
- if adventure_question == "yes":
- print("welcome to the best text rpg!", word, "your adventure awaits!")
- if sex == "girl":
- print("how could a young woman like you be interested in an adventure!")
- print("are you?")
- adventure_question = input()
- if adventure_question == "yes":
- print("welcome to the best text rpg!", word, "your adventure awaits!")
- if adventure_question == "no":
- print("Then im dragging you with me! your adventure starts now!!")
- print("what is your craft? mage warrior or sneakman")
- craft = input()
- if craft == "warrior":
- level = 1
- max_hp = 100
- max_agl = 50
- max_atk = 100
- level = 1
- atk = 10 * level
- hp = 25 * level
- agl = .5 * level
- if hp == 0:
- print("you died!")
- print("So you are a mighty warrior?")
- areyousurewarrior = input()
- if areyousurewarrior == "no":
- print("out of my sight liar!")
- if areyousurewarrior == "yes":
- print("there is a great monster in the bush we must slay it! come")
- if craft == "mage":
- level = 1
- max_hp = 70
- max_agl = 20
- max_atk = 150
- level = 1
- atk = 10 * level
- hp = 25 * level
- agl = .5 * level
- if hp == 0:
- print("you died!")
- print("So you are a mighty mage?")
- areyousuremage = input()
- if areyousuremage == "no":
- print("out of my sight liar!")
- if areyousuremage == "yes":
- print("there is a great monster in the bush we must slay it!")
- if craft == "sneakman":
- level = 1
- max_hp = 50
- max_agl = 200
- max_atk = 200
- level = 1
- atk = 10 * level
- hp = 25 * level
- agl = .5 * level
- if hp == 0:
- print("you died!")
- print("So you are a fast sneaksman?")
- areyousuresneaksman = input()
- if areyousuresneaksman == "no":
- print("out of my sight liar!")
- if areyousuresneaksman == "yes":
- print("there is a great monster in the bush we must slay it! come")
- crumbledorfhp = 20
- crumbledorfatk = 5
- print("a vicous crumble dorf draws near")
- print("what do you do")
- attack_choise = input()
- if attack_choise == "attack":
- crumbledorfhp - atk
- print("the beast has")
- print(crumbledorfhp)
- print("hp")
- print("the beast attacks!")
- hp - crumbledorfatk
- crumbledorfhp - atk
- print("you have")
- print(hp)
- print("health")
- print("the best has been weakened")
- print("what do you")
- attack_choise = input()
- if attack_choise == "attack":
- print("the beast attacks")
- hp - crumbledorfatk
- crumbledorfhp - atk
- if crumbledorfhp < 0:
- xp = 1
- print("the best is defeated victory is yours!")
- print("you have", hp, "hp left")
- if crumbledorfhp > 0:
- print("the beast attacks again what do you do?")
- hp - crumbledorfatk
- attack_choise = input()
- if attack_choise == "attack":
- crumbledorfhp - atk
- if crumbledorfhp < 0:
- xp = 1
- print("the best is defeated victory is yours!")
- print("you have", hp, "hp left")
- print("You where so mighty slaying that crumble dorf!")
- print("there is a orb of power that you must seek, we must go on a quest")
- if craft == "warrior":
- print("Do you want to use the sword, + 10 attk +speed, the axe + 30 attack or the war shield + 40 hp")
- weaponchoise = input()
- if weaponchoise == "sword":
- atk + 10
- agl + 10
- if weaponchoise == "axe":
- attack + 30
- agl - 10
- if weaponchoise == "war shield":
- hp + 40
- print("so you have chosen", weaponchoise, "?")
- if craft == "mage":
- print("Do you want to use the magic staff, broom or clorox bleach?")
- weaponchoise = input()
- if weaponchoise == "magic staff":
- atk + 10
- agl + 10
- if weaponchoise == "broom":
- atk + 10
- agl + 50
- hp + 20
- if weaponchoise == "clorox bleach":
- hp -30
- atk + 2000
- print("so you have chosen", weaponchoise, "?")
- if weaponchoise == "clorox bleach":
- print("so you are a man of culture and you must enjoy hard games ;)")
- if craft == "sneakman":
- print("So you have chosen easy mode?")
- print("Do you want to know who i am?")
- knowwhoiam = input()
- if knowwhoiam == "yes":
- print("my name is llepbmac! great creator of this realm")
- if knowwhoiam == "no":
- print("Ok then it's unrelated :( ")
- print("now that we are situated! we must go to the king's castle or the mountains of eynak")
- print ("chose castle or enyak !")
- travelchoise = input()
- if travelchoise == "enyak":
- print("we are traveling to enyak, then correct?")
- travelareyousure = input()
- if travelareyousure == "yes":
- print("We are traveling to the great mountains then!")
- if travelareyousure == "no":
- print("we are traveling to the King's castle then")
- if travelchoise == "castle":
- print("we are traveling to enyak, then correct?")
- travelareyousure = input()
- if travelareyousure == "yes":
- print("We are traveling to the great King's castle!")
- if travelareyousure == "no":
- print("we are traveling the mighty sacred mountains of enyak!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement