Advertisement
KodingKid

Text-Based Life-Tycoon Game in Python - Version 3

Aug 13th, 2021
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.33 KB | None | 0 0
  1. import time
  2. import random
  3. xp = 0
  4. level = 0
  5. money = 0
  6. cars = 0
  7. mileage = 0
  8. day = 0
  9. job_pay
  10. money = False
  11. miles = False
  12. car = False
  13. job = False
  14. print("Hello, this is car simulator, the game where you work, get money, get cars, or even make cars, and drive")
  15. print("Here's your first job")
  16. print("Do you want to be a janitor, dog-walker, or programmer (or freelance)")
  17. print("Janitor = 5 hours work for £100")
  18. print("Dog-walker = 7 hours work £140")
  19. print("Programmer = 3 hours work for £75")
  20. day_night = 24
  21. job1 = input()
  22. if job1 == "Janitor" or "janitor":
  23.     job = True
  24.     money = True
  25.     while job == True:
  26.         time.sleep(1200)
  27.         print("You are now going to work")
  28.         day_night - 5
  29.         money + 100
  30. if job1 == "Dog-Walker" or "Dog-walker" or "dog-walker" or "dog-Walker":
  31.     job = True
  32.     money = True
  33.     while job == True:
  34.         time.sleep(1500)
  35.         print("You are now going to work")
  36.         day_night - 7
  37.         money + 140
  38. if job1 == "Programmer" or "programmer":
  39.     job = True
  40.     money = True
  41.     while job == True:
  42.         time.sleep(900)
  43.         print("You are now going to work")
  44.         day_night - 3
  45.         money + 75
  46. if job1 == "Free-Lance" or "Freelance" or "freelance" or "free-lance" or "Free-lance":
  47.     job = True
  48.     money = True
  49.     while job == True:
  50.         random_work1 = random.randint(600,1800)
  51.         time.sleep(random_work1)
  52.         print("You are now going to work")
  53.         random_work2 = random.randint(1,9)
  54.         day_night - random_work2
  55.         random_work3 = random.randint(50,200)
  56.         money + random_work3
  57. else:
  58.     print("Try again")
  59. if day_night == 0:
  60.     day + 1
  61. if day_night == 10:
  62.     money + 10
  63.     print("10-Day Bonus")
  64. if day_night == 100:
  65.     money + 100
  66.     print("100-Day Bonus")
  67. if day_night == 365:
  68.     money + 1000
  69.     print("1-Year Bonus")
  70. print("Great, you have a job now! Now you need your first car.")
  71. print("Do you want a Suzuki RM-Z450 (just enter the second part please), a Yamaha 660 Rhino, or a Toyota Corolla")
  72. top_speed = 0
  73. car1 = input()
  74. if car1 == "RM-Z450" or "rm-z450":
  75.     car = True
  76.     miles = True
  77.     while car == True:
  78.         time.sleep(150)
  79.         top_speed = 100
  80.         mileage + top_speed
  81.         money - 2
  82. if car1 == "660 Rhino" or "660 rhino":
  83.     car = True
  84.     miles = True
  85.     while car == True:
  86.         time.sleep(150)
  87.         top_speed = 60
  88.         mileage + top_speed
  89.         money - 4
  90. if car1 == "Toyota Corolla" or "Toyota corolla" or "toyota corolla" or "corolla" or "Corolla":
  91.     car = True
  92.     miles = True
  93.     while car == True:
  94.         time.sleep(150)
  95.         top_speed = 120
  96.         mileage + top_speed
  97.         money - 7
  98. while (True):
  99.     time.sleep(3600)
  100.     day + 1
  101. time.sleep(1500)
  102. print("Wow, you're doing well for yourself!")
  103. print("Would you like another job?")
  104. changejob1 = input()
  105. if changejob1 == "Yes" or "yes":
  106.     print("Would you like to be a vlogger, car-maker, racing-driver, or shop-assistant")
  107.     changejob2 = input()
  108.     if changejob2 == "Vlogger" or "vlogger":
  109.         random_work1 = random.randint(1200, 2700)
  110.         time.sleep(random_work1)
  111.         print("You are now going to work")
  112.         random_work2 = random.randint(1, 10)
  113.         day_night - random_work2
  114.         random_work3 = random.randint(5, 2000)
  115.         money + random_work3
  116.     if changejob2 == "car-maker" or "Car-maker" or "Car-Maker":
  117.         time.sleep(1500)
  118.         print("You are now going to work")
  119.         day_night - 3
  120.         money + 150
  121.     if changejob2 == "racing-driver" or "Racing-driver" or "Racing-Driver":
  122.         random_work1 = random.randint(2000, 3000)
  123.         time.sleep(random_work1)
  124.         print("You are now going to work")
  125.         random_work2 = random.randint(2, 5)
  126.         day_night - random_work2
  127.         random_work3 = random.randint(0, 10000)
  128.         money + random_work3
  129.     if changejob2 == "shop-assistant" or "Shop-assistant" or "Shop-Assistant":
  130.         time.sleep(500)
  131.         print("You are now going to work")
  132.         day_night - 1
  133.         money + 50
  134.     else:
  135.         print("Sorry, I didn't get that...")
  136. else:
  137.     print("ok cool")
  138. if mileage > 100:
  139.     print("First 100 miles!")
  140.     money + 250
  141.     xp + 100
  142. if mileage > 1000:
  143.     print("1000????")
  144.     money + 1250
  145.     xp + 500
  146. if xp > 100:
  147.     level + 1
  148.     money + 25
  149. if xp > 200:
  150.     level + 1
  151.     money + 40
  152. if xp > 350:
  153.     level + 1
  154.     money + 70
  155. if xp > 550:
  156.     level + 1
  157.     money + 125
  158. if xp > 700:
  159.     level + 1
  160.     money + 200
  161. if xp > 950:
  162.     level + 1
  163.     money + 500
  164. if xp > 1150:
  165.     level + 1
  166.     money + 700
  167. if xp > 1400:
  168.     level + 1
  169.     money + 1000
  170. if xp > 1700:
  171.     level + 1
  172.     money + 1250
  173. if xp > 2100:
  174.     level + 1
  175.     money + 1750
  176. if xp > 2500:
  177.     level + 1
  178.     money + 2000
  179. if xp > 3000:
  180.     level + 1
  181.     money + 2250
  182. if xp > 3500:
  183.     level + 1
  184.     money + 2500
  185. if xp > 4000:
  186.     level + 1
  187.     money + 2750
  188. if xp > 4500:
  189.     level + 1
  190.     money + 3000
  191. if xp > 5000:
  192.     level + 1
  193.     money + 3250
  194. if xp > 5500:
  195.     level + 1
  196.     money + 3500
  197. if xp > 6000:
  198.     level + 1
  199.     money + 3750
  200. if xp > 6500:
  201.     level + 1
  202.     money + 4000
  203. if xp > 7000:
  204.     level + 1
  205.     money + 4250
  206. if xp > 7500:
  207.     level + 1
  208.     money + 4500
  209. if xp > 8000:
  210.     level + 1
  211.     money + 4750
  212. if xp > 8500:
  213.     level + 1
  214.     money + 5000
  215. if xp > 9000:
  216.     level + 1
  217.     money + 5500
  218. if xp > 10000:
  219.     level + 1
  220.     money + 5750
  221. if xp > 15000:
  222.     level + 1
  223.     money + 6000
  224. if xp > 20000:
  225.     level + 1
  226.     money + 7000
  227. if xp > 25000:
  228.     level + 1
  229.     money + 8000
  230. if xp > 30000:
  231.     level + 1
  232.     money + 9000
  233. if xp > 35000:
  234.     level + 1
  235.     money + 10000
  236. if xp > 40000:
  237.     level + 1
  238.     money + 15000
  239. if xp > 50000:
  240.     level + 1
  241.     money + 20000
  242. if xp > 60000:
  243.     level + 1
  244.     money + 25000
  245. if xp > 70000:
  246.     level + 1
  247.     money + 30000
  248. if xp > 80000:
  249.     level + 1
  250.     money + 35000
  251. if xp > 90000:
  252.     level + 1
  253.     money + 40000
  254. if xp > 100000:
  255.     level + 1
  256.     money + 50000
  257. if xp > 125000:
  258.     level + 1
  259.     money + 75000
  260. if xp > 150000:
  261.     level + 1
  262.     money + 100000
  263. if xp > 175000:
  264.     level + 1
  265.     money + 125000
  266. if xp > 200000:
  267.     level + 1
  268.     money + 200000
  269. if xp > 250000:
  270.     level + 1
  271.     money + 250000
  272. if xp > 300000:
  273.     level + 1
  274.     money + 500000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement