Advertisement
-Amy-

TPT'sMod Version 1 Update 1

Mar 27th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.00 KB | None | 0 0
  1.  
  2. --TPT's Mod
  3. --Please use cracker64's script manager
  4. --VER 1.1 UPDATE http://pastebin.com/raw.php?i=jQZ58x68
  5.  
  6. --Version 1.1
  7.  
  8. function DrawHUD()
  9.     --graphics.drawText(6, 6, os.date("%a %b %d, %l:%M:%S %p"), 61, 200, 225, 200)
  10.     graphics.drawText(6, 6, os.date(), 61, 200, 225, 200)
  11.     graphics.drawText(150, 6, "Click CR Tab For Info/Credits", 61, 200, 225, 200)
  12. end
  13.  
  14. --Remove the -- in front of line 8 if you are using OSX or Linux. Then, place -- at start of line 9.
  15.  
  16. tpt.register_step(DrawHUD)
  17.  
  18. --Draws starting texts
  19.  
  20. print("TPT's Mod")
  21. print("Version 1")
  22. print("Update 1")
  23. print("Created by Amy. All elements were reprogrammed and compiled into a single file.")
  24. print("Contact via email or http://powder.co.uk")
  25.  
  26. --TUNG Mod :D
  27.  
  28.  function moo(i, x, y, surround_space, nt)
  29.  if sim.pressure(x/4, y/4)<-7 and sim.partProperty(i, sim.FIELD_LIFE)~=0 and surround_space~=0 then
  30.  sim.partCreate(-1, x+math.random(-3,3), y+math.random(-3,3), elem.DEFAULT_PT_ELEC) end
  31.  end
  32.  tpt.element_func(moo, tpt.el.tung.id, 0)
  33.  
  34. tpt.el.tung.description="Tungsten. Brittle metal with a very high melting point. When sparked under a pressure of -50, emits electrons."
  35.  
  36. --METR Element
  37.  
  38. local METR = elements.allocate("ELEMENT", "METR")
  39. elements.element(elements.ELEMENT_PT_METR, elements.element(elements.DEFAULT_PT_ELEC))
  40. elements.property(elements.ELEMENT_PT_METR, "Name", "METR")
  41. elements.property(elements.ELEMENT_PT_METR, "Description", "Meteors, Explode on impact. Use sparingly.")
  42. elements.property(elements.ELEMENT_PT_METR, "Colour", 0xFF7A0002)
  43. elements.property(elements.ELEMENT_PT_METR, "MenuSection", elem.SC_EXPLOSIVE)
  44. elements.property(elements.ELEMENT_PT_METR, "MenuVisible", 1)
  45. elements.property(elements.ELEMENT_PT_METR, "Weight", 100)
  46. elements.property(elements.ELEMENT_PT_METR, "Temperature", 9999)
  47. local function graphics1(i, colr, colg, colb)
  48.     return 1,0x00010000,255,225,0,210,255,255,255,255
  49. end
  50. tpt.graphics_func(graphics1,METR)
  51.  
  52. local function get_property(prop, x, y)
  53. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  54. return tpt.get_property(prop, x, y)
  55.  end
  56.     return 0
  57.     end
  58.    
  59. math.randomseed(os.time())
  60. function metr_update(i, x, y, s, n)
  61.         if tpt.get_property("tmp",i)==0 then
  62.                 tpt.parts[i].tmp=1
  63.                 randvel=math.random(-20,20)/10
  64.                 tpt.parts[i].vx=randvel
  65.                 tpt.parts[i].vy=math.sqrt(8-(randvel^2))
  66.         end
  67.  
  68.         xvel=tpt.get_property("vx",i)/2
  69.         yvel=tpt.get_property("vy",i)/2
  70.         if yvel <= 0 or math.abs(xvel) > 1 then
  71.                 tpt.delete(i)
  72.         end
  73.  
  74.         xpos=x-xvel
  75.         ypos=y-yvel
  76.         elemtype=get_property("type",xpos,ypos)
  77.        
  78.         if elemtype == 0 then
  79.                 tpt.create(xpos,ypos,"bray")
  80.                 tpt.set_property("temp",5000,xpos,ypos)
  81.         end
  82.         tpt.parts[i].temp=9999
  83.  
  84.         elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  85.         elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  86.         elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  87.         elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  88.         elemtype21=get_property("type",x+xvel,y+yvel)
  89.         if elemtype25 ~= 0 and elemtype25 ~= elements.ELEMENT_PT_METR and elemtype25 ~= tpt.el.bray.id and elemtype25 ~= tpt.el.dmnd.id and elemtype25 ~= tpt.el.void.id then
  90.                 tpt.set_property("type","bomb",i)
  91.                 tpt.set_property("life",0,i)
  92.                 tpt.set_property("tmp",0,i)
  93.         elseif elemtype24 ~= 0 and elemtype24 ~= elements.ELEMENT_PT_METR and elemtype24 ~= tpt.el.bray.id and elemtype24 ~= tpt.el.dmnd.id and elemtype24 ~= tpt.el.void.id then
  94.                 tpt.set_property("type","bomb",i)
  95.                 tpt.set_property("life",0,i)
  96.                 tpt.set_property("tmp",0,i)
  97.         elseif elemtype23 ~= 0 and elemtype23 ~= elements.ELEMENT_PT_METR and elemtype23 ~= tpt.el.bray.id and elemtype23 ~= tpt.el.dmnd.id and elemtype23 ~= tpt.el.void.id then
  98.                 tpt.set_property("type","bomb",i)
  99.                 tpt.set_property("life",0,i)
  100.                 tpt.set_property("tmp",0,i)
  101.         elseif elemtype22 ~= 0 and elemtype22 ~= elements.ELEMENT_PT_METR and elemtype22 ~= tpt.el.bray.id and elemtype22 ~= tpt.el.dmnd.id and elemtype22 ~= tpt.el.void.id then
  102.                 tpt.set_property("type","bomb",i)
  103.                 tpt.set_property("life",0,i)
  104.                 tpt.set_property("tmp",0,i)
  105.         elseif elemtype21 ~= 0 and elemtype21 ~= elements.ELEMENT_PT_METR and elemtype21 ~= tpt.el.bray.id and elemtype21 ~= tpt.el.dmnd.id and elemtype21 ~= tpt.el.void.id then
  106.                 tpt.set_property("type","bomb",i)
  107.                 tpt.set_property("life",0,i)
  108.                 tpt.set_property("tmp",0,i)
  109.         end
  110.                 end
  111.  
  112. tpt.element_func(metr_update, elements.ELEMENT_PT_METR,1)
  113.  
  114. --BMBR Element {Amy}
  115.  
  116. local BMBR = elements.allocate("ELEMENT", "BMBR")
  117. elements.element(elements.ELEMENT_PT_BMBR, elements.element(elements.DEFAULT_PT_ELEC))
  118. elements.property(elements.ELEMENT_PT_BMBR, "Name", "BMBR")
  119. elements.property(elements.ELEMENT_PT_BMBR, "Description", "Right Shooting Bomb.")
  120. elements.property(elements.ELEMENT_PT_BMBR, "Colour", 0xFF31CBD9)
  121. elements.property(elements.ELEMENT_PT_BMBR, "MenuSection", elem.SC_EXPLOSIVE)
  122. elements.property(elements.ELEMENT_PT_BMBR, "MenuVisible", 1)
  123. elements.property(elements.ELEMENT_PT_BMBR, "Weight", 100)
  124. elements.property(elements.ELEMENT_PT_BMBR, "Temperature", 9999)
  125. local function graphics1(i, colr, colg, colb)
  126.     return 1,0x00010000,255,225,0,210,255,255,255,255
  127. end
  128. tpt.graphics_func(graphics1,BMBR)
  129.  
  130. local function get_property(prop, x, y)
  131. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  132. return tpt.get_property(prop, x, y)
  133.  end
  134.     return 0
  135.     end
  136.    
  137. math.randomseed(os.time())
  138. function BMBR_update(i, x, y, s, n)
  139.         if tpt.get_property("tmp",i)==0 then
  140.                 tpt.parts[i].tmp=1
  141.                 --randvel=math.random(-20,20)/10
  142.                 tpt.parts[i].vx=3
  143.                 tpt.parts[i].vy=0
  144.         end
  145.  
  146.         xvel=3
  147.         yvel=0
  148.         if math.abs(xvel) < 1 then
  149.                 tpt.delete(i)
  150.         end
  151.  
  152.         xpos=x-xvel
  153.         ypos=y-yvel
  154.         elemtype=get_property("type",xpos,ypos)
  155.        
  156.         if elemtype == 0 then
  157.                 tpt.create(xpos,ypos,"bray")
  158.                 tpt.set_property("temp",5000,xpos,ypos)
  159.         end
  160.         tpt.parts[i].temp=9999
  161.  
  162.         elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  163.         elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  164.         elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  165.         elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  166.         elemtype21=get_property("type",x+xvel,y+yvel)
  167.         if elemtype25 ~= 0 and elemtype25 ~= elements.ELEMENT_PT_BMBR and elemtype25 ~= tpt.el.bray.id and elemtype25 ~= tpt.el.dmnd.id and elemtype25 ~= tpt.el.void.id then
  168.                 tpt.set_property("type","bomb",i)
  169.                 tpt.set_property("life",0,i)
  170.                 tpt.set_property("tmp",0,i)
  171.         elseif elemtype24 ~= 0 and elemtype24 ~= elements.ELEMENT_PT_BMBR and elemtype24 ~= tpt.el.bray.id and elemtype24 ~= tpt.el.dmnd.id and elemtype24 ~= tpt.el.void.id then
  172.                 tpt.set_property("type","bomb",i)
  173.                 tpt.set_property("life",0,i)
  174.                 tpt.set_property("tmp",0,i)
  175.         elseif elemtype23 ~= 0 and elemtype23 ~= elements.ELEMENT_PT_BMBR and elemtype23 ~= tpt.el.bray.id and elemtype23 ~= tpt.el.dmnd.id and elemtype23 ~= tpt.el.void.id then
  176.                 tpt.set_property("type","bomb",i)
  177.                 tpt.set_property("life",0,i)
  178.                 tpt.set_property("tmp",0,i)
  179.         elseif elemtype22 ~= 0 and elemtype22 ~= elements.ELEMENT_PT_BMBR and elemtype22 ~= tpt.el.bray.id and elemtype22 ~= tpt.el.dmnd.id and elemtype22 ~= tpt.el.void.id then
  180.                 tpt.set_property("type","bomb",i)
  181.                 tpt.set_property("life",0,i)
  182.                 tpt.set_property("tmp",0,i)
  183.         elseif elemtype21 ~= 0 and elemtype21 ~= elements.ELEMENT_PT_BMBR and elemtype21 ~= tpt.el.bray.id and elemtype21 ~= tpt.el.dmnd.id and elemtype21 ~= tpt.el.void.id then
  184.                 tpt.set_property("type","bomb",i)
  185.                 tpt.set_property("life",0,i)
  186.                 tpt.set_property("tmp",0,i)
  187.         end
  188.                 end
  189.  
  190. tpt.element_func(BMBR_update, elements.ELEMENT_PT_BMBR,1)
  191.  
  192. --LBR Element {Amy}
  193.  
  194. local BMBL = elements.allocate("ELEMENT", "BMBL")
  195. elements.element(elements.ELEMENT_PT_BMBL, elements.element(elements.DEFAULT_PT_ELEC))
  196. elements.property(elements.ELEMENT_PT_BMBL, "Name", "BMBL")
  197. elements.property(elements.ELEMENT_PT_BMBL, "Description", "Left Shooting Bomb.")
  198. elements.property(elements.ELEMENT_PT_BMBL, "Colour", 0xFF20878E)
  199. elements.property(elements.ELEMENT_PT_BMBL, "MenuSection", elem.SC_EXPLOSIVE)
  200. elements.property(elements.ELEMENT_PT_BMBL, "MenuVisible", 1)
  201. elements.property(elements.ELEMENT_PT_BMBL, "Weight", 100)
  202. elements.property(elements.ELEMENT_PT_BMBL, "Temperature", 9999)
  203. local function graphics1(i, colr, colg, colb)
  204.     return 1,0x00010000,255,225,0,210,255,255,255,255
  205. end
  206. tpt.graphics_func(graphics1,BMBL)
  207.  
  208. local function get_property(prop, x, y)
  209. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  210. return tpt.get_property(prop, x, y)
  211.  end
  212.     return 0
  213.     end
  214.    
  215. math.randomseed(os.time())
  216. function BMBL_update(i, x, y, s, n)
  217.         if tpt.get_property("tmp",i)==0 then
  218.                 tpt.parts[i].tmp=1
  219.                 --randvel=math.random(-20,20)/10
  220.                 tpt.parts[i].vx=-3
  221.                 tpt.parts[i].vy=0
  222.         end
  223.  
  224.         xvel=-3
  225.         yvel=0
  226.         if math.abs(xvel) < 1 then
  227.                 tpt.delete(i)
  228.         end
  229.  
  230.         xpos=x-xvel
  231.         ypos=y-yvel
  232.         elemtype=get_property("type",xpos,ypos)
  233.        
  234.         if elemtype == 0 then
  235.                 tpt.create(xpos,ypos,"bray")
  236.                 tpt.set_property("temp",5000,xpos,ypos)
  237.         end
  238.         tpt.parts[i].temp=9999
  239.  
  240.         elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  241.         elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  242.         elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  243.         elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  244.         elemtype21=get_property("type",x+xvel,y+yvel)
  245.         if elemtype25 ~= 0 and elemtype25 ~= elements.ELEMENT_PT_BMBL and elemtype25 ~= tpt.el.bray.id and elemtype25 ~= tpt.el.dmnd.id and elemtype25 ~= tpt.el.void.id then
  246.                 tpt.set_property("type","bomb",i)
  247.                 tpt.set_property("life",0,i)
  248.                 tpt.set_property("tmp",0,i)
  249.         elseif elemtype24 ~= 0 and elemtype24 ~= elements.ELEMENT_PT_BMBL and elemtype24 ~= tpt.el.bray.id and elemtype24 ~= tpt.el.dmnd.id and elemtype24 ~= tpt.el.void.id then
  250.                 tpt.set_property("type","bomb",i)
  251.                 tpt.set_property("life",0,i)
  252.                 tpt.set_property("tmp",0,i)
  253.         elseif elemtype23 ~= 0 and elemtype23 ~= elements.ELEMENT_PT_BMBL and elemtype23 ~= tpt.el.bray.id and elemtype23 ~= tpt.el.dmnd.id and elemtype23 ~= tpt.el.void.id then
  254.                 tpt.set_property("type","bomb",i)
  255.                 tpt.set_property("life",0,i)
  256.                 tpt.set_property("tmp",0,i)
  257.         elseif elemtype22 ~= 0 and elemtype22 ~= elements.ELEMENT_PT_BMBL and elemtype22 ~= tpt.el.bray.id and elemtype22 ~= tpt.el.dmnd.id and elemtype22 ~= tpt.el.void.id then
  258.                 tpt.set_property("type","bomb",i)
  259.                 tpt.set_property("life",0,i)
  260.                 tpt.set_property("tmp",0,i)
  261.         elseif elemtype21 ~= 0 and elemtype21 ~= elements.ELEMENT_PT_BMBL and elemtype21 ~= tpt.el.bray.id and elemtype21 ~= tpt.el.dmnd.id and elemtype21 ~= tpt.el.void.id then
  262.                 tpt.set_property("type","bomb",i)
  263.                 tpt.set_property("life",0,i)
  264.                 tpt.set_property("tmp",0,i)
  265.         end
  266.                 end
  267.  
  268. tpt.element_func(BMBL_update, elements.ELEMENT_PT_BMBL,1)
  269.  
  270. --PLSM Copy For Explosives {Amy}
  271.  
  272. local amy1 = elements.allocate("AMY", "IGNT")
  273. elements.element(elements.AMY_PT_IGNT, elements.element(elements.DEFAULT_PT_GAS))
  274. elements.property(elements.AMY_PT_IGNT, "Name", "IGNT")
  275. elements.property(elements.AMY_PT_IGNT, "Description", "Igniter. Use to ignite explosives, hotter than fire.")
  276. elements.property(elements.AMY_PT_IGNT, "Colour", 0xFFE52961)
  277. elements.property(elements.AMY_PT_IGNT, "MenuSection", 5)
  278. elements.property(elements.AMY_PT_IGNT, "MenuVisible", 1)
  279. elements.property(elements.AMY_PT_IGNT, "Temperature", 5000)
  280. elements.property(elements.AMY_PT_IGNT, "Weight", 0)
  281. elements.property(elements.AMY_PT_IGNT, "Flammable", 1)
  282. elements.property(elements.AMY_PT_IGNT, "Explosive", 0)
  283.  
  284. --BPDR Element
  285.  
  286. local element1 = elements.allocate("FEYNMAN", "BPDR")
  287. elements.element(elements.FEYNMAN_PT_BPDR, elements.element(elements.DEFAULT_PT_BCOL))
  288.  elements.property(elements.FEYNMAN_PT_BPDR, "Name", "BPDR")
  289.  elements.property(elements.FEYNMAN_PT_BPDR, "Description", "Black Powder, Very explosive.")
  290.  elements.property(elements.FEYNMAN_PT_BPDR, "Colour", 0x353535)
  291.  elements.property(elements.FEYNMAN_PT_BPDR, "MenuSection", 5)
  292.  elements.property(elements.FEYNMAN_PT_BPDR, "Gravity", .5)
  293.  elements.property(elements.FEYNMAN_PT_BPDR, "Flammable", 10000)
  294.  elements.property(elements.FEYNMAN_PT_BPDR, "Explosive", 1)
  295.  elements.property(elements.FEYNMAN_PT_BPDR, "Loss", 1)
  296.  elements.property(elements.FEYNMAN_PT_BPDR, "AirLoss", .5)
  297.  elements.property(elements.FEYNMAN_PT_BPDR, "AirDrag", .01)
  298.  elements.property(elements.FEYNMAN_PT_BPDR, "Advection", .01)
  299.  elements.property(elements.FEYNMAN_PT_BPDR, "Weight", 0)
  300.  elements.property(elements.FEYNMAN_PT_BPDR, "Diffusion", 0)
  301.  
  302. --Clouds Mod
  303.  
  304. local a = elements.allocate("MOD", "UCLD")
  305. elements.element(elements.MOD_PT_UCLD, elements.element(elements.DEFAULT_PT_HYGN))
  306. elements.property(elements.MOD_PT_UCLD, "Name", "UCLD")
  307. elements.property(elements.MOD_PT_UCLD, "Description", "Uranium Cloud. First type of radioactive cloud.")
  308. elements.property(elements.MOD_PT_UCLD, "Colour", 0xAAAAFF)
  309. elements.property(elements.MOD_PT_UCLD, "MenuSection", 10)
  310. elements.property(elements.MOD_PT_UCLD, "Gravity", 0)
  311. elements.property(elements.MOD_PT_UCLD, "Explosive", 0)
  312. elements.property(elements.MOD_PT_UCLD, "Weight", 0)
  313. elements.property(elements.MOD_PT_UCLD, "Diffusion", 1)
  314. elements.property(elements.MOD_PT_UCLD, "Hardness", 0)
  315. elements.property(elements.MOD_PT_UCLD, "Flammable", 0)
  316. elements.property(elements.MOD_PT_UCLD, "AirDrag", 0.01)
  317. function rain(i,x,y,s,n)
  318.         if math.random(1,500) < 5 then
  319.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'uran')
  320.     end
  321.         if math.random(1,500) == 20 then
  322.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'boyl')
  323.     end
  324. end
  325. tpt.element_func(rain,a)
  326.  
  327. local b = elements.allocate("MOD2", "RACD")
  328. elements.element(elements.MOD2_PT_RACD, elements.element(elements.DEFAULT_PT_HYGN))
  329. elements.property(elements.MOD2_PT_RACD, "Name", "RACD")
  330. elements.property(elements.MOD2_PT_RACD, "Description", "Rain Cloud.")
  331. elements.property(elements.MOD2_PT_RACD, "Colour", 0xA9ACB6)
  332. elements.property(elements.MOD2_PT_RACD, "MenuSection", 6)
  333. elements.property(elements.MOD2_PT_RACD, "Gravity", 0)
  334. elements.property(elements.MOD2_PT_RACD, "Explosive", 0)
  335. elements.property(elements.MOD2_PT_RACD, "Weight", 0)
  336. elements.property(elements.MOD2_PT_RACD, "Diffusion", 1)
  337. elements.property(elements.MOD2_PT_RACD, "Hardness", 0)
  338. elements.property(elements.MOD2_PT_RACD, "Flammable", 0)
  339. elements.property(elements.MOD2_PT_RACD, "AirDrag", 0.01)
  340. elements.property(elements.MOD2_PT_RACD, "LowTemperature", 273.15)
  341. elements.property(elements.MOD2_PT_RACD, "LowTemperatureTransition", "MOD_PT_SCLD")
  342. elements.property(elements.MOD2_PT_RACD, "Temperature", 295.15)
  343.  
  344. function rain(i,x,y,s,n)
  345.     if math.random(1,500) == 20 then
  346.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  347.    
  348.         end    
  349. end
  350. tpt.element_func(rain,b)
  351.  
  352. local c = elements.allocate("MOD3", "SCLD")
  353. elements.element(elements.MOD3_PT_SCLD, elements.element(elements.DEFAULT_PT_HYGN))
  354. elements.property(elements.MOD3_PT_SCLD, "Name", "SCLD")
  355. elements.property(elements.MOD3_PT_SCLD, "Description", "Snow Cloud.")
  356. elements.property(elements.MOD3_PT_SCLD, "Colour", 0x8F8FBC)
  357. elements.property(elements.MOD3_PT_SCLD, "MenuSection", 6)
  358. elements.property(elements.MOD3_PT_SCLD, "Gravity", 0)
  359. elements.property(elements.MOD3_PT_SCLD, "Explosive", 0)
  360. elements.property(elements.MOD3_PT_SCLD, "Weight", 0)
  361. elements.property(elements.MOD3_PT_SCLD, "Diffusion", 1)
  362. elements.property(elements.MOD3_PT_SCLD, "Hardness", 0)
  363. elements.property(elements.MOD3_PT_SCLD, "Flammable", 0)
  364. elements.property(elements.MOD3_PT_SCLD, "AirDrag", 0.01)
  365. elements.property(elements.MOD3_PT_SCLD, "HighTemperature", 273.15)
  366. elements.property(elements.MOD3_PT_SCLD, "HighTemperatureTransition", "MOD_PT_RACD")
  367. elements.property(elements.MOD3_PT_SCLD, "Temperature", 263.15 )
  368. elements.property(elements.MOD3_PT_SCLD, "LowTemperature", 245.15)
  369. elements.property(elements.MOD3_PT_SCLD, "LowTemperatureTransition", "MOD_PT_ICE")
  370.  
  371. function rain(i,x,y,s,n)
  372.     if math.random(1,500) == 20 then
  373.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'snow')
  374.     end
  375. end    
  376. tpt.element_func(rain,c)
  377.  
  378. local d = elements.allocate("MOD4", "DRCD")
  379. elements.element(elements.MOD4_PT_DRCD, elements.element(elements.DEFAULT_PT_HYGN))
  380. elements.property(elements.MOD4_PT_DRCD, "Name", "DRCD")
  381. elements.property(elements.MOD4_PT_DRCD, "Description", "Distilled Rain Cloud.")
  382. elements.property(elements.MOD4_PT_DRCD, "Colour", 0x506987)
  383. elements.property(elements.MOD4_PT_DRCD, "MenuSection", 6)
  384. elements.property(elements.MOD4_PT_DRCD, "Gravity", 0)
  385. elements.property(elements.MOD4_PT_DRCD, "Explosive", 0)
  386. elements.property(elements.MOD4_PT_DRCD, "Weight", 0)
  387. elements.property(elements.MOD4_PT_DRCD, "Diffusion", 1)
  388. elements.property(elements.MOD4_PT_DRCD, "Hardness", 0)
  389. elements.property(elements.MOD4_PT_DRCD, "Flammable", 0)
  390. elements.property(elements.MOD4_PT_DRCD, "AirDrag", 0.01)
  391. elements.property(elements.MOD4_PT_DRCD, "LowTemperature", 273.15)
  392. elements.property(elements.MOD4_PT_DRCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  393. elements.property(elements.MOD4_PT_DRCD, "Temperature", 295.15)
  394.  
  395. function rain(i,x,y,s,n)
  396.     if math.random(1,500) == 20 then
  397.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'dstw')  
  398.         end    
  399. end
  400. tpt.element_func(rain,d)
  401.  
  402. local e = elements.allocate("MOD5", "SRCD")
  403. elements.element(elements.MOD5_PT_SRCD, elements.element(elements.DEFAULT_PT_HYGN))
  404. elements.property(elements.MOD5_PT_SRCD, "Name", "SRCD")
  405. elements.property(elements.MOD5_PT_SRCD, "Description", "Saltwater Rain Cloud.")
  406. elements.property(elements.MOD5_PT_SRCD, "Colour", 0x380474)
  407. elements.property(elements.MOD5_PT_SRCD, "MenuSection", 6)
  408. elements.property(elements.MOD5_PT_SRCD, "MenuVisible", 0)
  409. elements.property(elements.MOD5_PT_SRCD, "Gravity", 0)
  410. elements.property(elements.MOD5_PT_SRCD, "Explosive", 0)
  411. elements.property(elements.MOD5_PT_SRCD, "Weight", 0)
  412. elements.property(elements.MOD5_PT_SRCD, "Diffusion", 1)
  413. elements.property(elements.MOD5_PT_SRCD, "Hardness", 0)
  414. elements.property(elements.MOD5_PT_SRCD, "Flammable", 0)
  415. elements.property(elements.MOD5_PT_SRCD, "AirDrag", 0.01)
  416. elements.property(elements.MOD5_PT_SRCD, "LowTemperature", 273.15)
  417. elements.property(elements.MOD5_PT_SRCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  418. elements.property(elements.MOD5_PT_SRCD, "Temperature", 295.15)
  419.  
  420. function rain(i,x,y,s,n)
  421.     if math.random(1,500) == 20 then
  422.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'sltw')
  423.         end    
  424. end
  425. tpt.element_func(rain,e)
  426.  
  427. local f = elements.allocate("MOD6", "TSCD")
  428. elements.element(elements.MOD6_PT_TSCD, elements.element(elements.DEFAULT_PT_HYGN))
  429. elements.property(elements.MOD6_PT_TSCD, "Name", "TSCD")
  430. elements.property(elements.MOD6_PT_TSCD, "Description", "Thunderstorm Cloud.")
  431. elements.property(elements.MOD6_PT_TSCD, "Colour", 0x302B54)
  432. elements.property(elements.MOD6_PT_TSCD, "MenuSection", 6)
  433. elements.property(elements.MOD6_PT_TSCD, "MenuVisible", 0)
  434. elements.property(elements.MOD6_PT_TSCD, "Gravity", 0)
  435. elements.property(elements.MOD6_PT_TSCD, "Explosive", 0)
  436. elements.property(elements.MOD6_PT_TSCD, "Weight", 0)
  437. elements.property(elements.MOD6_PT_TSCD, "Diffusion", 1)
  438. elements.property(elements.MOD6_PT_TSCD, "Hardness", 0)
  439. elements.property(elements.MOD6_PT_TSCD, "Flammable", 0)
  440. elements.property(elements.MOD6_PT_TSCD, "AirDrag", 0.01)
  441. elements.property(elements.MOD6_PT_TSCD, "LowTemperature", 273.15)
  442. elements.property(elements.MOD6_PT_TSCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  443. elements.property(elements.MOD6_PT_TSCD, "Temperature", 303.15)
  444.  
  445. function rain(i,x,y,s,n)
  446.     if math.random(1,500) == 20 then
  447.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  448.         end    
  449. end
  450. tpt.element_func(rain,f)
  451.  
  452. --Explosives
  453.  
  454. --The Highly Explosive mod for Powder Toy
  455.  
  456. local function explosion(x, y, s)
  457.     for px = -1, 1 do
  458.         for py = -1, 1 do
  459.             tpt.create(x + px, y - py, "PLSM")
  460.             local pressure = sim.pressure((x + px) / 4.0, (y + py) / 4.0)
  461.             sim.pressure((x + px) / 4.0, (y + py) / 4.0, pressure + s * 10)
  462.             sim.velocityX((x + px) / 4.0, y / 4.0, px * s)
  463.             sim.velocityY((x + px) / 4.0, (y - py) / 4.0, -py * s)
  464.  
  465.         end
  466.     end
  467. end
  468.  
  469. local WBOMB = elements.allocate("MEXPL", "HELD")
  470. elements.element(elements.MEXPL_PT_HELD, elements.element(elements.DEFAULT_PT_GLOW))
  471. elements.property(elements.MEXPL_PT_HELD, "Color", "0xFFFEAF27")
  472. elements.property(elements.MEXPL_PT_HELD, "Name", "HELD")
  473. elements.property(elements.MEXPL_PT_HELD, "Description", "Highly Explosive Liquid.")
  474. elements.property(elements.MEXPL_PT_HELD, "MenuVisible", 1)
  475. elements.property(elements.MEXPL_PT_HELD, "MenuSection", 5)
  476. elements.property(elements.MEXPL_PT_HELD, "Advection", 0.1)
  477. elements.property(elements.MEXPL_PT_HELD, "AirDrag", 0.1)
  478. elements.property(elements.MEXPL_PT_HELD, "AirLoss", 0.9)
  479. elements.property(elements.MEXPL_PT_HELD, "Loss", 0.9)
  480. elements.property(elements.MEXPL_PT_HELD, "Falldown", 2)
  481. elements.property(elements.MEXPL_PT_HELD, "Hardness", 0.8)
  482. elements.property(elements.MEXPL_PT_HELD, "Weight", 12)
  483. elements.property(elements.MEXPL_PT_HELD, "Temperature", 340)
  484. elements.property(elements.MEXPL_PT_HELD, "HeatConduct", 100)
  485. elements.property(elements.MEXPL_PT_HELD, "State", 2)
  486. elements.property(elements.MEXPL_PT_HELD, "Properties", 2)
  487.  
  488. local function HELD_update(i, x, y, s, n)
  489.     local r = 1
  490.     if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  491.  
  492.         explosion(x, y, 1)
  493.         tpt.delete(i)
  494.     elseif tpt.get_property("temp", i) >= 450 then
  495.         explosion(x, y, 1)
  496.         tpt.delete(i)
  497.     end
  498. end
  499.  
  500. tpt.element_func(HELD_update, elements.MEXPL_PT_HELD)
  501.  
  502. local SBOMB = elements.allocate("MEXPL", "HESD")
  503. elements.element(elements.MEXPL_PT_HESD, elements.element(elements.DEFAULT_PT_BANG))
  504. elements.property(elements.MEXPL_PT_HESD, "Color", "0xFFFF5000")
  505. elements.property(elements.MEXPL_PT_HESD, "Name", "HESD")
  506. elements.property(elements.MEXPL_PT_HESD, "Description", "Highly Explosive Solid.")
  507. elements.property(elements.MEXPL_PT_HESD, "MenuVisible", 1)
  508. elements.property(elements.MEXPL_PT_HESD, "MenuSection", 5)
  509. elements.property(elements.MEXPL_PT_HESD, "Hardness", 0.8)
  510. elements.property(elements.MEXPL_PT_HESD, "Temperature", 293)
  511. elements.property(elements.MEXPL_PT_HESD, "HeatConduct", 100)
  512. elements.property(elements.MEXPL_PT_HESD, "Falldown", 0)
  513. elements.property(elements.MEXPL_PT_HESD, "State", 1)
  514. elements.property(elements.MEXPL_PT_HESD, "Properties", 4)
  515.  
  516. local function HESD_update(i, x, y, s, n)
  517.     local r = 1
  518.     if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  519.  
  520.         explosion(x, y, 1)
  521.         tpt.delete(i)
  522.     elseif tpt.get_property("temp", i) >= 450 then
  523.         explosion(x, y, 1)
  524.         tpt.delete(i)
  525.     end
  526. end
  527.  
  528. tpt.element_func(HESD_update, elements.MEXPL_PT_HESD)
  529.  
  530. local GBOMB = elements.allocate("MEXPL", "HEGS")
  531. elements.element(elements.MEXPL_PT_HEGS, elements.element(elements.DEFAULT_PT_GAS))
  532. elements.property(elements.MEXPL_PT_HEGS, "Color", "0xFFEBFE5D")
  533. elements.property(elements.MEXPL_PT_HEGS, "Name", "HEGS")
  534. elements.property(elements.MEXPL_PT_HEGS, "Description", "Highly Explosive Gas.")
  535. elements.property(elements.MEXPL_PT_HEGS, "MenuVisible", 1)
  536. elements.property(elements.MEXPL_PT_HEGS, "MenuSection", 5)
  537. elements.property(elements.MEXPL_PT_HEGS, "Hardness", 0.8)
  538. elements.property(elements.MEXPL_PT_HEGS, "Temperature", 390)
  539. elements.property(elements.MEXPL_PT_HEGS, "HeatConduct", 100)
  540. elements.property(elements.MEXPL_PT_HEGS, "Falldown", 0)
  541. elements.property(elements.MEXPL_PT_HEGS, "Diffusion", 0.5)
  542. elements.property(elements.MEXPL_PT_HEGS, "State", 3)
  543. --elements.property(elements.MEXPL_PT_HEGS, "Properties", 3)
  544.  
  545. local function HEGS_update(i, x, y, s, n)
  546.     local r = 1
  547.     if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  548.  
  549.         explosion(x, y, 1)
  550.         tpt.delete(i)
  551.     elseif tpt.get_property("temp", i) >= 450 then
  552.         explosion(x, y, 1)
  553.         tpt.delete(i)
  554.     end
  555. end
  556.  
  557. tpt.element_func(HEGS_update, elements.MEXPL_PT_HEGS)
  558.  
  559. local PBOMB = elements.allocate("MEXPL", "HEPR")
  560. elements.element(elements.MEXPL_PT_HEPR, elements.element(elements.DEFAULT_PT_DUST))
  561. elements.property(elements.MEXPL_PT_HEPR, "Color", "0xFFFFFF00")
  562. elements.property(elements.MEXPL_PT_HEPR, "Name", "HEPR")
  563. elements.property(elements.MEXPL_PT_HEPR, "Description", "Highly Explosive Powder.")
  564. elements.property(elements.MEXPL_PT_HEPR, "MenuVisible", 1)
  565. elements.property(elements.MEXPL_PT_HEPR, "MenuSection", 5)
  566. elements.property(elements.MEXPL_PT_HEPR, "Hardness", 0.8)
  567. elements.property(elements.MEXPL_PT_HEPR, "Temperature", 293)
  568. elements.property(elements.MEXPL_PT_HEPR, "HeatConduct", 100)
  569. elements.property(elements.MEXPL_PT_HEPR, "Falldown", 1)
  570. elements.property(elements.MEXPL_PT_HELD, "Advection", 0.1)
  571. elements.property(elements.MEXPL_PT_HELD, "AirDrag", 0.1)
  572. elements.property(elements.MEXPL_PT_HELD, "AirLoss", 0.9)
  573. elements.property(elements.MEXPL_PT_HELD, "Loss", 0.9)
  574. elements.property(elements.MEXPL_PT_HELD, "Hardness", 0.8)
  575. elements.property(elements.MEXPL_PT_HELD, "Weight", 12)
  576. elements.property(elements.MEXPL_PT_HEPR, "State", 1)
  577. elements.property(elements.MEXPL_PT_HEPR, "Properties", 4)
  578.  
  579. local function HEPR_update(i, x, y, s, n)
  580.     local r = 1
  581.     if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  582.  
  583.         explosion(x, y, 1)
  584.         tpt.delete(i)
  585.     elseif tpt.get_property("temp", i) >= 450 then
  586.         explosion(x, y, 1)
  587.         tpt.delete(i)
  588.     end
  589. end
  590.  
  591. tpt.element_func(HEPR_update, elements.MEXPL_PT_HEPR)
  592.  
  593. elements.property(elements.MEXPL_PT_HESD, "HighTemperature", 327)
  594. elements.property(elements.MEXPL_PT_HESD, "HighTemperatureTransition", elements.MEXPL_PT_HELD)
  595. elements.property(elements.MEXPL_PT_HESD, "HighPressure", 2)
  596. elements.property(elements.MEXPL_PT_HESD, "HighPressureTransition", elements.MEXPL_PT_HEPR)
  597. elements.property(elements.MEXPL_PT_HEPR, "HighTemperature", 326)
  598. elements.property(elements.MEXPL_PT_HEPR, "HighTemperatureTransition", elements.MEXPL_PT_HELD)
  599. elements.property(elements.MEXPL_PT_HEGS, "LowTemperature", 365)
  600. elements.property(elements.MEXPL_PT_HEGS, "LowTemperatureTransition", elements.MEXPL_PT_HELD)
  601. elements.property(elements.MEXPL_PT_HELD, "HighTemperature", 365)
  602. elements.property(elements.MEXPL_PT_HELD, "HighTemperatureTransition", elements.MEXPL_PT_HEGS)
  603. elements.property(elements.MEXPL_PT_HELD, "LowTemperature", 327)
  604. elements.property(elements.MEXPL_PT_HELD, "LowTemperatureTransition", elements.MEXPL_PT_HESD)
  605.  
  606. --"New Elements"
  607.  
  608. local function heat()
  609.         tpt.set_property("temp", 9999, "HETR")
  610.         tpt.set_property("temp", 0, "COLR")
  611. end
  612. tpt.register_step(heat)
  613.  
  614. elements.allocate('YOSHI', 'HETR')
  615. elements.element(elements.YOSHI_PT_HETR, elements.element(elements.DEFAULT_PT_DMND))
  616. elements.property(elements.YOSHI_PT_HETR, 'Name', 'HETR')
  617. elements.property(elements.YOSHI_PT_HETR, 'Description', 'Heats Elements.')
  618. elements.property(elements.YOSHI_PT_HETR, 'Color', '0xFF1111')
  619. elements.property(elements.YOSHI_PT_HETR, 'MenuSection', '2')
  620. elements.property(elements.YOSHI_PT_HETR, 'HeatConduct', '65535')
  621. local g = function(i, x, y, s, n)
  622. --Update Function
  623. end
  624. tpt.element_func(g, tpt.element('HETR'))
  625.  
  626. local function heat()
  627. end
  628. tpt.register_step(heat)
  629.  
  630. elements.allocate('YOSHI', 'COLR')
  631. elements.element(elements.YOSHI_PT_COLR, elements.element(elements.DEFAULT_PT_DMND))
  632. elements.property(elements.YOSHI_PT_COLR, 'Name', 'COLR')
  633. elements.property(elements.YOSHI_PT_COLR, 'Description', 'Cools Elements.')
  634. elements.property(elements.YOSHI_PT_COLR, 'Color', '0x1111FF')
  635. elements.property(elements.YOSHI_PT_COLR, 'MenuSection', '2')
  636. elements.property(elements.YOSHI_PT_COLR, 'HeatConduct', '65535')
  637. local g = function(i, x, y, s, n)
  638. --Update Function
  639. end
  640. tpt.element_func(g, tpt.element('COLR'))
  641.  
  642. elements.allocate('YOSHI', 'HCTD')
  643. elements.element(elements.YOSHI_PT_HCTD, elements.element(elements.DEFAULT_PT_DMND))
  644. elements.property(elements.YOSHI_PT_HCTD, 'Name', 'HCTD')
  645. elements.property(elements.YOSHI_PT_HCTD, 'Description', 'Heat conductor.')
  646. elements.property(elements.YOSHI_PT_HCTD, 'Color', '0x11FF11')
  647. elements.property(elements.YOSHI_PT_HCTD, 'MenuSection', '2')
  648. elements.property(elements.YOSHI_PT_HCTD, 'HeatConduct', '65535')
  649. local g = function(i, x, y, s, n)
  650. --Update Function
  651. end
  652. tpt.element_func(g, tpt.element('HCTD'))
  653.  
  654. local a = elements.allocate("YOSHI", "RCLD")
  655. elements.element(elements.YOSHI_PT_RCLD, elements.element(elements.DEFAULT_PT_HYGN))
  656. elements.property(elements.YOSHI_PT_RCLD, "Name", "RCLD")
  657. elements.property(elements.YOSHI_PT_RCLD, "Description", "Radioactive cloud, Second type.")
  658. elements.property(elements.YOSHI_PT_RCLD, "Colour", 0x11FF22)
  659. elements.property(elements.YOSHI_PT_RCLD, "MenuSection", 10)
  660. elements.property(elements.YOSHI_PT_RCLD, "Gravity", 0)
  661. elements.property(elements.YOSHI_PT_RCLD, "Explosive", 0)
  662. elements.property(elements.YOSHI_PT_RCLD, "Weight", 0)
  663. elements.property(elements.YOSHI_PT_RCLD, "Diffusion", 1)
  664. elements.property(elements.YOSHI_PT_RCLD, "Hardness", 0)
  665. elements.property(elements.YOSHI_PT_RCLD, "Flammable", 100000)
  666. elements.property(elements.YOSHI_PT_RCLD, "AirDrag", 0.01)
  667. function rain(i,x,y,s,n)
  668.         if math.random(1,500) < 5 then
  669.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plut')
  670.     end
  671.         if math.random(1,500) == 20 then
  672.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'uran')
  673.     end
  674.         if math.random(1,500) == 30 then
  675.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'isoz')
  676.     end
  677.         if math.random(1,500) == 40 then
  678.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'deut')
  679.     end
  680.         if math.random(1,500) == 50 then
  681.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bvbr')
  682.     end
  683. end
  684. tpt.element_func(rain,a)
  685.  
  686. local a = elements.allocate("YOSHI", "SULF")
  687. elements.element(elements.YOSHI_PT_SULF, elements.element(elements.DEFAULT_PT_COAL))
  688. elements.property(elements.YOSHI_PT_SULF, "Name", "SULF")
  689. elements.property(elements.YOSHI_PT_SULF, "Description", "Basic Sulphur.")
  690. elements.property(elements.YOSHI_PT_SULF, "Colour", 0xFFFF11)
  691. elements.property(elements.YOSHI_PT_SULF, "MenuSection", 9)
  692. elements.property(elements.YOSHI_PT_SULF, "Gravity", 0)
  693. elements.property(elements.YOSHI_PT_SULF, "Explosive", 0)
  694. elements.property(elements.YOSHI_PT_SULF, "Weight", 10)
  695. elements.property(elements.YOSHI_PT_SULF, "Diffusion", 0)
  696. elements.property(elements.YOSHI_PT_SULF, "Hardness", 0)
  697. elements.property(elements.YOSHI_PT_SULF, "Flammable", 10)
  698.  
  699. --[[    {MAY BE USEFUL LATER?}local a = elements.allocate("YOSHI", "SACD")
  700. elements.element(elements.YOSHI_PT_SACD, elements.element(elements.DEFAULT_PT_ACID))
  701. elements.property(elements.YOSHI_PT_SACD, "Name", "SACD")
  702. elements.property(elements.YOSHI_PT_SACD, "Description", "Sulphuric acid, does nothing yet.")
  703. elements.property(elements.YOSHI_PT_SACD, "Colour", 0xEEEE11)
  704. elements.property(elements.YOSHI_PT_SACD, "MenuSection", 7)
  705. elements.property(elements.YOSHI_PT_SACD, "Gravity", 1)
  706. elements.property(elements.YOSHI_PT_SACD, "Explosive", 0)
  707. elements.property(elements.YOSHI_PT_SACD, "Weight", 10)
  708. elements.property(elements.YOSHI_PT_SACD, "Diffusion", 0.1)
  709. elements.property(elements.YOSHI_PT_SACD, "Hardness", 0)
  710. elements.property(elements.YOSHI_PT_SACD, "Flammable", 0)]]--
  711.  
  712. local a = elements.allocate("YOSHI", "RMTL")
  713. elements.element(elements.YOSHI_PT_RMTL, elements.element(elements.DEFAULT_PT_TTAN))
  714. elements.property(elements.YOSHI_PT_RMTL, "Name", "RMTL")
  715. elements.property(elements.YOSHI_PT_RMTL, "Description", "Realistic metal.")
  716. elements.property(elements.YOSHI_PT_RMTL, "Colour", 0x666666)
  717. elements.property(elements.YOSHI_PT_RMTL, "MenuSection", 9)
  718. elements.property(elements.YOSHI_PT_RMTL, "Gravity", 0)
  719. elements.property(elements.YOSHI_PT_RMTL, "Explosive", 0)
  720. elements.property(elements.YOSHI_PT_RMTL, "Weight", 100)
  721. elements.property(elements.YOSHI_PT_RMTL, "Diffusion", 0)
  722. elements.property(elements.YOSHI_PT_RMTL, "Hardness", 0)
  723. elements.property(elements.YOSHI_PT_RMTL, "Flammable", 0)
  724. elements.property(elements.YOSHI_PT_RMTL, "AirLoss", 0)
  725. elements.property(elements.YOSHI_PT_RMTL, "Temperature", 273.15 + 22)
  726. elements.property(elements.YOSHI_PT_RMTL, "HighTemperature", 1798)
  727. elements.property(elements.YOSHI_PT_RMTL, "HighTemperatureTransition", elements.YOSHI_PT_MRMT)
  728.  
  729. local a = elements.allocate("YOSHI", "MRMT")
  730. elements.element(elements.YOSHI_PT_MRMT, elements.element(elements.DEFAULT_PT_MERC))
  731. elements.property(elements.YOSHI_PT_MRMT, "Name", "MRMT")
  732. elements.property(elements.YOSHI_PT_MRMT, "Description", "Molten realistic metal.")
  733. elements.property(elements.YOSHI_PT_MRMT, "Colour", 0xFEDCBA)
  734. elements.property(elements.YOSHI_PT_MRMT, "MenuSection", 4)
  735. elements.property(elements.YOSHI_PT_MRMT, "MenuVisible", 0)
  736. elements.property(elements.YOSHI_PT_MRMT, "Gravity", 1)
  737. elements.property(elements.YOSHI_PT_MRMT, "Explosive", 0)
  738. elements.property(elements.YOSHI_PT_MRMT, "Weight", 100)
  739. elements.property(elements.YOSHI_PT_MRMT, "Diffusion", 0)
  740. elements.property(elements.YOSHI_PT_MRMT, "Hardness", 0)
  741. elements.property(elements.YOSHI_PT_MRMT, "Flammable", 0)
  742. elements.property(elements.YOSHI_PT_MRMT, "Temperature", 1799)
  743. elements.property(elements.YOSHI_PT_MRMT, "LowTemperature", 1798)
  744. elements.property(elements.YOSHI_PT_MRMT, "LowTemperatureTransition", elements.YOSHI_PT_RMTL)
  745.  
  746. local a = elements.allocate("YOSHI", "THNL")
  747. elements.element(elements.YOSHI_PT_THNL, elements.element(elements.DEFAULT_PT_NITR))
  748. elements.property(elements.YOSHI_PT_THNL, "Name", "THNL")
  749. elements.property(elements.YOSHI_PT_THNL, "Description", "Thermonucleum, Extremely explosive.")
  750. elements.property(elements.YOSHI_PT_THNL, "Colour", 0x3F94EC)
  751. elements.property(elements.YOSHI_PT_THNL, "MenuSection", 10)
  752. elements.property(elements.YOSHI_PT_THNL, "Gravity", 1)
  753. elements.property(elements.YOSHI_PT_THNL, "Explosive", 2)
  754. elements.property(elements.YOSHI_PT_THNL, "Weight", 10)
  755. elements.property(elements.YOSHI_PT_THNL, "Diffusion", 0)
  756. elements.property(elements.YOSHI_PT_THNL, "Hardness", 0)
  757. elements.property(elements.YOSHI_PT_THNL, "Flammable", 100000)
  758. elements.property(elements.YOSHI_PT_THNL, "Temperature", 295.15)
  759. elements.property(elements.YOSHI_PT_THNL, "AirDrag", 0.5)
  760.  
  761. elements.allocate('AU3FGEN', 'GNTM')
  762. elements.element(elements.AU3FGEN_PT_GNTM, elements.element(elements.DEFAULT_PT_DMND))
  763. elements.property(elements.AU3FGEN_PT_GNTM, 'Name', 'GNTM')
  764. elements.property(elements.AU3FGEN_PT_GNTM, 'Description', 'Gentium, Strange and laggy.')
  765. elements.property(elements.AU3FGEN_PT_GNTM, 'Color', '0x1F7F3F')
  766. elements.property(elements.AU3FGEN_PT_GNTM, 'MenuSection', '10')
  767. elements.property(elements.AU3FGEN_PT_GNTM, 'Gravity', '0')
  768. elements.property(elements.AU3FGEN_PT_GNTM, 'Flammable', '65535')
  769. elements.property(elements.AU3FGEN_PT_GNTM, 'Explosive', '1')
  770. elements.property(elements.AU3FGEN_PT_GNTM, 'Loss', '0')
  771. elements.property(elements.AU3FGEN_PT_GNTM, 'AirLoss', '1')
  772. elements.property(elements.AU3FGEN_PT_GNTM, 'AirDrag', '0')
  773. elements.property(elements.AU3FGEN_PT_GNTM, 'Advection', '1')
  774. elements.property(elements.AU3FGEN_PT_GNTM, 'Weight', '1024')
  775. elements.property(elements.AU3FGEN_PT_GNTM, 'Diffusion', '0')
  776. elements.property(elements.AU3FGEN_PT_GNTM, 'Falldown', '0')
  777. local g = function(i, x, y, s, n)
  778. --Update Function
  779. end
  780. tpt.element_func(g, tpt.element('GNTM'))
  781. local g = function(i, r, g, b)
  782. local function gfunc(i, r, g, b)
  783.         return 1, 0x0003007F, math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255)
  784. end
  785. tpt.graphics_func(gfunc, tpt.element('GNTM'))
  786. end
  787. tpt.graphics_func(g, tpt.element('GNTM'))
  788.  
  789. --Radioactive Mod
  790.  
  791. --Changes
  792. -- You can change this from on/off.
  793.  
  794. on=40
  795. off=0
  796.  
  797.  
  798. elements.property(elements.DEFAULT_PT_ACID, "Flammable", off)
  799. -- Added Elements.
  800.  
  801. local a = elements.allocate("X", "C")
  802. elements.element(elements.X_PT_C, elements.element(elements.DEFAULT_PT_WOOD))
  803. elements.property(elements.X_PT_C, "Name", "SAWD")
  804. elements.property(elements.X_PT_C, "Description", "Saw Dust, Flammable.")
  805. elements.property(elements.X_PT_C, "Colour", 0xFFFF66)
  806. elements.property(elements.X_PT_C, "MenuSection", 8)
  807. elements.property(elements.X_PT_C, "Gravity", 1)
  808. elements.property(elements.X_PT_C, "Flammable", 30)
  809. elements.property(elements.X_PT_C, "Explosive", 0)
  810. elements.property(elements.X_PT_C, "Weight", 20)
  811. elements.property(elements.X_PT_C, "Diffusion", 0.5)
  812. elements.property(elements.X_PT_C, "Falldown", 1)
  813.  
  814. local a = elements.allocate("C", "Q")
  815. elements.element(elements.C_PT_Q, elements.element(elements.DEFAULT_PT_HYGN))
  816. elements.property(elements.C_PT_Q, "Name", "????")
  817. elements.property(elements.C_PT_Q, "Description", "????")
  818. elements.property(elements.C_PT_Q, "Colour", 0xFFFF0080)
  819. elements.property(elements.C_PT_Q, "MenuSection", 10)
  820. elements.property(elements.C_PT_Q, "Gravity", 0.3)
  821. elements.property(elements.C_PT_Q, "Explosive", 1)
  822. elements.property(elements.C_PT_Q, "Weight", 66)
  823. elements.property(elements.C_PT_Q, "Diffusion", 0)
  824. elements.property(elements.C_PT_Q, "HotAir", -0.1)
  825. elements.property(elements.C_PT_Q, "Hardness", 0)
  826.  
  827. local q={0x99FFFF,0x9999FF,0xCCFF00,0x00FFCC,0x00CC00,0x330099}
  828. local z=q[math.random(1,6)]
  829.  
  830. elements.property(elements.C_PT_Q, "Colour", z)
  831.  
  832. function light(i,x,y,s,n)
  833.         if math.random(1,300000) == 10 then
  834.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  835.         end
  836. end
  837. tpt.element_func(light,a)
  838.  
  839. local a = elements.allocate("B", "Q")
  840. elements.element(elements.B_PT_Q, elements.element(elements.DEFAULT_PT_HYGN))
  841. elements.property(elements.B_PT_Q, "Name", "LCLD")
  842. elements.property(elements.B_PT_Q, "Description", "Lava Clouds.")
  843. elements.property(elements.B_PT_Q, "Colour", 0xCC0000)
  844. elements.property(elements.B_PT_Q, "MenuSection", 6)
  845. elements.property(elements.B_PT_Q, "Gravity", 0.1)
  846. elements.property(elements.B_PT_Q, "Explosive", 0)
  847. elements.property(elements.B_PT_Q, "Weight", 66)
  848. elements.property(elements.B_PT_Q, "Temperature", math.huge)
  849. elements.property(elements.B_PT_Q, "Diffusion", 0.1)
  850. elements.property(elements.B_PT_Q, "Hardness", 0)
  851.  
  852. function fire(i,x,y,s,n)
  853.         if math.random(1,750) == 10 then
  854.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lava')
  855.         end
  856. end
  857. tpt.element_func(fire,a)
  858.  
  859. --[[
  860.  
  861. local a = elements.allocate("V", "X")
  862. elements.element(elements.V_PT_X, elements.element(elements.DEFAULT_PT_HYGN))
  863. elements.property(elements.V_PT_X, "Name", "CLDS")
  864. elements.property(elements.V_PT_X, "Description", "Clouds. Produce Water.")
  865. elements.property(elements.V_PT_X, "Colour", 0x3366CC)
  866. elements.property(elements.V_PT_X, "MenuSection", 6)
  867. elements.property(elements.V_PT_X, "Gravity", 0.3)
  868. elements.property(elements.V_PT_X, "Explosive", 0)
  869. elements.property(elements.V_PT_X, "Weight", 88)
  870. elements.property(elements.V_PT_X, "Diffusion", 0.2)
  871. elements.property(elements.V_PT_X, "Hardness", 0)
  872.  
  873. function rain(i,x,y,s,n)
  874.         if math.random(1,750) == 10 then
  875.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  876.         end
  877. end
  878. tpt.element_func(rain,a)]]--
  879.  
  880. local a = elements.allocate("V", "W")
  881. elements.element(elements.V_PT_W, elements.element(elements.DEFAULT_PT_HYGN))
  882. elements.property(elements.V_PT_W, "Name", "ACLD")
  883. elements.property(elements.V_PT_W, "Description", "Acid Cloud.")
  884. elements.property(elements.V_PT_W, "Colour", 0xFF0066)
  885. elements.property(elements.V_PT_W, "MenuSection", 6)
  886. elements.property(elements.V_PT_W, "Gravity", 0.1)
  887. elements.property(elements.V_PT_W, "Explosive", 0)
  888. elements.property(elements.V_PT_W, "Weight", -400)
  889. elements.property(elements.V_PT_W, "Diffusion", 0.1)
  890. elements.property(elements.V_PT_W, "Hardness", 0)
  891.  
  892. function acid(i,x,y,s,n)
  893.          if math.random(1,750) == 10 then
  894.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'acid')
  895.         end
  896. end
  897. tpt.element_func(acid,a)
  898.  
  899. local a = elements.allocate("T", "N")
  900. elements.element(elements.T_PT_N, elements.element(elements.DEFAULT_PT_LAVA))
  901. elements.property(elements.T_PT_N, "Name", "NBLI")
  902. elements.property(elements.T_PT_N, "Description", "A liquid that releases NBLE. Very Hot.")
  903. elements.property(elements.T_PT_N, "Colour", 0xFF3300)
  904. elements.property(elements.T_PT_N, "Temperature", math.huge)
  905. elements.property(elements.T_PT_N, "Gravity", 3)
  906. elements.property(elements.T_PT_N, "Diffusion", 0.2)
  907.  
  908. function RLS(i,x,y,s,n)
  909.          if math.random(1,550) == 10 then
  910.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'nble')
  911.                          if math.random(1,1300) == 10 then
  912.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plsm')
  913.                 end
  914.         end
  915. end
  916. tpt.element_func(RLS,a)
  917. l="IFOUNDIT"
  918. local a = elements.allocate("R","D")
  919. elements.element(elements.R_PT_D, elements.element(elements.DEFAULT_PT_PHOT))
  920. elements.property(elements.R_PT_D, "Name", "SPRB")
  921. elements.property(elements.R_PT_D, "Color", 0xFF0099)
  922. elements.property(elements.R_PT_D, "MenuSection", 8)
  923. elements.property(elements.R_PT_D, "Advection", 0.2)
  924. elements.property(elements.R_PT_D, "Collision", 1.0)
  925. elements.property(elements.R_PT_D, "Gravity", 3.0)
  926. elements.property(elements.R_PT_D, "Diffusion", 0.3)
  927. elements.property(elements.R_PT_D, "Weight", 40.45)
  928. elements.property(elements.R_PT_D, "Temperature", 100000.0)
  929. elements.property(elements.R_PT_D, "HeatConduct", 100000.0)
  930. elements.property(elements.R_PT_D, "Description", "Super Ball. Very Hot. Bounces.")
  931. elements.property(elements.R_PT_D, "Properties", PROP_DEADLY)
  932.  
  933.  
  934. local a = elements.allocate("V1", "X1")
  935. elements.element(elements.V1_PT_X1, elements.element(elements.DEFAULT_PT_HYGN))
  936. elements.property(elements.V1_PT_X1, "Name", "STRM")
  937. elements.property(elements.V1_PT_X1, "Description", "Storm Clouds. Produces More Water Than CLDS, and Lightning.")
  938. elements.property(elements.V1_PT_X1, "Colour", 0x999999)
  939. elements.property(elements.V1_PT_X1, "MenuSection", 6)
  940. elements.property(elements.V1_PT_X1, "Gravity", 0.1)
  941. elements.property(elements.V1_PT_X1, "Explosive", 0)
  942. elements.property(elements.V1_PT_X1, "Weight", 99)
  943. elements.property(elements.V1_PT_X1, "Diffusion", 0.1)
  944. elements.property(elements.V1_PT_X1, "Hardness", 0)
  945.  
  946. function rain2(i,x,y,s,n)
  947.         if math.random(1,350) == 10 then
  948.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  949.                         if math.random(1,750) == 10 then
  950.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  951.         end
  952.         end
  953. end
  954. tpt.element_func(rain2,a)
  955.  
  956. local a = elements.allocate("N", "H")
  957. elements.element(elements.N_PT_H, elements.element(elements.DEFAULT_PT_WOOD))
  958. elements.property(elements.N_PT_H, "Name", "TR0N")
  959. elements.property(elements.N_PT_H, "Description", "Produces TRON. A Solid. A Home.")
  960. elements.property(elements.N_PT_H, "Colour", 0x66FFFF)
  961. elements.property(elements.N_PT_H, "Flammable", 0)
  962. elements.property(elements.N_PT_H, "MenuSection", 9)
  963.  
  964. function tron(i,x,y,s,n)
  965.         if math.random(1,100) == 10 then
  966.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'tron')
  967.         end
  968. end
  969. tpt.element_func(tron,a)
  970.  
  971. local a = elements.allocate("E", "O")
  972. elements.element(elements.E_PT_O, elements.element(elements.DEFAULT_PT_GUN))
  973. elements.property(elements.E_PT_O, "Name", "PC-4")
  974. elements.property(elements.E_PT_O, "Description", "Powder C4.  Explosive.")
  975. elements.property(elements.E_PT_O, "Colour", 0xFF33FF)
  976. elements.property(elements.E_PT_O, "Gravity", 2.0)
  977. elements.property(elements.E_PT_O, "Diffusion", 0.2)
  978. elements.property(elements.E_PT_O, "Weight", 30.20)
  979. elements.property(elements.E_PT_O, "Flammable", 3000.34)
  980.  
  981. local a = elements.allocate("J", "O")
  982. elements.element(elements.J_PT_O, elements.element(elements.DEFAULT_PT_DUST))
  983. elements.property(elements.J_PT_O, "Name", "FLY")
  984. elements.property(elements.J_PT_O, "Description", "Fly. Annoying Pestering Bug.")
  985. elements.property(elements.J_PT_O, "Colour", 0x333333)
  986. elements.property(elements.J_PT_O, "MenuSection", 11)
  987. elements.property(elements.J_PT_O, "Gravity", 0.1)
  988. elements.property(elements.J_PT_O, "Flammable", 1)
  989. elements.property(elements.J_PT_O, "Explosive", 0)
  990. elements.property(elements.J_PT_O, "Weight", -3000)
  991. elements.property(elements.J_PT_O, "Diffusion", 0.9)
  992. elements.property(elements.J_PT_O, "Falldown", 0.8)
  993.  
  994. local a = elements.allocate("C", "T")
  995. elements.element(elements.C_PT_T, elements.element(elements.DEFAULT_PT_GLOW))
  996. elements.property(elements.C_PT_T, "Name", "NPLM")
  997. elements.property(elements.C_PT_T, "Description", "Napalm. Very explosive.")
  998. elements.property(elements.C_PT_T, "Colour", 0x380520)
  999. elements.property(elements.C_PT_T, "MenuSection", 5)
  1000. elements.property(elements.C_PT_T, "Gravity", 0.5)
  1001. elements.property(elements.C_PT_T, "Flammable", 1000)
  1002. elements.property(elements.C_PT_T, "Explosive", 1)
  1003. elements.property(elements.C_PT_T, "Loss", 0)
  1004. elements.property(elements.C_PT_T, "Weight", 20)
  1005.  
  1006. local a = elements.allocate("G", "H")
  1007. elements.element(elements.G_PT_H, elements.element(elements.DEFAULT_PT_WOOD))
  1008. elements.property(elements.G_PT_H, "Name", "BHIV")
  1009. elements.property(elements.G_PT_H, "Description", "BEE Hive. Produces BEEs. Obviously.")
  1010. elements.property(elements.G_PT_H, "Colour", 0x999966)
  1011. elements.property(elements.G_PT_H, "Flammable", 10)
  1012. elements.property(elements.G_PT_H, "MenuSection", 9)
  1013.  
  1014. function bee(i,x,y,s,n)
  1015.         if math.random(1,330) == 10 then
  1016.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bee')
  1017.         end
  1018. end
  1019. tpt.element_func(bee,a)
  1020.  
  1021. local a = elements.allocate("B", "O")
  1022. elements.element(elements.B_PT_O, elements.element(elements.DEFAULT_PT_DUST))
  1023. elements.property(elements.B_PT_O, "Name", "BEE")
  1024. elements.property(elements.B_PT_O, "Description", "BEE. Pestering Demons. Move Faster Then FLY.")
  1025. elements.property(elements.B_PT_O, "Colour", 0xFFFF00)
  1026. elements.property(elements.B_PT_O, "MenuSection", 11)
  1027. elements.property(elements.B_PT_O, "Gravity", 0.1)
  1028. elements.property(elements.B_PT_O, "Flammable", 10)
  1029. elements.property(elements.B_PT_O, "Explosive", 0)
  1030. elements.property(elements.B_PT_O, "Weight", -6000)
  1031. elements.property(elements.B_PT_O, "Diffusion", 2)
  1032. elements.property(elements.B_PT_O, "Falldown", 0.2)
  1033. function beeh(i,x,y,s,n)
  1034.         if math.random(1,9000) == 10 then
  1035.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bhiv')
  1036.         end
  1037. end
  1038. tpt.element_func(beeh,a)
  1039.  
  1040. local a = elements.allocate("T", "X")
  1041. elements.element(elements.T_PT_X, elements.element(elements.DEFAULT_PT_HYGN))
  1042. elements.property(elements.T_PT_X, "Name", "TORN")
  1043. elements.property(elements.T_PT_X, "Description", "Tornado. Work in progress.")
  1044. elements.property(elements.T_PT_X, "Colour", 0x333333)
  1045. elements.property(elements.T_PT_X, "MenuSection", 11)
  1046. elements.property(elements.T_PT_X, "Gravity", 0.5)
  1047. elements.property(elements.T_PT_X, "Explosive", 0)
  1048. elements.property(elements.T_PT_X, "HotAir", -0.5)
  1049. elements.property(elements.T_PT_X, "Weight", 99)
  1050. elements.property(elements.T_PT_X, "Diffusion", 0.2)
  1051. elements.property(elements.T_PT_X, "Hardness", 0)
  1052.  
  1053. function rt(i,x,y,s,n)
  1054.         if math.random(1,550) == 10 then
  1055.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  1056.         end
  1057. end
  1058. tpt.element_func(rt,a)
  1059.  
  1060. local a = elements.allocate("A","G")
  1061. elements.element(elements.A_PT_G, elements.element(elements.DEFAULT_PT_HYGN))
  1062. elements.property(elements.A_PT_G, "Name", "LAG")
  1063. elements.property(elements.A_PT_G, "Description", "Worlds Worst Creation.")
  1064. elements.property(elements.A_PT_G, "Colour", 0x578985)
  1065. elements.property(elements.A_PT_G, "MenuSection", 10)
  1066. elements.property(elements.A_PT_G, "HotAir", 0.1)
  1067. function acid(i,x,y,s,n)
  1068.          if math.random(1,100) == 50 then
  1069.                 tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lag')
  1070.         end
  1071.         if math.random(1,100) == 50 then
  1072.         tpt.create(x + math.random(-1,1), y + math.random(-3,3), 'hygn')
  1073.         end
  1074.         if math.random(1,100) == 50 then
  1075.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'neut')
  1076.         end
  1077.         if math.random(1,100) == 50 then
  1078.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'prot')
  1079.         end
  1080.         if math.random(1,100) == 50 then
  1081.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'elec')
  1082.         if math.random(1,100) == 50 then
  1083.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'phot')
  1084.         end
  1085.         if math.random(1,100) == 50 then
  1086.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'neut')
  1087.         end
  1088.         if math.random(1,100) == 50 then
  1089.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'tron')
  1090.        
  1091.         if math.random(1,100) == 50 then
  1092.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'nble')
  1093.         if math.random(1,100) == 50 then
  1094.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'boyl')
  1095.         if math.random(1,100) == 50 then
  1096.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'watr')
  1097.         if math.random(1,100) == 50 then
  1098.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'dstw')
  1099.         if math.random(1,100) == 50 then
  1100.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'sltw')
  1101.         if math.random(1,100) == 50 then
  1102.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'glow')
  1103.         if math.random(1,100) == 50 then
  1104.         tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'soap')
  1105.         end
  1106.         end
  1107.         end
  1108.         end
  1109.         end
  1110.         end
  1111.         end
  1112.         end
  1113.         end
  1114. end
  1115. tpt.element_func(acid,a)
  1116.  
  1117. --WTF
  1118.  
  1119. local WTF = elements.allocate('CJB', 'WTF')
  1120.     elements.element(elements.CJB_PT_WTF, elements.element(elements.DEFAULT_PT_BCOL))
  1121.     elements.property(elements.CJB_PT_WTF, 'Name', 'WTF')
  1122.     elements.property(elements.CJB_PT_WTF, 'Description', 'Derpy, volatile gas/solid/I have no bloody idea.')
  1123.     elements.property(elements.CJB_PT_WTF, 'Color', '0xB87503')
  1124.     elements.property(elements.CJB_PT_WTF, 'MenuSection', '11')
  1125.     elements.property(elements.CJB_PT_WTF, 'Gravity', '0.4')
  1126.     elements.property(elements.CJB_PT_WTF, 'Flammable', '16384')
  1127.     elements.property(elements.CJB_PT_WTF, 'Explosive', '1')
  1128.     elements.property(elements.CJB_PT_WTF, 'Loss', '1')
  1129.     elements.property(elements.CJB_PT_WTF, 'AirLoss', '20')
  1130.     elements.property(elements.CJB_PT_WTF, 'AirDrag', '0.02')
  1131.     elements.property(elements.CJB_PT_WTF, 'Advection', '1')
  1132.     elements.property(elements.CJB_PT_WTF, 'Weight', '20')
  1133.     elements.property(elements.CJB_PT_WTF, 'Diffusion', '16384')
  1134.     elements.property(elements.CJB_PT_WTF, 'Temperature', '16384')
  1135.     elements.property(elements.CJB_PT_WTF, 'HotAir', '900')
  1136. local function Lflare(i, colr, colg, colb)
  1137.     return 1, 0x00000004, 255, 184, 117, 3, 255, 184, 117, 3
  1138. end
  1139. tpt.graphics_func(Lflare, WTF)
  1140.  
  1141. --Credits, I hope?
  1142.  
  1143. --[[
  1144. FeynmanLogomaker, timpfeifer, CeeJayBee, Videogamer555, 00yoshi, RadioActiveLua. If you were left out, email me at amywilsonmaster@gmail.com
  1145. ]]--
  1146.  
  1147. local a = "1"
  1148. local b = Window:new(-1,-1,200,200)
  1149. local c = Label:new(10,5,140,16, "TPT's Mod")
  1150. local d = Label:new(10,25,121,16, "Compiled by Amy")
  1151. local e =       Label:new(10,85,170,16, "Credit to: jacob1, FeynmanLogomaker,")
  1152. local f =       Label:new(135,5,88,16, ("AMY"))
  1153. local g = Label:new(10,95,180,16, "timpfeifer, CeeJayBee, Videogamer555,")
  1154. local h = Label:new(10,105,170,16,"00yoshi, and RadioActiveLua.")
  1155. local i = Label:new(10,125,180,16,"Report Bugs/Suggest for Next Version:")
  1156. local j = Label:new(10,135,170,16,"amywilsonmaster@gmail.com")
  1157.  
  1158. local Close = Button:new(10, 174, 60, 16, "Close")
  1159.  
  1160. Close:action(function() interface.closeWindow(b) end)
  1161. b:onTryExit(function() interface.closeWindow(b) end)
  1162.  
  1163. b:addComponent(Close);
  1164.  
  1165. local Button1 = Button:new(613, 97, 15, 15, "CR", "Open Info and Credits.")
  1166.  
  1167. Button1:action(function() interface.showWindow(b) end)
  1168.  
  1169. bb = Label:new(10,45,138,16, "Special Thanks To jacob1")
  1170. cc = Label:new(10,55,60,16, "Version 1")
  1171. dd = Label:new(10,65,57,16, "Update 1")
  1172.  
  1173. b:addComponent(bb)
  1174. b:addComponent(dd)
  1175. b:addComponent(cc)
  1176. b:addComponent(c)
  1177. b:addComponent(d)
  1178. b:addComponent(e)
  1179. b:addComponent(f)
  1180. b:addComponent(g)
  1181. b:addComponent(h)
  1182. b:addComponent(i)
  1183. b:addComponent(j)
  1184.  
  1185. interface.addComponent(Button1)
  1186.  
  1187. local a1 = "2"
  1188. local b1 = Window:new(-1,-1,200,200)
  1189. local c1 = Label:new(10,5,80,16, "SECRET MODE")
  1190. local d1 = Label:new(10,15,121,16, "Created By RadioActiveLua")
  1191. local f1 =      Label:new(135,5,88,16, ("RAM V."..a))
  1192.  
  1193. local Close1 = Button:new(10, 174, 60, 16, "Close")
  1194.  
  1195. local Start1 = Button:new(10, 194, 60, 16, "Enter")
  1196.  
  1197. Close1:action(function() interface.closeWindow(b1) end)
  1198. b1:onTryExit(function() interface.closeWindow(b1) end)
  1199.  
  1200. b1:addComponent(Close1);
  1201. b1:addComponent(Start1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement