Advertisement
KodingKid

Text-Based Shooter in Python - Version 1

Aug 1st, 2021
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.37 KB | None | 0 0
  1. import time
  2. weaponlist = [rifle, shotgun, pistol, assault-weapon, knife, c4, car]
  3. health = 100
  4. money = 0
  5. kills = 0
  6. deaths = 0
  7. loop1 < loop2
  8. while loop1 < loop2:
  9.     time.sleep(15)
  10.     money + 100
  11.     health + 25
  12. print(weaponlist)
  13. weaponchoice = input()
  14. if weaponchoice == "rifle" or "Rifle":
  15.     health - 40
  16.     money - 500
  17.     print(health)
  18.     print(money)
  19. if weaponchoice == "shotgun" or "Shotgun":
  20.     health - 75
  21.     money - 350
  22.     print(health)
  23.     print(money)
  24. if weaponchoice == "pistol" or "Pistol":
  25.     health - 12.5
  26.     money - 125
  27.     print(health)
  28.     print(money)
  29. if weaponchoice == "assault-weapon" or "Assault-Weapon" or "Assault-weapon" or "assault-Weapon":
  30.     health - 65
  31.     money - 1000
  32.     print(health)
  33.     print(money)
  34. if weaponchoice == "knife" or "Knife":
  35.     health - 5
  36.     money - 5
  37.     print(health)
  38.     print(money)
  39. if weaponchoice == "c4" or "C4":
  40.     health - 200
  41.     money - 2500
  42.     print(health)
  43.     print(money)
  44. if weaponchoice == "car" or "Car":
  45.     health - 50
  46.     money - 5000
  47.     print(health)
  48.     print(money)
  49. else:
  50.     print("Sorry, I didn't get that.")
  51. if health < 0:
  52.     print("You got a kill")
  53.     health + 100
  54.     kills + 1
  55. if money < 0:
  56.     print("You ran out of money")
  57.     money + 100
  58.     kills - 1
  59.     deaths + 1
  60. kdr = kills / deaths
  61. print(kdr)
  62. extralist = [money-printer, regenerator, nuke]
  63. extrabuy = input()
  64. print(extralist)
  65. if extrabuy == "Money-Printer" or "Money-printer" or "money-Printer" or "money-printer":
  66.     money - 2000
  67.     time.sleep(1.5)
  68.     money + 400
  69.     time.sleep(1.5)
  70.     money + 400
  71.     time.sleep(1.5)
  72.     money + 400
  73.     time.sleep(1.5)
  74.     money + 400
  75.     time.sleep(1.5)
  76.     money + 400
  77.     time.sleep(1.5)
  78.     money + 400
  79.     time.sleep(1.5)
  80.     money + 400
  81. if extrabuy == "Regenerator" or "regenerator":
  82.     money - 1000
  83.     time.sleep(1.5)
  84.     health + 10
  85.     time.sleep(1.5)
  86.     health + 10
  87.     time.sleep(1.5)
  88.     health + 10
  89.     time.sleep(1.5)
  90.     health + 10
  91.     time.sleep(1.5)
  92.     health + 10
  93.     time.sleep(1.5)
  94.     health + 10
  95.     time.sleep(1.5)
  96.     health + 10
  97. if extrabuy == "Nuke" or "nuke":
  98.     money - 100000
  99.     kills + 20
  100.     deaths + 2
  101. xp = 0
  102. if kills + 1:
  103.     xp + 100
  104. if kills + 2:
  105.     xp + 300
  106. if kills + 3:
  107.     xp + 600
  108. if kills + 4:
  109.     xp + 1000
  110. if kills + 5:
  111.     xp + 2000
  112. level = 0
  113. if xp > 100:
  114.     level + 1
  115.     money + 25
  116.     health + 10
  117. if xp > 200:
  118.     level + 1
  119.     money + 40
  120.     health + 15
  121. if xp > 350:
  122.     level + 1
  123.     money + 70
  124.     health + 30
  125. if xp > 550:
  126.     level + 1
  127.     money + 125
  128.     health + 55
  129. if xp > 700:
  130.     level + 1
  131.     money + 200
  132.     health + 80
  133. if xp > 950:
  134.     level + 1
  135.     money + 500
  136.     health + 125
  137. if xp > 1150:
  138.     level + 1
  139.     money + 700
  140.     health + 175
  141. if xp > 1400:
  142.     level + 1
  143.     money + 1000
  144.     health + 250
  145. if xp > 1700:
  146.     level + 1
  147.     money + 1250
  148.     health + 300
  149. if xp > 2100:
  150.     level + 1
  151.     money + 1750
  152.     health + 400
  153. if xp > 2500:
  154.     level + 1
  155.     money + 2000
  156.     health + 500
  157. if xp > 3000:
  158.     level + 1
  159.     money + 2250
  160.     health + 600
  161. if xp > 3500:
  162.     level + 1
  163.     money + 2500
  164.     health + 700
  165. if xp > 4000:
  166.     level + 1
  167.     money + 2750
  168.     health + 800
  169. if xp > 4500:
  170.     level + 1
  171.     money + 3000
  172.     health + 900
  173. if xp > 5000:
  174.     level + 1
  175.     money + 3250
  176.     health + 1000
  177. print(level)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement