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.
- '''
- import sys
- print("Welcome to pyRPG, by Lepbmac Enyak")
- 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 = crumbledorfhp - atk
- print("the beast has")
- print(crumbledorfhp)
- print("hp")
- print("the beast attacks!")
- hp = hp - crumbledorfatk
- crumbledorfhp = 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 = hp - crumbledorfatk
- print("you attack")
- crumbledorfhp = 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 = 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 = atk + 10
- agl = agl + 10
- if weaponchoise == "axe":
- atk + 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 + atk + 40
- agl = agl + 5
- if weaponchoise == "broom":
- atk = atk + 10
- agl = agl + 20
- hp = hp + 20
- if weaponchoise == "clorox bleach":
- hp = 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 easy 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 Castle, 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!")
- print("word says there will be 10 battles till we reach our destination")
- print("let me heal you (your health by 25")
- hp = hp + 25
- print("here are your stats")
- print(agl, "agility", atk, "attack", hp, "health")
- print("the next path holds a village with a tavern and shop or a pesky Jumblenorf, pick village or Jumblenorf")
- travelchoise2 = input()
- if travelchoise2 == "village":
- print("you travel to the village")
- print("Gerald: Welcome to the village, do you want to go to the Tavern or Shop")
- villagetravel1 = input()
- if villagetravel1 == "Shop":
- print("you walk to the shop, you enter and a man greats you!")
- if sex == "girl":
- print("welcome young lady, to Toatally not a trap incorperated, how may I take your order?")
- print("chose to steal food weapons or his jordans")
- stealchoise = input()
- if stealchoise == "jordans":
- print("you yeet that homies jordans and you get + 100 swag and agility")
- agl = agl + 100
- print("the man cries, while is toes are exposed to the elements.")
- if stealchoise == "weapons":
- if craft == "mage":
- print("you steal that homie's magic staff with a MP5 attached,")
- atk = atk + 100
- if craft == "sneakman":
- print("you steal everything, an he doesnt know a thing, +50 atk +50 agl + 40 HP")
- atk = atk + 50
- hp = hp + 40
- agl = agl + 40
- if craft == "warrior":
- print("you steal everything, an he doesnt know how to say no to a warrior like you!, +50 atk +50 agl + 40 HP")
- atk = atk + 50
- hp = hp + 40
- agl = agl + 40
- if stealchoise == "food":
- food = 20
- print("you stole that hommies poptarts, +20 food")
- if sex == "boy":
- print("welcome young man, to Toatally not a trap incorperated, how may I take your order?")
- print("chose to steal food weapons or his jordans")
- stealchoise = input()
- if stealchoise == "jordans":
- print("you yeet that homies jordans and you get + 100 swag and agility")
- agl = agl + 100
- print("the man cries, while is toes are exposed to the elements.")
- if stealchoise == "weapons":
- if craft == "mage":
- print("you steal that homie's magic staff with a MP5 attached,")
- atk = atk + 100
- if craft == "sneakman":
- print("you steal everything, an he doesnt know a thing, +50 atk +50 agl + 40 HP")
- atk = atk + 50
- hp = hp + 40
- agl = agl + 40
- if stealchoise == "food":
- food = 20
- if villagetravel1 == "Tavern":
- print("you get wasted, drinking mountain dew, like a toatal gamer and you have to fight a dunkard")
- print("what do you do? attack block or flee")
- DrunkardHP = 60
- drunkard_attack = 10
- drunkard_fight = input()
- if drunkard_fight == "attack":
- print("you attack using your, ", weaponchoise )
- DrunkardHP = DrunkardHP - atk
- print("drunkard has", DrunkardHP, " HP")
- print("you have", hp, " HP")
- if DrunkardHP < 0:
- print("you won this bar fight!, let's get out of here.")
- if drunkard_fight == "block":
- print("you block using your ", weaponchoise)
- print("all dammage from drunkard is halved forever")
- drunkard_attack = drunkard_attack /2
- if drunkard_fight == "flee":
- print("you trip on doritos and you die, restart program")
- sys.exit()
- if DrunkardHP > 0:
- print("the drunkard attacks!")
- hp = hp - drunkard_attack
- print ("you have ", hp, " left!")
- print("what do you do?")
- drunkard_fight2 = input()
- if drunkard_fight2 == "attack":
- print("you attack using your, ", weaponchoise)
- DrunkardHP = DrunkardHP - atk
- print("drunkard has", DrunkardHP, " HP")
- print("you have", hp, " HP")
- if DrunkardHP < 0:
- print("you won this bar fight!, let's get out of here.")
- if drunkard_fight2 == "block":
- print("you block using your ", weaponchoise)
- print("all dammage from drunkard is halved forever")
- drunkard_attack2 = drunkard_attack /2
- if drunkard_fight == "flee":
- print("you trip on doritos and you die, restart program")
- sys.exit()
- if DrunkardHP > 0:
- print("You have won that battle!")
- if travelchoise2 == "Jumblenorf":
- print("so you decide to fight the jumblenorf, how brave!")
- print("a wild jumblenorf appears")
- jumblenorfhp = 20
- jumblenorfatk = 7
- print("what do you do? attack block or flee")
- attack_choise2 = input()
- if attack_choise2 == "flee":
- if agl > 10:
- print("you snuck past him like a ninja! good job, onward on our quest!")
- if agl < 10:
- print("you got hit and lost half your health!")
- hp = hp /2
- print("you have ", hp, " Know that your ability to flee is based on agility and try not to be a coward!")
- if attack_choise2 == "attack":
- jumblenorfhp = jumblenorfhp - atk
- print("the beast has ", jumblenorfhp)
- if attack_choise2 == "block":
- jumblenorfatk = jumblenorfatk / 2
- hp = hp - jumblenorfatk
- print("you have ", hp, "your block perma reduces attack damage of your foe!")
- if jumblenorfhp < 0:
- print("print you are the victor of this battle!")
- if jumblenorfhp > 0:
- print("what do you do? attack block or flee")
- attack_choise2 = input()
- if attack_choise2 == "flee":
- if agl > 10:
- print("you snuck past him like a ninja! good job, onward on our quest!")
- if agl < 10:
- print("you got hit and lost half your health!")
- hp = hp /2
- print("you have ", hp, " Know that your ability to flee is based on agility and try not to be a coward!")
- if attack_choise2 == "attack":
- jumblenorfhp = jumblenorfhp - atk
- print("the beast has ", jumblenorfhp)
- if attack_choise2 == "block":
- jumblenorfatk = jumblenorfatk / 2
- hp = hp - jumblenorfatk
- print("you have ", hp, "your block perma reduces attack damage of your foe!")
- if jumblenorfhp < 0:
- print("print that was a nice fight, good job!")
- if jumblenorfhp > 0:
- attack_choise2 = input()
- if attack_choise2 == "flee":
- if agl > 10:
- print("you snuck past him like a ninja! good job, onward on our quest!")
- if agl < 10:
- print("you got hit and lost half your health!")
- hp = hp /2
- print("you have ", hp, " Know that your ability to flee is based on agility and try not to be a coward!")
- if attack_choise2 == "attack":
- jumblenorfhp = jumblenorfhp - atk
- print("the beast has ", jumblenorfhp)
- if attack_choise2 == "block":
- jumblenorfatk = jumblenorfatk / 2
- hp = hp - jumblenorfatk
- print("you have ", hp, "your block perma reduces attack damage of your foe!")
- if jumblenorfhp < 0:
- print("print you are the victor of this battle!")
- if travelchoise2 == "Jumblenorf":
- print("Wow that was a great fight, on with our adventure, so if you dont know, there is house ahead that should hold the key,")
- print("the key is used to get past the wall of plot devices")
- print("do we fight the keyholder? or ask nicely")
- print("Hint: type fight or ask")
- askkeyholder = input()
- if askkeyholder == "ask":
- print("the mighty keyholder gives you his key,")
- if sex == "boy":
- print("KEYHOLDER: so a stupid young man like you wants my key!?!")
- keyholderquestion = input()
- if keyholderquestion == "yes":
- print("prepare for a fight cause your not getting this from my cold dead hands")
- print("what do you do? attack the old man? or flee")
- attackoldman = input()
- if attackoldman == "flee":
- print("you fled from a stupid old man? The great enyak kills you out of shame")
- print("you died! restart program!")
- if attackoldman == "attack":
- print("you tap the old man and he crumbles down, (Cowardly) he gives you the key begging for his life.")
- if keyholderquestion == "no":
- print("you wasted my time so il use magic to kill you!")
- print("you died!")
- if askkeyholder == "fight":
- if sex == "boy":
- print("young ", craft, " Please dont hurt me! (He hands you the keys!)")
- if sex == "girl":
- print("so some girl thinks he can beat me the mighty keyholder? Prepare to do battle!")
- print("what do you do? attack?")
- girlattackkeygolder = input()
- if girlattackkeygolder == "attack":
- print("the mighty keyholder runs away before you can use your ", craft, " skills on him")
- print("you travel onward on your quest that encounter leveled you up!")
- print()
- level = level + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement