Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.89 KB | None | 0 0
  1. '''
  2.  
  3. Online Python Compiler.
  4. Code, Compile, Run and Debug python program online.
  5. Write your code in this editor and press "Run" button to execute it.
  6.  
  7. '''
  8.  
  9. print("Hello World")
  10. print("enter your name traveler")
  11. word = input()
  12. 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",]
  13. word = str(word)
  14. wordlen = len(word)
  15. if wordlen == 0:
  16. print("type something dumby!")
  17. if wordlen > 0:
  18. if wordlen == 0:
  19. print("Type something not blank!")
  20. if word[0] == (wordletter[0]):
  21. print(1)
  22. if word[0] == (wordletter[2]):
  23. print(2)
  24. if word[0] == (wordletter[3]):
  25. print(3)
  26. if word[0] == (wordletter[4]):
  27. print(4)
  28. if word[0] == (wordletter[5]):
  29. print(5)
  30. if word[0] == (wordletter[6]):
  31. print(6)
  32. if word[0] == (wordletter[7]):
  33. print(7)
  34. if word[0] == (wordletter[8]):
  35. print(8)
  36. if word[0] == (wordletter[9]):
  37. print(9)
  38. if word[0] == (wordletter[10]):
  39. print(10)
  40. if word[0] == (wordletter[11]):
  41. print(11)
  42. if word[0] == (wordletter[12]):
  43. print(12)
  44. if word[0] == (wordletter[13]):
  45. print(13)
  46. if word[0] == (wordletter[14]):
  47. print(14)
  48. if word[0] == (wordletter[15]):
  49. print(15)
  50. if word[0] == (wordletter[16]):
  51. print(16)
  52. if word[0] == (wordletter[17]):
  53. print(17)
  54. if word[0] == (wordletter[18]):
  55. print(18)
  56. if word[0] == (wordletter[19]):
  57. print(19)
  58. if word[0] == (wordletter[20]):
  59. print(20)
  60. if word[0] == (wordletter[21]):
  61. print(21)
  62. if word[0] == (wordletter[22]):
  63. print(22)
  64. if word[0] == (wordletter[23]):
  65. print(23)
  66. if word[0] == (wordletter[24]):
  67. print(24)
  68. if wordlen > 1:
  69. if word[1] == (wordletter[0]):
  70. fun1 = 1
  71. if word[1] == (wordletter[2]):
  72. fun1 = 2
  73. if word[1] == (wordletter[3]):
  74. print(3)
  75. if word[1] == (wordletter[4]):
  76. print(4)
  77. if word[1] == (wordletter[5]):
  78. print(5)
  79. if word[1] == (wordletter[6]):
  80. print(6)
  81. if word[1] == (wordletter[7]):
  82. print(7)
  83. if word[1] == (wordletter[8]):
  84. print(8)
  85. if word[1] == (wordletter[9]):
  86. print(9)
  87. if word[1] == (wordletter[10]):
  88. print(10)
  89. if word[1] == (wordletter[11]):
  90. print(11)
  91. if word[1] == (wordletter[12]):
  92. print(12)
  93. if word[1] == (wordletter[13]):
  94. print(13)
  95. if word[1] == (wordletter[14]):
  96. print(14)
  97. if word[1] == (wordletter[15]):
  98. print(15)
  99. if word[1] == (wordletter[16]):
  100. print(16)
  101. if word[1] == (wordletter[17]):
  102. print(17)
  103. if word[1] == (wordletter[18]):
  104. print(18)
  105. if word[1] == (wordletter[19]):
  106. print(19)
  107. if word[1] == (wordletter[20]):
  108. print(20)
  109. if word[1] == (wordletter[21]):
  110. print(21)
  111. if word[1] == (wordletter[22]):
  112. print(22)
  113. if word[1] == (wordletter[23]):
  114. print(23)
  115. if word[1] == (wordletter[24]):
  116. print(24)
  117.  
  118. if wordlen > 2:
  119. if word[2] == (wordletter[0]):
  120. print(1)
  121. if word[2] == (wordletter[2]):
  122. print(2)
  123. if word[2] == (wordletter[3]):
  124. print(3)
  125. if word[2] == (wordletter[4]):
  126. print(4)
  127. if word[2] == (wordletter[5]):
  128. print(5)
  129. if word[2] == (wordletter[6]):
  130. print(6)
  131. if word[2] == (wordletter[7]):
  132. print(7)
  133. if word[2] == (wordletter[8]):
  134. print(8)
  135. if word[2] == (wordletter[9]):
  136. print(9)
  137. if word[2] == (wordletter[10]):
  138. print(10)
  139. if word[2] == (wordletter[11]):
  140. print(11)
  141. if word[2] == (wordletter[12]):
  142. print(12)
  143. if word[2] == (wordletter[13]):
  144. print(13)
  145. if word[2] == (wordletter[14]):
  146. print(14)
  147. if word[2] == (wordletter[15]):
  148. print(15)
  149. if word[2] == (wordletter[16]):
  150. print(16)
  151. if word[2] == (wordletter[17]):
  152. print(17)
  153. if word[2] == (wordletter[18]):
  154. print(18)
  155. if word[2] == (wordletter[19]):
  156. print(19)
  157. if word[2] == (wordletter[20]):
  158. print(20)
  159. if word[2] == (wordletter[21]):
  160. print(21)
  161. if word[2] == (wordletter[22]):
  162. print(22)
  163. if word[2] == (wordletter[23]):
  164. print(23)
  165. if word[2] == (wordletter[24]):
  166. print(24)
  167. if wordlen > 3:
  168. if word[3] == (wordletter[0]):
  169. print(1)
  170. if word[3] == (wordletter[2]):
  171. print(2)
  172. if word[3] == (wordletter[3]):
  173. print(3)
  174. if word[3] == (wordletter[4]):
  175. print(4)
  176. if word[3] == (wordletter[5]):
  177. print(5)
  178. if word[3] == (wordletter[6]):
  179. print(6)
  180. if word[3] == (wordletter[7]):
  181. print(7)
  182. if word[3] == (wordletter[8]):
  183. print(8)
  184. if word[3] == (wordletter[9]):
  185. print(9)
  186. if word[3] == (wordletter[10]):
  187. print(10)
  188. if word[3] == (wordletter[11]):
  189. print(11)
  190. if word[3] == (wordletter[12]):
  191. print(12)
  192. if word[3] == (wordletter[13]):
  193. print(13)
  194. if word[3] == (wordletter[14]):
  195. print(14)
  196. if word[3] == (wordletter[15]):
  197. print(15)
  198. if word[3] == (wordletter[16]):
  199. print(16)
  200. if word[3] == (wordletter[17]):
  201. print(17)
  202. if word[3] == (wordletter[18]):
  203. print(18)
  204. if word[3] == (wordletter[19]):
  205. print(19)
  206. if word[3] == (wordletter[20]):
  207. print(20)
  208. if word[3] == (wordletter[21]):
  209. print(21)
  210. if word[3] == (wordletter[22]):
  211. print(22)
  212. if word[3] == (wordletter[23]):
  213. print(23)
  214. if word[3] == (wordletter[24]):
  215. print(24)
  216. if wordlen > 4:
  217. if word[4] == (wordletter[0]):
  218. print(1)
  219. if word[4] == (wordletter[2]):
  220. print(2)
  221. if word[4] == (wordletter[3]):
  222. print(3)
  223. if word[4] == (wordletter[4]):
  224. print(4)
  225. if word[4] == (wordletter[5]):
  226. print(5)
  227. if word[4] == (wordletter[6]):
  228. print(6)
  229. if word[4] == (wordletter[7]):
  230. print(7)
  231. if word[4] == (wordletter[8]):
  232. print(8)
  233. if word[4] == (wordletter[9]):
  234. print(9)
  235. if word[4] == (wordletter[10]):
  236. print(10)
  237. if word[4] == (wordletter[11]):
  238. print(11)
  239. if word[4] == (wordletter[12]):
  240. print(12)
  241. if word[4] == (wordletter[13]):
  242. print(13)
  243. if word[4] == (wordletter[14]):
  244. print(14)
  245. if word[4] == (wordletter[15]):
  246. print(15)
  247. if word[4] == (wordletter[16]):
  248. print(16)
  249. if word[4] == (wordletter[17]):
  250. print(17)
  251. if word[4] == (wordletter[18]):
  252. print(18)
  253. if word[4] == (wordletter[19]):
  254. print(19)
  255. if word[4] == (wordletter[20]):
  256. print(20)
  257. if word[4] == (wordletter[21]):
  258. print(21)
  259. if word[4] == (wordletter[22]):
  260. print(22)
  261. if word[4] == (wordletter[23]):
  262. print(23)
  263. if word[4] == (wordletter[24]):
  264. print(24)
  265. if wordlen > 5:
  266. if word[5] == (wordletter[0]):
  267. print(1)
  268. if word[5] == (wordletter[2]):
  269. print(2)
  270. if word[5] == (wordletter[3]):
  271. print(3)
  272. if word[5] == (wordletter[4]):
  273. print(4)
  274. if word[5] == (wordletter[5]):
  275. print(5)
  276. if word[5] == (wordletter[6]):
  277. print(6)
  278. if word[5] == (wordletter[7]):
  279. print(7)
  280. if word[5] == (wordletter[8]):
  281. print(8)
  282. if word[5] == (wordletter[9]):
  283. print(9)
  284. if word[5] == (wordletter[10]):
  285. print(10)
  286. if word[5] == (wordletter[11]):
  287. print(11)
  288. if word[5] == (wordletter[12]):
  289. print(12)
  290. if word[5] == (wordletter[13]):
  291. print(13)
  292. if word[5] == (wordletter[14]):
  293. print(14)
  294. if word[5] == (wordletter[15]):
  295. print(15)
  296. if word[5] == (wordletter[16]):
  297. print(16)
  298. if word[5] == (wordletter[17]):
  299. print(17)
  300. if word[5] == (wordletter[18]):
  301. print(18)
  302. if word[5] == (wordletter[19]):
  303. print(19)
  304. if word[5] == (wordletter[20]):
  305. print(20)
  306. if word[5] == (wordletter[21]):
  307. print(21)
  308. if word[5] == (wordletter[22]):
  309. print(22)
  310. if word[5] == (wordletter[23]):
  311. print(23)
  312. if word[5] == (wordletter[24]):
  313. print(24)
  314. if wordlen > 10:
  315. print("thats to big of a word try a smaller one")
  316. print("hello ", word)
  317. print(word, "welcome to the world of pyRPG1")
  318. print("are you a boy or a girl")
  319. sex = input()
  320. print("so you are a", sex)
  321. if sex == "boy":
  322. print("a young man like you should be interested in an adventure!")
  323. print("are you?")
  324. adventure_question = input()
  325. if adventure_question == "yes":
  326. print("welcome to the best text rpg!", word, "your adventure awaits!")
  327. if sex == "girl":
  328. print("how could a young woman like you be interested in an adventure!")
  329. print("are you?")
  330. adventure_question = input()
  331. if adventure_question == "yes":
  332. print("welcome to the best text rpg!", word, "your adventure awaits!")
  333. if adventure_question == "no":
  334. print("Then im dragging you with me! your adventure starts now!!")
  335. print("what is your craft? mage warrior or sneakman")
  336. craft = input()
  337. if craft == "warrior":
  338. level = 1
  339. max_hp = 100
  340. max_agl = 50
  341. max_atk = 100
  342. level = 1
  343. atk = 10 * level
  344. hp = 25 * level
  345. agl = .5 * level
  346. if hp == 0:
  347. print("you died!")
  348.  
  349. print("So you are a mighty warrior?")
  350. areyousurewarrior = input()
  351. if areyousurewarrior == "no":
  352. print("out of my sight liar!")
  353. if areyousurewarrior == "yes":
  354. print("there is a great monster in the bush we must slay it! come")
  355.  
  356. if craft == "mage":
  357. level = 1
  358. max_hp = 70
  359. max_agl = 20
  360. max_atk = 150
  361. level = 1
  362. atk = 10 * level
  363. hp = 25 * level
  364. agl = .5 * level
  365. if hp == 0:
  366. print("you died!")
  367.  
  368. print("So you are a mighty mage?")
  369. areyousuremage = input()
  370. if areyousuremage == "no":
  371. print("out of my sight liar!")
  372. if areyousuremage == "yes":
  373. print("there is a great monster in the bush we must slay it!")
  374. if craft == "sneakman":
  375. level = 1
  376. max_hp = 50
  377. max_agl = 200
  378. max_atk = 200
  379. level = 1
  380. atk = 10 * level
  381. hp = 25 * level
  382. agl = .5 * level
  383. if hp == 0:
  384. print("you died!")
  385.  
  386. print("So you are a fast sneaksman?")
  387. areyousuresneaksman = input()
  388. if areyousuresneaksman == "no":
  389. print("out of my sight liar!")
  390. if areyousuresneaksman == "yes":
  391. print("there is a great monster in the bush we must slay it! come")
  392. crumbledorfhp = 20
  393. crumbledorfatk = 5
  394. print("a vicous crumble dorf draws near")
  395. print("what do you do")
  396. attack_choise = input()
  397. if attack_choise == "attack":
  398. crumbledorfhp - atk
  399. print("the beast has")
  400. print(crumbledorfhp)
  401. print("hp")
  402. print("the beast attacks!")
  403. hp - crumbledorfatk
  404. crumbledorfhp - atk
  405. print("you have")
  406. print(hp)
  407. print("health")
  408. print("the best has been weakened")
  409. print("what do you")
  410. attack_choise = input()
  411. if attack_choise == "attack":
  412. print("the beast attacks")
  413. hp - crumbledorfatk
  414. crumbledorfhp - atk
  415. if crumbledorfhp < 0:
  416. xp = 1
  417. print("the best is defeated victory is yours!")
  418. print("you have", hp, "hp left")
  419. if crumbledorfhp > 0:
  420. print("the beast attacks again what do you do?")
  421. hp - crumbledorfatk
  422. attack_choise = input()
  423. if attack_choise == "attack":
  424. crumbledorfhp - atk
  425. if crumbledorfhp < 0:
  426. xp = 1
  427. print("the best is defeated victory is yours!")
  428. print("you have", hp, "hp left")
  429. print("You where so mighty slaying that crumble dorf!")
  430. print("there is a orb of power that you must seek, we must go on a quest")
  431. if craft == "warrior":
  432. print("Do you want to use the sword, + 10 attk +speed, the axe + 30 attack or the war shield + 40 hp")
  433. weaponchoise = input()
  434. if weaponchoise == "sword":
  435. atk + 10
  436. agl + 10
  437. if weaponchoise == "axe":
  438. attack + 30
  439. agl - 10
  440. if weaponchoise == "war shield":
  441. hp + 40
  442. print("so you have chosen", weaponchoise, "?")
  443. if craft == "mage":
  444. print("Do you want to use the magic staff, broom or clorox bleach?")
  445. weaponchoise = input()
  446. if weaponchoise == "magic staff":
  447. atk + 10
  448. agl + 10
  449. if weaponchoise == "broom":
  450. atk + 10
  451. agl + 50
  452. hp + 20
  453. if weaponchoise == "clorox bleach":
  454. hp -30
  455. atk + 2000
  456. print("so you have chosen", weaponchoise, "?")
  457. if weaponchoise == "clorox bleach":
  458. print("so you are a man of culture and you must enjoy hard games ;)")
  459. if craft == "sneakman":
  460. print("So you have chosen easy mode?")
  461. print("Do you want to know who i am?")
  462. knowwhoiam = input()
  463. if knowwhoiam == "yes":
  464. print("my name is llepbmac! great creator of this realm")
  465. if knowwhoiam == "no":
  466. print("Ok then it's unrelated :( ")
  467. print("now that we are situated! we must go to the king's castle or the mountains of eynak")
  468. print ("chose castle or enyak !")
  469. travelchoise = input()
  470. if travelchoise == "enyak":
  471. print("we are traveling to enyak, then correct?")
  472. travelareyousure = input()
  473. if travelareyousure == "yes":
  474. print("We are traveling to the great mountains then!")
  475. if travelareyousure == "no":
  476. print("we are traveling to the King's castle then")
  477. if travelchoise == "castle":
  478. print("we are traveling to enyak, then correct?")
  479. travelareyousure = input()
  480. if travelareyousure == "yes":
  481. print("We are traveling to the great King's castle!")
  482. if travelareyousure == "no":
  483. print("we are traveling the mighty sacred mountains of enyak!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement