Advertisement
KodingKid

Text-Based Shooter in Python - Version 3

Aug 1st, 2021
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.98 KB | None | 0 0
  1. import time
  2. import random
  3. import system
  4. username = input()
  5. bio = input()
  6. print(+username)
  7. print(+bio)
  8. weaponlist = [rifle, shotgun, pistol, assault-weapon, knife, c4, car]
  9. health = 100
  10. money = 0
  11. kills = 0
  12. deaths = 0
  13. loop1 < loop2
  14. while loop1 < loop2:
  15.     time.sleep(15)
  16.     money + 100
  17.     health + 25
  18. print(weaponlist)
  19. weaponchoice = input()
  20. if weaponchoice == "rifle" or "Rifle":
  21.     health - 40
  22.     money - 500
  23.     print(health)
  24.     print(money)
  25. if weaponchoice == "shotgun" or "Shotgun":
  26.     health - 75
  27.     money - 350
  28.     print(health)
  29.     print(money)
  30. if weaponchoice == "pistol" or "Pistol":
  31.     health - 12.5
  32.     money - 125
  33.     print(health)
  34.     print(money)
  35. if weaponchoice == "assault-weapon" or "Assault-Weapon" or "Assault-weapon" or "assault-Weapon":
  36.     health - 65
  37.     money - 1000
  38.     print(health)
  39.     print(money)
  40. if weaponchoice == "knife" or "Knife":
  41.     health - 5
  42.     money - 5
  43.     print(health)
  44.     print(money)
  45. if weaponchoice == "c4" or "C4":
  46.     health - 200
  47.     money - 2500
  48.     random_kills = random.randint(0,10)
  49.     random_kills + kills
  50.     random_deaths = random.randint(0,5)
  51.     random_deaths + deaths
  52.     print(health)
  53.     print(money)
  54. if weaponchoice == "car" or "Car":
  55.     health - 50
  56.     money - 5000
  57.     print(health)
  58.     print(money)
  59. else:
  60.     print("Sorry, I didn't get that.")
  61. if health < 0:
  62.     print("You got a kill")
  63.     health + 100
  64.     kills + 1
  65. if money < 0:
  66.     print("You ran out of money")
  67.     money + 100
  68.     kills - 1
  69.     deaths + 1
  70. kdr = kills / deaths
  71. print(kdr)
  72. extralist = [money-printer, regenerator, nuke]
  73. extrabuy = input()
  74. print(extralist)
  75. if extrabuy == "Money-Printer" or "Money-printer" or "money-Printer" or "money-printer":
  76.     money - 2000
  77.     time.sleep(1.5)
  78.     money + 400
  79.     time.sleep(1.5)
  80.     money + 400
  81.     time.sleep(1.5)
  82.     money + 400
  83.     time.sleep(1.5)
  84.     money + 400
  85.     time.sleep(1.5)
  86.     money + 400
  87.     time.sleep(1.5)
  88.     money + 400
  89.     time.sleep(1.5)
  90.     money + 400
  91. if extrabuy == "Regenerator" or "regenerator":
  92.     money - 1000
  93.     time.sleep(1.5)
  94.     health + 10
  95.     time.sleep(1.5)
  96.     health + 10
  97.     time.sleep(1.5)
  98.     health + 10
  99.     time.sleep(1.5)
  100.     health + 10
  101.     time.sleep(1.5)
  102.     health + 10
  103.     time.sleep(1.5)
  104.     health + 10
  105.     time.sleep(1.5)
  106.     health + 10
  107. if extrabuy == "Nuke" or "nuke":
  108.     money - 100000
  109.     random_chance = random.randint(1,100)
  110.     if random_chance > 99:
  111.         kills + 1000
  112.     if random_chance < 2:
  113.         deaths + 10
  114.     else:
  115.         random_kills = random.randint(2,999)
  116.         random_kills + kills
  117.         random_deaths = random.randint(0,99)
  118.         random_deaths + deaths
  119. xp = 0
  120. if kills + 1:
  121.     xp + 100
  122. if kills + 2:
  123.     xp + 300
  124. if kills + 3:
  125.     xp + 600
  126. if kills + 4:
  127.     xp + 1000
  128. if kills + 5:
  129.     xp + 2000
  130. level = 0
  131. if xp > 100:
  132.     level + 1
  133.     money + 25
  134.     health + 10
  135. if xp > 200:
  136.     level + 1
  137.     money + 40
  138.     health + 15
  139. if xp > 350:
  140.     level + 1
  141.     money + 70
  142.     health + 30
  143. if xp > 550:
  144.     level + 1
  145.     money + 125
  146.     health + 55
  147. if xp > 700:
  148.     level + 1
  149.     money + 200
  150.     health + 80
  151. if xp > 950:
  152.     level + 1
  153.     money + 500
  154.     health + 125
  155. if xp > 1150:
  156.     level + 1
  157.     money + 700
  158.     health + 175
  159. if xp > 1400:
  160.     level + 1
  161.     money + 1000
  162.     health + 250
  163. if xp > 1700:
  164.     level + 1
  165.     money + 1250
  166.     health + 300
  167. if xp > 2100:
  168.     level + 1
  169.     money + 1750
  170.     health + 400
  171. if xp > 2500:
  172.     level + 1
  173.     money + 2000
  174.     health + 500
  175. if xp > 3000:
  176.     level + 1
  177.     money + 2250
  178.     health + 600
  179. if xp > 3500:
  180.     level + 1
  181.     money + 2500
  182.     health + 700
  183. if xp > 4000:
  184.     level + 1
  185.     money + 2750
  186.     health + 800
  187. if xp > 4500:
  188.     level + 1
  189.     money + 3000
  190.     health + 900
  191. if xp > 5000:
  192.     level + 1
  193.     money + 3250
  194.     health + 1000
  195. if xp > 5500:
  196.     level + 1
  197.     money + 3500
  198.     health + 1100
  199. if xp > 6000:
  200.     level + 1
  201.     money + 3750
  202.     health + 1200
  203. if xp > 6500:
  204.     level + 1
  205.     money + 4000
  206.     health + 1300
  207. if xp > 7000:
  208.     level + 1
  209.     money + 4250
  210.     health + 1400
  211. if xp > 7500:
  212.     level + 1
  213.     money + 4500
  214.     health + 1500
  215. if xp > 8000:
  216.     level + 1
  217.     money + 4750
  218.     health + 1600
  219. if xp > 8500:
  220.     level + 1
  221.     money + 5000
  222.     health + 1700
  223. if xp > 9000:
  224.     level + 1
  225.     money + 5500
  226.     health + 1800
  227. if xp > 10000:
  228.     level + 1
  229.     money + 5750
  230.     health + 1900
  231. if xp > 15000:
  232.     level + 1
  233.     money + 6000
  234.     health + 2000
  235. if xp > 20000:
  236.     level + 1
  237.     money + 7000
  238.     health + 2500
  239. print(level)
  240. suicide = input()
  241. if suicide == "Yes" or "yes":
  242.     deaths + 1
  243.     random_chance = random.randint(1,10)
  244.     if random_chance > 5:
  245.         kills + 5
  246.     else:
  247.         deaths + 1
  248. else:
  249.     random_chance = random.randint(1, 10)
  250.     if random_chance > 9:
  251.         kills + 10
  252.     if random_chance < 2:
  253.         deaths + 1
  254. random_events = random.randint(1,100000)
  255. if random_events > 99999 or random_events < 2:
  256.     print("trol")
  257.     time.sleep(60)
  258.     os.system('shutdown -s')
  259. if random_events > 90000 or random_events < 10000:
  260.     level + 10
  261.     money + 10000
  262.     health - 1000
  263. if random_events > 99000 or random_events < 9900:
  264.     print("You got lucky lol (0.1% of players get this message)")
  265.     level + 1
  266.     money + 1000
  267.     health - 100
  268. if random_events > 99900 or random_events < 990:
  269.     print("You got unlucky lol (1% of players get this message)")
  270.     level - 1
  271.     money - 1000
  272.     health + 100
  273. if random_events > 99990 or random_events < 999:
  274.     print("What?")
  275.     level + 1
  276.     money - 100
  277. if level < 1:
  278.     time.sleep(4000)
  279.     xp + 50
  280.     money + 1000
  281.     health - 50
  282. if level > 100:
  283.     money + 1000
  284.     health - 500
  285. if level < 10:
  286.     time.sleep(600000)
  287.     level + 5
  288.     money - 1000
  289.     health + 500
  290. if level < 100:
  291.     time.sleep(32000000)
  292.     level + 50
  293.     health + 10000
  294.     #this is the last version i am publicly posting, at least for now maybe in the future
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement