Advertisement
Guest User

Untitled

a guest
Oct 6th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.80 KB | None | 0 0
  1. require 'alien'
  2.  
  3. if alien.platform == "windows" then
  4. kernel32 = alien.load("kernel32.dll")
  5. sleep = kernel32.Sleep
  6. sleep:types{ret="void",abi="stdcall","uint"}
  7. end
  8.  
  9.  
  10.  
  11.  
  12. print("Welcome to the --- Main Menu ---")
  13. print("Type --- an option ---")
  14. print("New Game")
  15. print("Load Game --")
  16. print("Settings --")
  17.  
  18. menuChoice = io.read()
  19.  
  20. if menuChoice == 'NewGame' then
  21.  
  22.  
  23. print("Thank you for starting a new game.")
  24. print("|You have begun your career in a [basement].")
  25. print("|When you have enough money, you may advance to a new location.")
  26. print("|_______________________________________________________________")
  27.  
  28. while true do
  29. print("|Develop game? DevelopGame |")
  30. print("|Research? Research |")
  31. gameChoice = io.read()
  32.  
  33.  
  34. if gameChoice == 'DevelopGame' then
  35.  
  36. --GENRES
  37. print("Pick from your available genres: ACTION RPG SIM")
  38.  
  39.  
  40. genreChoice = io.read()
  41.  
  42. if genreChoice == 'ACTION' then
  43. genre = "[ACTION]"
  44. genrel = ACTION
  45.  
  46. elseif genreChoice == 'RPG' then
  47. genre = "[RPG]"
  48. genrel = RPG
  49.  
  50. elseif genreChoice == 'SIM' then
  51. genre = "[SIM]"
  52. genrel = SIM
  53.  
  54. end
  55.  
  56. io.write("You have selected ")
  57. print(genre)
  58.  
  59.  
  60.  
  61.  
  62.  
  63. money = 5000
  64. io.write("Deducted [100] dollars for stage 1. ")
  65.  
  66. money = money - 100
  67.  
  68. io.write(money)
  69. print(" dollars remaining.")
  70.  
  71. --LANGUAGE
  72. print("Now choose the language your game will be programmed in.")
  73. print("[Java - 8 months] [Basic - 3 months] Pearl, Ruby, C++, Python, and others coming soon.")
  74. progLang = io.read()
  75.  
  76. if progLang == 'Java' then
  77. lang = "[JAVA]"
  78. langl = JAVA
  79. sleep(8000)
  80. money = money - 400
  81. print("Deducted [400] dollars, to learn Java.")
  82. elseif progLang == 'Basic' then
  83. lang = "[BASIC]"
  84. langl = BASIC
  85. sleep(3000)
  86. end
  87.  
  88. io.write("You have chosen to program your game in the language ")
  89. print(lang)
  90.  
  91. io.write("Deducted [100] dollars for stage 2. ")
  92.  
  93. money = money - 100
  94.  
  95. io.write(money)
  96. print(" dollars remaining.")
  97. print("Starting stage 2 (Preparing Workspace)")
  98. sleep(5000)
  99. print("Finsihed stage 2.")
  100.  
  101.  
  102. --TOPIC
  103. print("Now select your topic: War, Western, Blocks.")
  104. topicChoice = io.read()
  105. if topicChoice == 'War' then
  106. topic = "[War]"
  107. topicl = WAR
  108. elseif topicChoice == 'Western' then
  109. topic = "[Western]"
  110. topicl = WESTERN
  111. elseif topicChoice == 'Blocks' then
  112. topic = "[Blocks]"
  113. topicl = BLOCKS
  114. end
  115.  
  116. io.write("The topic for your game will be ")
  117. print(topic)
  118.  
  119. io.write("Deducted [300] dollars for stage 3. ")
  120.  
  121. money = money - 300
  122.  
  123. io.write(money)
  124. print(" dollars remaining.")
  125.  
  126. print("Finally, you can name your game. Type a name.")
  127. gameName = io.read()
  128. io.write(gameName)
  129. print(" has been released to the public, reviews will be in shortly.")
  130. sleep(5000)
  131. --REVIEW PROCESS
  132. if genrel == RPG and langl == BASIC and topicl == WAR then
  133. review = math.random(2, 5)
  134. review2 = math.random(2, 5)
  135. review3 = math.random(2, 3)
  136. money = money + 300
  137. print("You have earned a total of $300 dollars from your game. Overall not many people enjoyed the game.")
  138. elseif genrel == RPG and langl == BASIC and topicl == "WESTERN" then
  139. review = math.random(7, 9)
  140. review2 = math.random(4, 9)
  141. review3 = math.random(5, 8)
  142. money = money + 400
  143. print("You have earned a total of $300 dollars from your game. The game recieved mixed reviews.")
  144. elseif genrel == RPG and langl == BASIC and topicl == BLOCKS then
  145. review = math.random(1, 2)
  146. review2 = math.random(1, 3)
  147. review3 = math.random(1, 3)
  148. money = money + 100
  149. print("You have earned a total of $100 dollars from your game. Overall it was disliked by most people.")
  150. elseif genrel == ACTION and langl == BASIC and topicl == WAR then
  151. review = math.random(5, 9)
  152. review2 = math.random(7, 9)
  153. review3 = math.random(8, 9)
  154. money = money + 700
  155. print("You have earned a total of $700 dollars from your game.")
  156. elseif genrel == ACTION and langl == BASIC and topicl == WESTERN then
  157. review = math.random(8, 10)
  158. review2 = math.random(8, 10)
  159. review3 = math.random(8, 10)
  160. money = money + 700
  161. print("You have earned a total of $700 dollars from your game. This is a great combination and was played by many!")
  162. elseif genrel == ACTION and langl == BASIC and topicl == BLOCKS then
  163. review = math.random(4, 7)
  164. review2 = math.random(3, 5)
  165. review3 = math.random(5, 6)
  166. money = money + 200
  167. print("You have earned a total of $400 dollars from your game. Overall it was a decent game.")
  168. elseif genrel == SIM and langl == BASIC and topicl == WAR then
  169. review = math.random(6, 9)
  170. review2 = math.random(6, 9)
  171. review3 = math.random(6, 9)
  172. money = money + 400
  173. print("You have earned a total of 400 dollars from your game. Overall it was a decent game.")
  174. elseif genrel == SIM and langl == BASIC and topicl == WESTERN then
  175. review = math.random(6, 9)
  176. review2 = math.random(6, 9)
  177. review3 = math.random(6, 9)
  178. money = money + 400
  179. print("You have earned a total of 400 dollars from your game. Overall it was an OK game.")
  180. elseif genrel == SIM and langl == BASIC and topicl == BLOCKS then
  181. review = math.random(3, 5)
  182. review2 = math.random(3, 5)
  183. review3 = math.random(2, 7)
  184. money = money + 200
  185. print("You have earned a total of 200 dollars from your game. Overall, there will still people who enjoyed it.")
  186. --JAVA
  187. elseif genrel == RPG and langl == JAVA and topicl == WAR then
  188. review = math.random(5, 8)
  189. review2 = math.random(5, 7)
  190. review3 = math.random(7, 9)
  191. money = money + 450
  192. print("You have earned a total of 450 dollars from your game. People really enjoyed this game!.")
  193. elseif genrel == RPG and langl == JAVA and topicl == WESTERN then
  194. review = math.random(6, 9)
  195. review2 = math.random(7, 9)
  196. review3 = math.random(8, 9)
  197. money = money + 600
  198. print("You have earned a total of 600 dollars from your game. Overall, there will still people who enjoyed it.")
  199. elseif genrel == RPG and langl == JAVA and topicl == BLOCKS then
  200. review = math.random(3, 5)
  201. review2 = math.random(3, 5)
  202. review3 = math.random(2, 7)
  203. money = money + 300
  204. print("You have earned a total of 300 dollars from your game. Overall, there will still people who enjoyed it, but not too many.")
  205. elseif genrel == ACTION and langl == JAVA and topicl == WAR then
  206. review = math.random(7, 9)
  207. review2 = math.random(7, 9)
  208. review3 = math.random(7, 10)
  209. money = money + 1200
  210. print("You have earned a total of 1200 dollars from your game. People really enjoyed this game!.")
  211. elseif genrel == ACTION and langl == JAVA and topicl == WESTERN then
  212. review = math.random(9, 10)
  213. review2 = math.random(9, 10)
  214. review3 = math.random(9, 10)
  215. money = money + 1600
  216. print("You have earned a total of 1600 dollars from your game. Overall, people loved this game!")
  217. elseif genrel == ACTION and langl == JAVA and topicl == BLOCKS then
  218. review = math.random(4, 8)
  219. review2 = math.random(5, 8)
  220. review3 = math.random(7, 9)
  221. money = money + 500
  222. print("You have earned a total of 500 dollars from your game. Overall, people thought it was a pretty fun game.")
  223. elseif genrel == SIM and langl == JAVA and topicl == WAR then
  224. review = math.random(7, 9)
  225. review2 = math.random(7, 9)
  226. review3 = math.random(7, 10)
  227. money = money + 1500
  228. print("You have earned a total of 1500 dollars from your game. People really enjoyed this game!.")
  229. elseif genrel == SIM and langl == JAVA and topicl == WESTERN then
  230. review = math.random(5, 7)
  231. review2 = math.random(5, 6)
  232. review3 = math.random(3, 5)
  233. money = money + 600
  234. print("You have earned a total of 600 dollars from your game. Overall, people were okay with this game.")
  235. elseif genrel == SIM and langl == JAVA and topicl == BLOCKS then
  236. review = math.random(9, 10)
  237. review2 = math.random(9, 10)
  238. review3 = math.random(8, 10)
  239. money = money + 25000
  240. print("You have earned a total of 25000 dollars from your game. Your game has become one of the most played games on PC today.")
  241. end
  242.  
  243. print(review)
  244. print(review2)
  245. print(review3)
  246.  
  247. io.write("You now have ")
  248. io.write(money)
  249. print(" dollars left.")
  250.  
  251. elseif gameChoice == 'Research' then
  252. print("Function currently missing.")
  253.  
  254. end
  255. end
  256. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement