DefeatedPurpose

Love calculator [FREE2USE]

Jul 25th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.67 KB | None | 0 0
  1. use = 1
  2. print("Welcome to the love calculator!")
  3. print("-------------------------------")
  4. print("What is your name?")
  5. print("------------------")
  6. name = io.read()
  7. user = nil
  8. status = nil
  9. if name == "Destiny" then
  10.     status = "Creator"
  11.     user = 1
  12.     elseif name ~= "Destiny" then
  13.     status = "User"
  14.     user = math.random(1,1000)
  15.     end
  16. print("----------")
  17. while true do
  18. print("Hello "..name.."! | Status : ["..status.."] | (User # : "..user..") | Alright let's do this!")
  19. print("--------------------------------")
  20. print("Times this calculator was used : ["..use.."]")
  21. print("-----------------------------------")
  22. print("Type in person 1's name, "..name.."!")
  23. print("------------------------------------")
  24. print("Person 1 : ???")
  25. print("--------------")
  26. p1 = io.read()
  27. print("--------------")
  28. print("Ok "..name.."!")
  29. print("--------------")
  30. print("Person 1 : "..p1.."")
  31. print("-------------------")
  32. print("Alright "..name.."! Now for person 2")
  33. print("------------------------------------")
  34. print("Person 2 : ???")
  35. print("--------------")
  36. p2 = io.read()
  37. print("--------------")
  38. print("Ok "..name.."!")
  39. print("--------------")
  40. print("Person 2 : "..p2.."")
  41. print("-------------------")
  42. p1love = math.random(0, 100)
  43. print("Ok "..name..", Here are the results!")
  44. print("------------------------------------")
  45. p2love = math.random(0, 100)
  46. print(""..p1.."'s love for "..p2.." is "..p1love.."%")
  47. print("---------------------------------------------")
  48. print(""..p2.."'s love for "..p1.." is "..p2love.."%")
  49. print("---------------------------------------------")
  50. print("Couple : "..p1.." x "..p2.."")
  51. print("----------------------------")
  52. p2love = p2love/2
  53. p1love = p1love/2
  54. stat = p1love + p2love
  55. rate = "HOLDER"
  56. if stat < 5 then
  57.     rate = "Worst couple"
  58.     elseif stat < 10 then
  59.     rate = "Not happening"
  60.     elseif stat < 15 then
  61.     rate = "Awful"
  62.     elseif stat < 25 then
  63.     rate = "Really, Really Bad"
  64.     elseif stat < 45 then
  65.     rate = "Bad"
  66.     elseif stat < 50 then
  67.     rate = "Needs a lot of work"
  68.     elseif stat < 75 then
  69.     rate = "You guys are getting there!"
  70.     elseif stat < 85 then
  71.     rate = "Good"
  72.     elseif stat < 100 then
  73.     rate = "Amazing!"
  74.     elseif stat == 100 then
  75.     rate = "PERECTION!"
  76.     end
  77. print("Couple's overall love : "..stat.."%")
  78. print("-----------------------------------")
  79. print("My opinion on this couple is : '"..rate.."'")
  80. print("-------------------------------------------")
  81. print("Made by [Certified Weeb]#6917 on discord.")
  82. print("This calculator uses lua's math.random function")
  83. print("Thusfore, this is not rigged in any way.")
  84. print("----------------------------------------")
  85. use = use + 1
  86. end
Add Comment
Please, Sign In to add comment