justync7

jig2 by 3d6

Dec 27th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.77 KB | None | 0 0
  1. function splash()
  2.     term.setBackgroundColor(colors.black)
  3.     term.clear()
  4.     term.setTextColor(colors.red)
  5.     term.setCursorPos(2,2)
  6.     term.setBackgroundColor(colors.red)
  7.     term.write("   ")
  8.     term.setBackgroundColor(colors.black)
  9.     term.write(" ")
  10.     term.setBackgroundColor(colors.red)
  11.     term.write(" ")
  12.     term.setBackgroundColor(colors.black)
  13.     term.write(" ")
  14.     term.setBackgroundColor(colors.red)
  15.     term.write(" ")
  16.     term.setBackgroundColor(colors.black)
  17.     term.write(" ")
  18.     term.setBackgroundColor(colors.red)
  19.     term.write(" ")
  20.     term.setBackgroundColor(colors.black)
  21.     term.write("  ")
  22.     term.setBackgroundColor(colors.red)
  23.     term.write("  ")
  24.     term.setBackgroundColor(colors.black)
  25.     term.write(" Justyn is Gay II: The Happening")
  26. end
  27. splash()print()
  28. function lose()
  29.     term.setTextColor(colors.red)
  30.     textutils.slowPrint("GAME OVER",1)
  31.     os.sleep(1)
  32.     os.shutdown()
  33. end
  34.     term.setTextColor(colors.yellow)
  35.     term.setCursorPos(1,4)textutils.slowPrint("Following the events of the previous game - our heroes have failed to destroy the evil fuckwits behind the DeathTron, and everyone on Earth was killed in one night by its evil terror. Only those who were given the untested cure to the DeathTron's evil rays were saved, and the cure could only be distributed over rednet. This means that everyone on Earth except computercraft players are all dead. Desolate and sparse, they all joined together in Chicago, or died trying. The world currency is now Krist, and it is up to everyone to not die for as long as possible. Most of the team has already been killed. Of the 100 survivors, only 85 actually know how to write anything in Lua. The DeathTron must be stopped from eradicating what little life is left on earth. To do this, it must be hacked. The DeathTron is powered by the OpenComputers mod, so rednet attacks won't work. We need to make a special virus that infects OpenComputers hardware, with access to ComputerCraft hardware alone. This must be done in 30 days, which is how long it takes to recharge the FuckBeam on the DeathTron.",20)
  36. textutils.slowPrint("Now that the 100 survivors are in one place, the Willis Tower, they need to get the power back on so that they can take the electricity elevator all the way up to the observation deck. Any members of the team who are unable to make programs have been reclassed as the lowest social class; the \"Midiots\". The people who only really know how to make door locks and the like are \"Padawans\", and the people who make nice things are the \"Jedi\". Only Zambonie wanted to call the classes Padawans and Jedi, but it kind of stuck anyways. I mean who doesn't want to be a jedi? I guess that really amazing programming skill is kinda comparable to the force. You can do cool shit that makes people amazed and there's also a dark side of Lua which could be evil evil bad things but there isn't really any time for that now because everyone on the fucking planet is dead except for us. It is imperative that we get the power turned on in the Willis tower. If not, all will be lost...",80000)
  37. os.sleep(5)
  38. local midiots = 15
  39. local padawans = 70
  40. local jedi = 15
  41. day = 1
  42. function nextday()
  43.    
  44. --term.clear()
  45.     --term.setCursorPos(1,1)
  46. term.setTextColor(colors.red)
  47. textutils.slowPrint("*** Day "..tostring(day).." ***",3)
  48. day = day + 1
  49. os.sleep(2)
  50. term.setTextColor(colors.cyan)
  51. print(tostring(midiots).." midiots, "..tostring(padawans).." padawans, "..tostring(jedi).." jedi")
  52. term.setTextColor(colors.white)
  53. end
  54. local a = print
  55. day = 1
  56. nextday()
  57. term.setTextColor(colors.lime)
  58. a("When playing, you will be presented with four choices per day. If, on day 30, you do not destroy the DeathTron, you will have lost.")
  59. a("To make a selection, press a number between 1 and 4.")
  60. term.setTextColor(colors.white)
  61. a("1: send 10 midiots to power plant")
  62. a("2: send 10 padawans to power plant")
  63. a("3: send 10 jedi to power plant")
  64. a("4: send 1 jedi to power plant")
  65. function ask()
  66. term.setTextColor(colors.lime)
  67.     while true do
  68.     local a, b = os.pullEvent()
  69.     if a == "char" then
  70.         if b == "1" or b == "2" or b =="3" or b== "4" then
  71.             return tonumber(b)
  72.         end
  73.     end
  74.     end
  75. end
  76. fuck=ask()
  77. if fuck == 1 then
  78.     a("You send 10 midiots to the power plant. The power turns on by sunset, but none of them have returned by the morning...")
  79.     midiots = midiots - 10
  80.     nextday()
  81.     a("1: send 5 midiots to search for the missing midiots")
  82.     a("2: send 5 padawans to search for the missing midiots")
  83.     a("3: send a jedi to search for the missing midiots")
  84.     a("4: leave the midiots for dead and start building")
  85.     shit=ask()
  86.     elseif fuck == 2 then
  87.     a("You send 10 padawans to the power plant. The power turns on and they all return safely by sundown.")
  88.     nextday()
  89.     elseif fuck == 3 then
  90.     a("You send 10 jedi to the power plant. A huge explosion is heard in the distance. There were two survivors.")
  91.     a("Justyn and Lemmmy returned from the plant with third degree burns. They admit that it was both of their faults.")
  92.     jedi = jedi - 8
  93.     nextday()
  94.     a("1: execute them both")
  95.     a("2: lock them away")
  96.     a("3: search for another power plant")
  97.     a("4: hold a funeral for the deceased jedi")
  98.     shit=ask()
  99.     if shit == 1 then
  100.         a("You hold an elaborate lynching, ceremoniously shackling Justyn and Lemmmy and carrying them up the stairs to the roof of the Willis Tower. You have a midiot shove Justyn off the edge. He tries shoving Lemmmy off, but he takes the midiot down with him.")
  101.         jedi = jedi - 2
  102.         midiots = midiots - 1
  103.         nextday()
  104.         a("1: search for another power plant")
  105.         a("2: hold a funeral for the deceased jedi and the midiot")
  106.         a("3: search the building for batteries")
  107.         a("4: step down as a leader, having killed 11 people in a few days")
  108.         justynisgay =ask()
  109.         if justynisgay == 1 then
  110.             a("You send everyone to search for another power plant, with plans to regroup in 3 days. Nobody returns.")
  111.             lose()
  112.         elseif justynisgay == 2 then
  113.             a("You hold an elaborate funeral for the 11 people who died under your orders. The four jedi other than yourself push to overthrow you. Literally off the building.")
  114.             lose()
  115.         elseif justynisgay == 3 then
  116.             a("You search every file cabinet in the building. In a cabinet you find a floppy disk containing full blueprints for the DeathTron, along with instructions to hack it from the outside.")
  117.             nextday()
  118.         a("1: search for another power plant")
  119.         a("2: search for batteries some more")
  120.         a("3: leave the willis tower in search of computers")
  121.         a("4: email the people on the DeathTron asking for peace")
  122.             lll = ask()
  123.             if lll == 1 then
  124.                
  125.             a("You send everyone to search for another power plant, with plans to regroup in 3 days. Nobody returns.")
  126.             lose()
  127.             elseif lll == 2 then
  128.             a("Every room in the building is ransacked for batteries. Eventually everyone gets fed up with your clear lack of planning and leave in search of a power plant, with or without you.")
  129.             lose()
  130.             elseif lll == 3 then
  131.             a("After splitting into four search teams, your team gets hopelessly lost near what is likely lake michigan. Hungry and tired, your followers seem to have lost their morale.")
  132.             day = 27
  133.             jedi = 2
  134.             padawan = 18
  135.             midiots = 5
  136.             nextday()
  137.             a("You starve to death before any other options are presented.")
  138.             lose()
  139.             elseif lll==4 then
  140.                 a("You realize that you don't have any technology to email them with. After suggesting it to the crowd. They lynch you, thinking you may be hiding a pocket computer.")
  141.                 lose()
  142.             end
  143.         elseif justynisgay == 4 then
  144.             a("Your angry followers push you off the building, believing that Justyn and Lemmmy should have lived.")
  145.             lose()
  146.         end
  147.        
  148.         elseif shit == 2 then
  149.         a("You try to lock Justyn and Lemmmy in the underground parking lot of the Willis Tower, but they both gang up on you and kill you, taking your position as leader.")
  150.         lose()
  151.         elseif shit == 3 then
  152.         a("You send everyone out on a search for power plants, with plans to regroup in 3 days. Nobody returns.")
  153.         lose()
  154.         elseif shit == 4 then
  155.         a("You waste an entire day with an opulent funeral. The power suddenly turns on. The jedi Lignum returns from the power plant, with minor burns.")
  156.         jedi = jedi + 1
  157.         nextday()
  158.     end
  159.     elseif fuck == 4 then
  160.     a("You send the jedi Zambonie to the power plant. The power turns on and he returns safely by sundown.")
  161.     nextday()
  162. end
  163. a("1: Start building computers")
  164. a("2: Search the building for computers")
  165. a("3: Search the dumpsters for computers")
  166. a("4: Start building turtles")
  167. s = ask()
  168. if s == 1 then
  169.     a("Your team constructs enough computers for everyone with the materials in the building.")
  170. elseif s == 2 then
  171.     a("Your team finds enough computers for everyone to use. They are all Windows 8.1 though.")
  172. elseif s == 3 then
  173.     a("Your team finds several bad smelling computers. It'll do.")
  174. elseif s == 4 then
  175.     a("Your team builds a bunch of turtles, and begins using them as computers.")
  176.    
  177. end
  178. nextday()
  179. a("1: Start trying to connect to the DeathTron")
  180. a("2: Start making viruses of all sorts")
  181. a("3: Start making weapons")
  182. a("4: Build advanced computers")
  183. s = ask()
  184. if s == 1 then
  185.     a("While connecting, a jedi accidentally shuts down the entire power grid on the DeathTron. It is no longer visible in the night sky.")
  186. elseif s == 2 then
  187.     a("A virus infects all the computers on Earth. Apparently the DeathTron is connected to a station on the surface, because it's completely shut down.")
  188. elseif s == 3 then
  189.     a("Your team, attempting to make a lightsaber, does something wrong and causes a large explosion. The Willis Tower collapses, killing many people.")
  190.     jedi = 2
  191.     padawans = 5
  192.     midiots = 3
  193.     nextday()
  194.    
  195. a("1: Move to a different tower")
  196. a("2: Kill the other jedi in frustration")
  197. a("3: Kill everyone in frustration")
  198. a("4: Kill yourself")
  199. ss=ask()
  200. if ss == 1 then
  201.     a("You move to another tower. 3 of your midiots and 1 of your padawans starve to death.")
  202.     padawans = 4
  203.     midiots = 0
  204.     nextday()
  205.    
  206. a("1: Kill and eat the other jedi")
  207. a("2: Kill and eat a padawan")
  208. a("3: Kill yourself, and let the others eat you")
  209. a("4: Search the tower for food")
  210. s2s=ask()
  211. if s2s == 1 then
  212.     a("3d6, the other jedi, pulls out a fully functional lightsaber, and kills you.")
  213.     lose()
  214. elseif s2s == 2 then
  215.     a("3d6, the other jedi, pulls out a fully functional lightsaber, and kills you. The survivors eat your corpse.")
  216.     lose()
  217. elseif s2s == 3 then
  218.     a("You kill youself. Nobody eats you for fear of being a cannibal.")
  219.     lose()
  220. elseif s2s == 4 then
  221.     a("While searching for food in this Kmart, you starve to death.")
  222.     lose()
  223.  
  224. end
  225.     elseif ss == 2 then
  226.    
  227.     a("3d6, the other jedi, pulls out a fully functional lightsaber, and kills you.")
  228.     lose()
  229.     elseif ss == 3 then
  230.    
  231.     a("3d6, the other jedi, pulls out a fully functional lightsaber, and kills you hoping to protect the few survivors.")
  232.     lose()
  233.     elseif ss == 4 then
  234.     lose()
  235. end
  236. elseif s == 4 then
  237.     a("You take all gold from everyone. The jedi 3d6, who has the most gold, also has a lightsaber, which she uses to remove your head.")
  238.     lose()
  239. end
  240.  
  241. a("All you need to do now is get into space, enter the DeathTron, and destroy it.")
  242. nextday()
  243.  
  244. a("1: Steal a rocket")
  245. a("2: Build a rocket")
  246. a("3: Make lightsabers")
  247. a("4: Assume the world is saved")
  248. function win()
  249. term.setTextColor(colors.purple)
  250. a("Justyn comes out of the closet. YOU WIN!")
  251. os.sleep(14124214)
  252. lose()
  253. end
  254. k = ask()
  255. if k == 1 then
  256. a("You find a fully functional NASA rocket that everyone can use.")
  257. elseif k == 2 then
  258. a("You build a rocket with Galacticraft. It'll have to do.")
  259. elseif k == 3 then
  260. a("You make ".. 1+jedi.." lightsabers, when suddenly, the DeathTron crashes down to earth!")
  261. elseif k == 4 then
  262. lose()
  263. end
  264. if k < 3 then
  265.  
  266. nextday()
  267.  
  268. a("1: Fly to the DeathTron")
  269. a("2: Sacrifice the midiots for good luck")
  270. a("3: Enter creative mode")
  271. a("4: Assume the world is saved")
  272.  
  273. q = ask()
  274. if q == 1 then
  275. a("You take off for the DeathTron. In space your ship inadvertently falls apart into conviniently functional pieces.")
  276. a("You now have a mothership, a fleet of "..midiots.." Y-wings, and "..padawans.." X-wings.")
  277.  
  278. a("A rather cinematic radio communication ensues. Everyone splits into red and yellow teams, and they all say that they're standing by.")
  279. a("The DeathTron surrenders before anything cool happens.")
  280. win()
  281. elseif q == 2 then
  282. a("You kill all the midiots. The bloodbath raises your team's morale, and you take off for the DeathTron.")
  283. nextday()
  284. a("1: Smash into the DeathTron")
  285. a("2: Destroy the DeathTron")
  286. a("3: Infiltrate the DeathTron")
  287. a("4: Return home")
  288. aa = ask()
  289. if aa == 1 then
  290.                 a("You smash into the DeathTron, killing everyone you were hoping to protect.")
  291.                 lose()
  292.                 elseif aa == 2 then
  293.                 a("The jedi (or maybe sith) Zambonie won't allow that. He assassinates you.")
  294.                 lose()
  295.                 elseif aa == 3 then
  296.                 a("You break into the DeathTron and kill everyone with lightsabers you got somewhere.")
  297.                 win()
  298.                 elseif aa == 4 then
  299.                 a("You burn up in the atmosphere.")
  300.                 lose()
  301. end
  302. elseif q == 3 then
  303. a("You realize that you are the server admin and ban everyone on the DeathTron.")
  304. win()
  305. elseif q == 4 then
  306. lose()
  307. end
  308.  
  309. else
  310. team = ""
  311. if jedi > 1 then team = team.."You, " end
  312. if jedi > 2 then team = team.."3d6, " end
  313. if jedi > 3 then team = team.."Zambonie, " end
  314. if jedi > 4 then team = team.."9d9, " end
  315. if jedi > 5 then team = team.."Creator, " end
  316. if jedi > 6 then team = team.."Chervilpaw, " end
  317. if jedi > 7 then team = team.."Valithor, " end
  318. if jedi > 8 then team = team.."EsKreme, " end
  319. if jedi > 9 then team = team.."Lignum, " end
  320. if jedi > 10 then team = team.."Coatrack, " end
  321. if jedi > 11 then team = team.."Oeed, " end
  322. if jedi > 12 then team = team.."Wired, " end
  323. if jedi > 13 then team = team.."Ben, " end
  324. if jedi > 14 then team = team.."Lemmmy, " end
  325. if jedi > 15 then team = team.."Justyn, " end
  326. a(jedi.."and some midiot all have lightsabers. You easily kill every survivor on the DeathTron.")
  327. win()
  328. end
Advertisement
Add Comment
Please, Sign In to add comment