Advertisement
-Amy-

TPTsMod Version 2 Update 0

Apr 14th, 2014
1,245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.78 KB | None | 0 0
  1.  
  2.  
  3. --TPT's Mod
  4. --Please use cracker64's script manager
  5. --VER 1.3 UPDATE http://pastebin.com/raw.php?i=jQZ58x68
  6.  
  7. --Version 2
  8.  
  9. function DrawHUD()
  10.  
  11. function mouseclicky(mousex, mousey, button, event)
  12. if (event == 1) then
  13. var5 = 1
  14. end
  15. if (event == 2) then
  16. var5 = 2
  17. end
  18. end
  19.  
  20. function keyclicky(key, nkey, modifier, event)
  21. if (key == "." and event == 1) then
  22. var6 = 1
  23. else
  24. var6 = 2
  25. end
  26. if (key == "," and event == 1) then
  27. var7 = 1
  28. else
  29. var7 = 2
  30. end
  31. if (key == "z" and event == 1) then
  32. var8 = 1
  33. else
  34. var8 = 2
  35. end
  36. if (key == "=" and event == 1) then
  37. var10 = 1
  38. end
  39. if (key == "-" and event == 1) then
  40. var10 = 2
  41. end
  42. end
  43.  
  44. tpt.register_keypress(keyclicky)
  45. tpt.register_mouseclick(mouseclicky)
  46.  
  47. if var7 == 1 then
  48. var9 = 1
  49. end
  50. if var6 == 1 then
  51. var9 = 2
  52. end
  53.  
  54. if var9 == 1 then
  55. rect = graphics.drawText
  56. draw = graphics.fillRect
  57. var10 = 2
  58. var8 = 1
  59. else
  60. rect = graphics.fillRect
  61. draw = graphics.drawText
  62. end
  63.  
  64. if var10 == 1 then
  65. draw1 = graphics.drawText
  66. rect1 = graphics.fillRect
  67. else
  68. draw1 = graphics.fillRect
  69. rect1 = graphics.drawText
  70. end
  71.  
  72. if var8 ~= 1 then
  73. draw2 = graphics.drawText
  74. else
  75. draw2 = graphics.fillRect
  76. end
  77.  
  78.  
  79. if tpt.mousex >= 611 then
  80. x2 = 611
  81. else
  82. x2 = tpt.mousex
  83. end
  84.  
  85. if tpt.mousey >= 383 then
  86. y2 = 383
  87. else
  88. y2 = tpt.mousey
  89. end
  90.  
  91. local x, y = sim.adjustCoords(x2, y2)
  92.  
  93. if tpt.get_property("type", x, y) >= 1 then
  94. ptype = tpt.element(tpt.get_property("type", x, y))
  95. else
  96. ptype = "Empty,"
  97. end
  98.  
  99. if tpt.get_property("type", x, y) >= 1 then
  100. var1 = tpt.get_property("temp", x, y)-273.15
  101. else
  102. var1 = 293.15
  103. end
  104.  
  105. local var2 = var1*100
  106. local var3 = math.floor(var2)/100
  107.  
  108. if tpt.get_property("type", x, y) >= 1 then
  109. temp = var3
  110. else
  111. temp = "()"
  112. end
  113.  
  114. if tpt.get_property("type", x, y) >= 1 then
  115. var12312389 = tpt.get_property("ctype", x, y)
  116. end
  117.  
  118. if tpt.get_property("type", x, y) >= 1 and var12312389 >= 0 and var12312389 < sim.PT_NUM then
  119. ctype = tpt.element(tpt.get_property("ctype", x, y))
  120. end
  121.  
  122. if tpt.get_property("type", x, y) == 0 or tpt.get_property("ctype", x, y) < 1 then
  123. ctype = "()"
  124. end
  125.  
  126. if x >= 609 then
  127. x1 = 609/4
  128. else
  129. x1 = x/4
  130. end
  131.  
  132. if y >= 381 then
  133. y1 = 381/4
  134. else
  135. y1 = y/4
  136. end
  137.  
  138. local var4 = sim.pressure(x1, y1)*100
  139. local pressure = math.floor(var4)/100
  140.  
  141. local parts = tpt.get_numOfParts()
  142. if tpt.get_property("type", x, y) >= 1 then
  143. tmp = tpt.get_property("tmp", x, y)
  144. else
  145. tmp = "0"
  146. end
  147.  
  148. if tpt.get_property("type", x, y) >= 1 then
  149. life = tpt.get_property("life", x, y)
  150. else
  151. life = "0"
  152. end
  153.  
  154. if tpt.get_property("type", x, y) >= 1 then
  155. tmp = tpt.get_property("tmp2", x, y)
  156. else
  157. tmp2 = "0"
  158. end
  159.  
  160. if tpt.get_property("type", x, y) >= 1 then
  161. var11 = tpt.get_property("vy", x, y)*1000
  162. else
  163. var11 = 0
  164. end
  165. local vy = math.floor(var11)/1000
  166.  
  167. if tpt.get_property("type", x, y) >= 1 then
  168. var12 = tpt.get_property("vx", x, y)*1000
  169. else
  170. var12 = 0
  171. end
  172. local vx = math.floor(var12)/1000
  173.  
  174. rect(398, 13, 187, 12, 55, 55, 55, 200)
  175. rect(398, 27, 200, 12, 55, 55, 55, 200)
  176. rect(14, 13, 210, 12, 55, 55, 55, 200)
  177. rect1(398, 41, 180, 12, 55, 55, 55, 200)
  178.  
  179. --{MAY BE USEFUL LATER???}graphics.drawText(6, 6, os.date("%a %b %d, %l:%M:%S %p"), 0, 255, 165, 200)
  180. draw(16, 15, os.date(), 0, 255, 165, 200)
  181.  
  182. draw2(250, 6, "</> Turn HUD On/Off", 0, 255, 165, 150)
  183. draw2(250, 16, "-/+ Extra On/Off", 0, 255, 165, 150)
  184. draw(550, 30, x, 0, 255, 165, 200)
  185. draw(578, 30, y, 0, 255, 165, 200)
  186. draw(541, 30, "X:", 0, 255, 165, 200)
  187. draw(570, 30, "Y:", 0, 255, 165, 200)
  188. draw(435, 15, ctype, 0, 255, 165, 200)
  189. draw(400, 15, ptype, 0, 255, 165, 200)
  190. draw(558, 15, pressure, 0, 255, 165, 200)
  191. draw(465, 15, "Temp:", 0, 255, 165, 200)
  192. draw(465, 30, "Tmp:", 0, 255, 165, 200)
  193. draw(400, 30, "Life:", 0, 255, 165, 200)
  194. draw(535, 15, "Pres:", 0, 255, 165, 200)
  195. draw(160, 15, "Parts:", 0, 255, 165, 200)
  196. draw(490, 15, temp, 0, 255, 165, 200)
  197. draw(485, 30, tmp, 0, 255, 165, 200)
  198. draw(422, 30, life, 0, 255, 165, 200)
  199. draw(187, 15, parts, 0, 255, 165, 200)
  200.  
  201. draw1(400, 44, "Tmp2:", 0, 255, 165, 200)
  202. draw1(425, 44, tmp2, 0, 255, 165, 200)
  203. draw1(465, 44, "VX:", 0, 255, 165, 200)
  204. draw1(535, 44, "VY:", 0, 255, 165, 200)
  205. draw1(480, 44, vx, 0, 255, 165, 200)
  206. draw1(550, 44, vy, 0, 255, 165, 200)
  207.  
  208. end
  209.  
  210. tpt.hud(0)
  211.  
  212. tpt.register_step(DrawHUD)
  213.  
  214. --Draws starting texts
  215.  
  216. print("TPT's Mod")
  217. print("Version 2")
  218. print("Update 0")
  219. print("Created by Amy. All elements were reprogrammed and compiled into a single file.")
  220. print("Contact via email or http://powdertoy.co.uk")
  221.  
  222. --TUNG Mod :D
  223.  
  224. function moo(i, x, y, surround_space, nt)
  225. if sim.pressure(x/4, y/4)<-7 and sim.partProperty(i, sim.FIELD_LIFE)~=0 and surround_space~=0 then
  226. sim.partCreate(-1, x+math.random(-3,3), y+math.random(-3,3), elem.DEFAULT_PT_ELEC) end
  227. end
  228. tpt.element_func(moo, tpt.el.tung.id, 0)
  229.  
  230. tpt.el.tung.description="Tungsten. Brittle metal with a very high melting point. When sparked under a pressure of -7, emits electrons."
  231.  
  232. --METR Element
  233.  
  234. local METR = elements.allocate("ELEMENT", "METR")
  235. elements.element(elements.ELEMENT_PT_METR, elements.element(elements.DEFAULT_PT_ELEC))
  236. elements.property(elements.ELEMENT_PT_METR, "Name", "METR")
  237. elements.property(elements.ELEMENT_PT_METR, "Description", "Meteors, Explode on impact. Use sparingly.")
  238. elements.property(elements.ELEMENT_PT_METR, "Colour", 0xFF7A0002)
  239. elements.property(elements.ELEMENT_PT_METR, "MenuSection", elem.SC_EXPLOSIVE)
  240. elements.property(elements.ELEMENT_PT_METR, "MenuVisible", 1)
  241. elements.property(elements.ELEMENT_PT_METR, "Weight", 100)
  242. elements.property(elements.ELEMENT_PT_METR, "Temperature", 9999)
  243. local function graphics1(i, colr, colg, colb)
  244. return 1,0x00010000,255,225,0,210,255,255,255,255
  245. end
  246. tpt.graphics_func(graphics1,METR)
  247.  
  248. local function get_property(prop, x, y)
  249. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  250. return tpt.get_property(prop, x, y)
  251. end
  252. return 0
  253. end
  254.  
  255. math.randomseed(os.time())
  256. function metr_update(i, x, y, s, n)
  257. if tpt.get_property("tmp",i)==0 then
  258. tpt.parts[i].tmp=1
  259. randvel=math.random(-20,20)/10
  260. tpt.parts[i].vx=randvel
  261. tpt.parts[i].vy=math.sqrt(8-(randvel^2))
  262. end
  263.  
  264. xvel=tpt.get_property("vx",i)/2
  265. yvel=tpt.get_property("vy",i)/2
  266. if yvel <= 0 or math.abs(xvel) > 1 then
  267. tpt.delete(i)
  268. end
  269.  
  270. xpos=x-xvel
  271. ypos=y-yvel
  272. elemtype=get_property("type",xpos,ypos)
  273.  
  274. if elemtype == 0 then
  275. tpt.create(xpos,ypos,"bray")
  276. tpt.set_property("temp",5000,xpos,ypos)
  277. end
  278. tpt.parts[i].temp=9999
  279.  
  280. elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  281. elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  282. elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  283. elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  284. elemtype21=get_property("type",x+xvel,y+yvel)
  285. 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
  286. tpt.set_property("type","bomb",i)
  287. tpt.set_property("life",0,i)
  288. tpt.set_property("tmp",0,i)
  289. 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
  290. tpt.set_property("type","bomb",i)
  291. tpt.set_property("life",0,i)
  292. tpt.set_property("tmp",0,i)
  293. 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
  294. tpt.set_property("type","bomb",i)
  295. tpt.set_property("life",0,i)
  296. tpt.set_property("tmp",0,i)
  297. 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
  298. tpt.set_property("type","bomb",i)
  299. tpt.set_property("life",0,i)
  300. tpt.set_property("tmp",0,i)
  301. 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
  302. tpt.set_property("type","bomb",i)
  303. tpt.set_property("life",0,i)
  304. tpt.set_property("tmp",0,i)
  305. end
  306. end
  307.  
  308. tpt.element_func(metr_update, elements.ELEMENT_PT_METR,1)
  309.  
  310. --BMBR Element {Amy}
  311.  
  312. local BMBR = elements.allocate("ELEMENT", "BMBR")
  313. elements.element(elements.ELEMENT_PT_BMBR, elements.element(elements.DEFAULT_PT_ELEC))
  314. elements.property(elements.ELEMENT_PT_BMBR, "Name", "BMBR")
  315. elements.property(elements.ELEMENT_PT_BMBR, "Description", "Right Shooting Bomb.")
  316. elements.property(elements.ELEMENT_PT_BMBR, "Colour", 0xFF31CBD9)
  317. elements.property(elements.ELEMENT_PT_BMBR, "MenuSection", elem.SC_EXPLOSIVE)
  318. elements.property(elements.ELEMENT_PT_BMBR, "MenuVisible", 1)
  319. elements.property(elements.ELEMENT_PT_BMBR, "Weight", 100)
  320. elements.property(elements.ELEMENT_PT_BMBR, "Temperature", 9999)
  321. local function graphics1(i, colr, colg, colb)
  322. return 1,0x00010000,255,225,0,210,255,255,255,255
  323. end
  324. tpt.graphics_func(graphics1,BMBR)
  325.  
  326. local function get_property(prop, x, y)
  327. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  328. return tpt.get_property(prop, x, y)
  329. end
  330. return 0
  331. end
  332.  
  333. math.randomseed(os.time())
  334. function BMBR_update(i, x, y, s, n)
  335. if tpt.get_property("tmp",i)==0 then
  336. tpt.parts[i].tmp=1
  337. --randvel=math.random(-20,20)/10
  338. tpt.parts[i].vx=3
  339. tpt.parts[i].vy=0
  340. end
  341.  
  342. xvel=3
  343. yvel=0
  344. if math.abs(xvel) < 1 then
  345. tpt.delete(i)
  346. end
  347.  
  348. xpos=x-xvel
  349. ypos=y-yvel
  350. elemtype=get_property("type",xpos,ypos)
  351.  
  352. if elemtype == 0 then
  353. tpt.create(xpos,ypos,"bray")
  354. tpt.set_property("temp",5000,xpos,ypos)
  355. end
  356. tpt.parts[i].temp=9999
  357.  
  358. elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  359. elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  360. elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  361. elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  362. elemtype21=get_property("type",x+xvel,y+yvel)
  363. 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
  364. tpt.set_property("type","bomb",i)
  365. tpt.set_property("life",0,i)
  366. tpt.set_property("tmp",0,i)
  367. 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
  368. tpt.set_property("type","bomb",i)
  369. tpt.set_property("life",0,i)
  370. tpt.set_property("tmp",0,i)
  371. 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
  372. tpt.set_property("type","bomb",i)
  373. tpt.set_property("life",0,i)
  374. tpt.set_property("tmp",0,i)
  375. 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
  376. tpt.set_property("type","bomb",i)
  377. tpt.set_property("life",0,i)
  378. tpt.set_property("tmp",0,i)
  379. 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
  380. tpt.set_property("type","bomb",i)
  381. tpt.set_property("life",0,i)
  382. tpt.set_property("tmp",0,i)
  383. end
  384. end
  385.  
  386. tpt.element_func(BMBR_update, elements.ELEMENT_PT_BMBR,1)
  387.  
  388. --BMBL Element {Amy}
  389.  
  390. local BMBL = elements.allocate("ELEMENT", "BMBL")
  391. elements.element(elements.ELEMENT_PT_BMBL, elements.element(elements.DEFAULT_PT_ELEC))
  392. elements.property(elements.ELEMENT_PT_BMBL, "Name", "BMBL")
  393. elements.property(elements.ELEMENT_PT_BMBL, "Description", "Left Shooting Bomb.")
  394. elements.property(elements.ELEMENT_PT_BMBL, "Colour", 0xFF20878E)
  395. elements.property(elements.ELEMENT_PT_BMBL, "MenuSection", elem.SC_EXPLOSIVE)
  396. elements.property(elements.ELEMENT_PT_BMBL, "MenuVisible", 1)
  397. elements.property(elements.ELEMENT_PT_BMBL, "Weight", 100)
  398. elements.property(elements.ELEMENT_PT_BMBL, "Temperature", 9999)
  399. local function graphics1(i, colr, colg, colb)
  400. return 1,0x00010000,255,225,0,210,255,255,255,255
  401. end
  402. tpt.graphics_func(graphics1,BMBL)
  403.  
  404. local function get_property(prop, x, y)
  405. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  406. return tpt.get_property(prop, x, y)
  407. end
  408. return 0
  409. end
  410.  
  411. math.randomseed(os.time())
  412. function BMBL_update(i, x, y, s, n)
  413. if tpt.get_property("tmp",i)==0 then
  414. tpt.parts[i].tmp=1
  415. --randvel=math.random(-20,20)/10
  416. tpt.parts[i].vx=-3
  417. tpt.parts[i].vy=0
  418. end
  419.  
  420. xvel=-3
  421. yvel=0
  422. if math.abs(xvel) < 1 then
  423. tpt.delete(i)
  424. end
  425.  
  426. xpos=x-xvel
  427. ypos=y-yvel
  428. elemtype=get_property("type",xpos,ypos)
  429.  
  430. if elemtype == 0 then
  431. tpt.create(xpos,ypos,"bray")
  432. tpt.set_property("temp",5000,xpos,ypos)
  433. end
  434. tpt.parts[i].temp=9999
  435.  
  436. elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  437. elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  438. elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  439. elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  440. elemtype21=get_property("type",x+xvel,y+yvel)
  441. 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
  442. tpt.set_property("type","bomb",i)
  443. tpt.set_property("life",0,i)
  444. tpt.set_property("tmp",0,i)
  445. 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
  446. tpt.set_property("type","bomb",i)
  447. tpt.set_property("life",0,i)
  448. tpt.set_property("tmp",0,i)
  449. 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
  450. tpt.set_property("type","bomb",i)
  451. tpt.set_property("life",0,i)
  452. tpt.set_property("tmp",0,i)
  453. 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
  454. tpt.set_property("type","bomb",i)
  455. tpt.set_property("life",0,i)
  456. tpt.set_property("tmp",0,i)
  457. 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
  458. tpt.set_property("type","bomb",i)
  459. tpt.set_property("life",0,i)
  460. tpt.set_property("tmp",0,i)
  461. end
  462. end
  463.  
  464. tpt.element_func(BMBL_update, elements.ELEMENT_PT_BMBL,1)
  465.  
  466. --MRTR {Amy}
  467.  
  468. local MRTR = elements.allocate("ELEMENT", "MRTR")
  469. elements.element(elements.ELEMENT_PT_MRTR, elements.element(elements.DEFAULT_PT_ELEC))
  470. elements.property(elements.ELEMENT_PT_MRTR, "Name", "MRTR")
  471. elements.property(elements.ELEMENT_PT_MRTR, "Description", "Mortar Right.")
  472. elements.property(elements.ELEMENT_PT_MRTR, "Colour", 0xFF2E01E3)
  473. elements.property(elements.ELEMENT_PT_MRTR, "MenuSection", elem.SC_EXPLOSIVE)
  474. elements.property(elements.ELEMENT_PT_MRTR, "MenuVisible", 1)
  475. elements.property(elements.ELEMENT_PT_MRTR, "Weight", 100)
  476. elements.property(elements.ELEMENT_PT_MRTR, "Temperature", 9999)
  477. local function graphics1(i, colr, colg, colb)
  478. return 1,0x00010000,255,225,0,210,255,255,255,255
  479. end
  480. tpt.graphics_func(graphics1,MRTR)
  481.  
  482. local function get_property(prop, x, y)
  483. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  484. return tpt.get_property(prop, x, y)
  485. end
  486. return 0
  487. end
  488.  
  489. math.randomseed(os.time())
  490. function MRTR_update(i, x, y, s, n)
  491. if tpt.get_property("tmp",i)==0 then
  492. tpt.parts[i].tmp=1
  493. --randvel=math.random(-20,20)/10
  494. tpt.parts[i].vx=3
  495. tpt.parts[i].vy=3
  496. end
  497.  
  498. xvel=3
  499. yvel=3
  500. if math.abs(xvel) < 1 then
  501. tpt.delete(i)
  502. end
  503.  
  504. xpos=x-xvel
  505. ypos=y-yvel
  506. elemtype=get_property("type",xpos,ypos)
  507.  
  508. if elemtype == 0 then
  509. tpt.create(xpos,ypos,"bray")
  510. tpt.set_property("temp",5000,xpos,ypos)
  511. end
  512. tpt.parts[i].temp=9999
  513.  
  514. elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  515. elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  516. elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  517. elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  518. elemtype21=get_property("type",x+xvel,y+yvel)
  519. if elemtype25 ~= 0 and elemtype25 ~= elements.ELEMENT_PT_MRTR and elemtype25 ~= tpt.el.bray.id and elemtype25 ~= tpt.el.dmnd.id and elemtype25 ~= tpt.el.void.id then
  520. tpt.set_property("type","bomb",i)
  521. tpt.set_property("life",0,i)
  522. tpt.set_property("tmp",0,i)
  523. elseif elemtype24 ~= 0 and elemtype24 ~= elements.ELEMENT_PT_MRTR and elemtype24 ~= tpt.el.bray.id and elemtype24 ~= tpt.el.dmnd.id and elemtype24 ~= tpt.el.void.id then
  524. tpt.set_property("type","bomb",i)
  525. tpt.set_property("life",0,i)
  526. tpt.set_property("tmp",0,i)
  527. elseif elemtype23 ~= 0 and elemtype23 ~= elements.ELEMENT_PT_MRTR and elemtype23 ~= tpt.el.bray.id and elemtype23 ~= tpt.el.dmnd.id and elemtype23 ~= tpt.el.void.id then
  528. tpt.set_property("type","bomb",i)
  529. tpt.set_property("life",0,i)
  530. tpt.set_property("tmp",0,i)
  531. elseif elemtype22 ~= 0 and elemtype22 ~= elements.ELEMENT_PT_MRTR and elemtype22 ~= tpt.el.bray.id and elemtype22 ~= tpt.el.dmnd.id and elemtype22 ~= tpt.el.void.id then
  532. tpt.set_property("type","bomb",i)
  533. tpt.set_property("life",0,i)
  534. tpt.set_property("tmp",0,i)
  535. elseif elemtype21 ~= 0 and elemtype21 ~= elements.ELEMENT_PT_MRTR and elemtype21 ~= tpt.el.bray.id and elemtype21 ~= tpt.el.dmnd.id and elemtype21 ~= tpt.el.void.id then
  536. tpt.set_property("type","bomb",i)
  537. tpt.set_property("life",0,i)
  538. tpt.set_property("tmp",0,i)
  539. end
  540. end
  541.  
  542. tpt.element_func(MRTR_update, elements.ELEMENT_PT_MRTR,1)
  543.  
  544. --MRTL {Amy}
  545.  
  546. local MRTL = elements.allocate("ELEMENT", "MRTL")
  547. elements.element(elements.ELEMENT_PT_MRTL, elements.element(elements.DEFAULT_PT_ELEC))
  548. elements.property(elements.ELEMENT_PT_MRTL, "Name", "MRTL")
  549. elements.property(elements.ELEMENT_PT_MRTL, "Description", "Motar Left.")
  550. elements.property(elements.ELEMENT_PT_MRTL, "Colour", 0xFF5068E4)
  551. elements.property(elements.ELEMENT_PT_MRTL, "MenuSection", elem.SC_EXPLOSIVE)
  552. elements.property(elements.ELEMENT_PT_MRTL, "MenuVisible", 1)
  553. elements.property(elements.ELEMENT_PT_MRTL, "Weight", 100)
  554. elements.property(elements.ELEMENT_PT_MRTL, "Temperature", 9999)
  555. local function graphics1(i, colr, colg, colb)
  556. return 1,0x00010000,255,225,0,210,255,255,255,255
  557. end
  558. tpt.graphics_func(graphics1,MRTL)
  559.  
  560. local function get_property(prop, x, y)
  561. if x >= 0 and x < sim.XRES and y >=0 and y < sim.YRES then
  562. return tpt.get_property(prop, x, y)
  563. end
  564. return 0
  565. end
  566.  
  567. math.randomseed(os.time())
  568. function MRTL_update(i, x, y, s, n)
  569. if tpt.get_property("tmp",i)==0 then
  570. tpt.parts[i].tmp=1
  571. --randvel=math.random(-20,20)/10
  572. tpt.parts[i].vx=-3
  573. tpt.parts[i].vy=3
  574. end
  575.  
  576. xvel=-3
  577. yvel=3
  578. if math.abs(xvel) < 1 then
  579. tpt.delete(i)
  580. end
  581.  
  582. xpos=x-xvel
  583. ypos=y-yvel
  584. elemtype=get_property("type",xpos,ypos)
  585.  
  586. if elemtype == 0 then
  587. tpt.create(xpos,ypos,"bray")
  588. tpt.set_property("temp",5000,xpos,ypos)
  589. end
  590. tpt.parts[i].temp=9999
  591.  
  592. elemtype25=get_property("type",x+xvel*5,y+yvel*5)
  593. elemtype24=get_property("type",x+xvel*4,y+yvel*4)
  594. elemtype23=get_property("type",x+xvel*3,y+yvel*3)
  595. elemtype22=get_property("type",x+xvel*2,y+yvel*2)
  596. elemtype21=get_property("type",x+xvel,y+yvel)
  597. if elemtype25 ~= 0 and elemtype25 ~= elements.ELEMENT_PT_MRTL and elemtype25 ~= tpt.el.bray.id and elemtype25 ~= tpt.el.dmnd.id and elemtype25 ~= tpt.el.void.id then
  598. tpt.set_property("type","bomb",i)
  599. tpt.set_property("life",0,i)
  600. tpt.set_property("tmp",0,i)
  601. elseif elemtype24 ~= 0 and elemtype24 ~= elements.ELEMENT_PT_MRTL and elemtype24 ~= tpt.el.bray.id and elemtype24 ~= tpt.el.dmnd.id and elemtype24 ~= tpt.el.void.id then
  602. tpt.set_property("type","bomb",i)
  603. tpt.set_property("life",0,i)
  604. tpt.set_property("tmp",0,i)
  605. elseif elemtype23 ~= 0 and elemtype23 ~= elements.ELEMENT_PT_MRTL and elemtype23 ~= tpt.el.bray.id and elemtype23 ~= tpt.el.dmnd.id and elemtype23 ~= tpt.el.void.id then
  606. tpt.set_property("type","bomb",i)
  607. tpt.set_property("life",0,i)
  608. tpt.set_property("tmp",0,i)
  609. elseif elemtype22 ~= 0 and elemtype22 ~= elements.ELEMENT_PT_MRTL and elemtype22 ~= tpt.el.bray.id and elemtype22 ~= tpt.el.dmnd.id and elemtype22 ~= tpt.el.void.id then
  610. tpt.set_property("type","bomb",i)
  611. tpt.set_property("life",0,i)
  612. tpt.set_property("tmp",0,i)
  613. elseif elemtype21 ~= 0 and elemtype21 ~= elements.ELEMENT_PT_MRTL and elemtype21 ~= tpt.el.bray.id and elemtype21 ~= tpt.el.dmnd.id and elemtype21 ~= tpt.el.void.id then
  614. tpt.set_property("type","bomb",i)
  615. tpt.set_property("life",0,i)
  616. tpt.set_property("tmp",0,i)
  617. end
  618. end
  619.  
  620. tpt.element_func(MRTL_update, elements.ELEMENT_PT_MRTL,1)
  621.  
  622. --PLSM Copy For Explosives {Amy}
  623.  
  624. local amy1 = elements.allocate("AMY", "IGNT")
  625. elements.element(elements.AMY_PT_IGNT, elements.element(elements.DEFAULT_PT_GAS))
  626. elements.property(elements.AMY_PT_IGNT, "Name", "IGNT")
  627. elements.property(elements.AMY_PT_IGNT, "Description", "Igniter. Use to ignite explosives, hotter than fire.")
  628. elements.property(elements.AMY_PT_IGNT, "Colour", 0xFFE52961)
  629. elements.property(elements.AMY_PT_IGNT, "MenuSection", 5)
  630. elements.property(elements.AMY_PT_IGNT, "MenuVisible", 1)
  631. elements.property(elements.AMY_PT_IGNT, "Temperature", 5000)
  632. elements.property(elements.AMY_PT_IGNT, "Weight", 0)
  633. elements.property(elements.AMY_PT_IGNT, "Flammable", 1)
  634. elements.property(elements.AMY_PT_IGNT, "Explosive", 0)
  635.  
  636. --Strong Metal {Amy}
  637.  
  638. local STEL = elements.allocate("AMY", "STEL")
  639. elements.element(elements.AMY_PT_STEL, elements.element(elements.DEFAULT_PT_TTAN))
  640. elements.property(elements.AMY_PT_STEL, "Name", "STEL")
  641. elements.property(elements.AMY_PT_STEL, "Description", "Special Steel. Resists heat transfer, and is nearly impossible to destroy.")
  642. elements.property(elements.AMY_PT_STEL, "Colour", 0x474747)
  643. elements.property(elements.AMY_PT_STEL, "MenuSection", elem.SC_SOLID)
  644. elements.property(elements.AMY_PT_STEL, "MenuVisible", 1)
  645. elements.property(elements.AMY_PT_STEL, "Weight", 1000)
  646. elements.property(elements.AMY_PT_STEL, "Temperature", 293)
  647. elements.property(elements.AMY_PT_STEL, "HeatConduct", 1)
  648. elements.property(elements.AMY_PT_STEL, "HighTemperature", 7000)
  649.  
  650. --Strong Brick [Non Conductive] {Amy}
  651.  
  652. local SNGB = elements.allocate("AMY", "SNGB")
  653. elements.element(elements.AMY_PT_SNGB, elements.element(elements.DEFAULT_PT_BRCK))
  654. elements.property(elements.AMY_PT_SNGB, "Name", "SNGB")
  655. elements.property(elements.AMY_PT_SNGB, "Description", "Extremely Strong Brick. Resists heat transfer.")
  656. elements.property(elements.AMY_PT_SNGB, "Colour", 0x989898)
  657. elements.property(elements.AMY_PT_SNGB, "MenuSection", elem.SC_SOLID)
  658. elements.property(elements.AMY_PT_SNGB, "MenuVisible", 1)
  659. elements.property(elements.AMY_PT_SNGB, "Weight", 1000)
  660. elements.property(elements.AMY_PT_SNGB, "Temperature", 293)
  661. elements.property(elements.AMY_PT_SNGB, "HeatConduct", 1)
  662. elements.property(elements.AMY_PT_SNGB, "HighTemperature", 7000)
  663. elements.property(elements.AMY_PT_SNGB, "HighPressure", 37)
  664.  
  665. --Strong Glass [No Shatter] {Amy}
  666.  
  667. local SNGL = elements.allocate("AMY", "SUGL")
  668. elements.element(elements.AMY_PT_SUGL, elements.element(elements.DEFAULT_PT_GLAS))
  669. elements.property(elements.AMY_PT_SUGL, "Name", "SUGL")
  670. elements.property(elements.AMY_PT_SUGL, "Description", "Super Glass. Hard to shatter.")
  671. elements.property(elements.AMY_PT_SUGL, "Colour", 0x007475)
  672. elements.property(elements.AMY_PT_SUGL, "MenuSection", elem.SC_SOLID)
  673. elements.property(elements.AMY_PT_SUGL, "MenuVisible", 1)
  674. elements.property(elements.AMY_PT_SUGL, "Weight", 750)
  675. elements.property(elements.AMY_PT_SUGL, "Temperature", 293)
  676. elements.property(elements.AMY_PT_SUGL, "HeatConduct", 3)
  677. elements.property(elements.AMY_PT_SUGL, "HighTemperature", 6750)
  678. elements.property(elements.AMY_PT_SUGL, "HighPressure", 37)
  679. elements.property(elements.AMY_PT_SUGL, "HighPressureTransition", elem.DEFAULT_PT_BGLA)
  680.  
  681. --Copper {Amy}
  682.  
  683. --[[{UNFINISHED}local COPR = elements.allocate("AMY", "COPR")
  684. elements.element(elements.AMY_PT_COPR, elements.element(elements.DEFAULT_PT_GOLD))
  685. elements.property(elements.AMY_PT_COPR, "Name", "COPR")
  686. elements.property(elements.AMY_PT_COPR, "Description", "Copper. Very conductive, with a low melting point.")
  687. elements.property(elements.AMY_PT_COPR, "Colour", 0xB36500)
  688. elements.property(elements.AMY_PT_COPR, "MenuSection", elem.SC_ELEC)
  689. elements.property(elements.AMY_PT_COPR, "MenuVisible", 1)
  690. elements.property(elements.AMY_PT_COPR, "Temperature", 293)
  691. elements.property(elements.AMY_PT_COPR, "HeatConduct", 100)
  692. elements.property(elements.AMY_PT_COPR, "HighTemperature", 1500)
  693.  
  694. {DISREGARD THESE FUNCTIONS}
  695.  
  696. --local function get_property(prop, x, y)
  697. --if sim.partNeighbours(x, y, 4, AMY_PT_COPR) == elem.DEFAULT_PT_SPRK then print("SPRKED")
  698. --end
  699. --if sim.partProperty(AMY_PT_COPR, FIELD_TYPE) == "sprk" then sim.partProperty(AMY_PT_COPR, object field, object value)
  700.  
  701. -- end
  702. function sprk(i,x,y,s,n)
  703. if sim.partNeighbours(i, x, y, 4, AMY_PT_COPR) == elem.DEFAULT_PT_SPRK then print("SPRKED")
  704. end
  705. end
  706. ]]
  707.  
  708.  
  709.  
  710. --Liquid Hydrogen {Extensively Edited by Amy}
  711.  
  712. local LHYG = elements.allocate('AMY', 'LHYG')
  713. elements.element(LHYG, elements.element(elements.DEFAULT_PT_GLOW))
  714. elements.property(elements.AMY_PT_LHYG, "Name", "LHYG")
  715. elements.property(elements.AMY_PT_LHYG, "Description", "Liquid Hydrogen.")
  716. elements.property(elements.AMY_PT_LHYG, "Color", 0x99FFFF)
  717. elements.property(elements.AMY_PT_LHYG, "MenuSection", elem.SC_LIQUID)
  718. elements.property(elements.AMY_PT_LHYG, "Gravity", 0.4)
  719. elements.property(elements.AMY_PT_LHYG, "Falldown", 2)
  720. elements.property(elements.AMY_PT_LHYG, "Flammable", 16384)
  721. elements.property(elements.AMY_PT_LHYG, "Explosive", 1)
  722. elements.property(elements.AMY_PT_LHYG, "Temperature", 0)
  723. elements.property(elements.AMY_PT_LHYG, "HighTemperature", 60)
  724. elements.property(elements.AMY_PT_LHYG, "HighTemperatureTransition", elem.DEFAULT_PT_HYGN)
  725. local function Lflare(i, colr, colg, colb)
  726. return 1, 0x00000004, 255, 153, 255, 255, 255, 153, 255, 255
  727. end
  728. tpt.graphics_func(Lflare, elements.AMY_PT_LHYG)
  729.  
  730. --Change HYGN so it changes states with LHYG
  731.  
  732. elements.property(elements.DEFAULT_PT_HYGN, "LowTemperature", 60)
  733. elements.property(elements.DEFAULT_PT_HYGN, "LowTemperatureTransition", elements.AMY_PT_LHYG)
  734.  
  735. --BPDR Element
  736.  
  737. local element1 = elements.allocate("FEYNMAN", "BPDR")
  738. elements.element(elements.FEYNMAN_PT_BPDR, elements.element(elements.DEFAULT_PT_BCOL))
  739. elements.property(elements.FEYNMAN_PT_BPDR, "Name", "BPDR")
  740. elements.property(elements.FEYNMAN_PT_BPDR, "Description", "Black Powder, Very explosive.")
  741. elements.property(elements.FEYNMAN_PT_BPDR, "Colour", 0x353535)
  742. elements.property(elements.FEYNMAN_PT_BPDR, "MenuSection", 5)
  743. elements.property(elements.FEYNMAN_PT_BPDR, "Gravity", .5)
  744. elements.property(elements.FEYNMAN_PT_BPDR, "Flammable", 10000)
  745. elements.property(elements.FEYNMAN_PT_BPDR, "Explosive", 1)
  746. elements.property(elements.FEYNMAN_PT_BPDR, "Loss", 1)
  747. elements.property(elements.FEYNMAN_PT_BPDR, "AirLoss", .5)
  748. elements.property(elements.FEYNMAN_PT_BPDR, "AirDrag", .01)
  749. elements.property(elements.FEYNMAN_PT_BPDR, "Advection", .01)
  750. elements.property(elements.FEYNMAN_PT_BPDR, "Weight", 0)
  751. elements.property(elements.FEYNMAN_PT_BPDR, "Diffusion", 0)
  752.  
  753. --Clouds Mod
  754.  
  755. local a = elements.allocate("MOD", "UCLD")
  756. elements.element(elements.MOD_PT_UCLD, elements.element(elements.DEFAULT_PT_HYGN))
  757. elements.property(elements.MOD_PT_UCLD, "Name", "UCLD")
  758. elements.property(elements.MOD_PT_UCLD, "Description", "Uranium Cloud. First type of radioactive cloud.")
  759. elements.property(elements.MOD_PT_UCLD, "Colour", 0xAAAAFF)
  760. elements.property(elements.MOD_PT_UCLD, "MenuSection", 10)
  761. elements.property(elements.MOD_PT_UCLD, "Gravity", 0)
  762. elements.property(elements.MOD_PT_UCLD, "Explosive", 0)
  763. elements.property(elements.MOD_PT_UCLD, "Weight", 0)
  764. elements.property(elements.MOD_PT_UCLD, "Diffusion", 1)
  765. elements.property(elements.MOD_PT_UCLD, "Hardness", 0)
  766. elements.property(elements.MOD_PT_UCLD, "Flammable", 0)
  767. elements.property(elements.MOD_PT_UCLD, "AirDrag", 0.01)
  768. function rain(i,x,y,s,n)
  769. if math.random(1,500) < 5 then
  770. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'uran')
  771. end
  772. if math.random(1,500) == 20 then
  773. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'boyl')
  774. end
  775. end
  776. tpt.element_func(rain,a)
  777.  
  778. local b = elements.allocate("MOD2", "RACD")
  779. elements.element(elements.MOD2_PT_RACD, elements.element(elements.DEFAULT_PT_HYGN))
  780. elements.property(elements.MOD2_PT_RACD, "Name", "RACD")
  781. elements.property(elements.MOD2_PT_RACD, "Description", "Rain Cloud.")
  782. elements.property(elements.MOD2_PT_RACD, "Colour", 0xA9ACB6)
  783. elements.property(elements.MOD2_PT_RACD, "MenuSection", 6)
  784. elements.property(elements.MOD2_PT_RACD, "Gravity", 0)
  785. elements.property(elements.MOD2_PT_RACD, "Explosive", 0)
  786. elements.property(elements.MOD2_PT_RACD, "Weight", 0)
  787. elements.property(elements.MOD2_PT_RACD, "Diffusion", 1)
  788. elements.property(elements.MOD2_PT_RACD, "Hardness", 0)
  789. elements.property(elements.MOD2_PT_RACD, "Flammable", 0)
  790. elements.property(elements.MOD2_PT_RACD, "AirDrag", 0.01)
  791. elements.property(elements.MOD2_PT_RACD, "LowTemperature", 273.15)
  792. elements.property(elements.MOD2_PT_RACD, "LowTemperatureTransition", "MOD_PT_SCLD")
  793. elements.property(elements.MOD2_PT_RACD, "Temperature", 295.15)
  794.  
  795. function rain(i,x,y,s,n)
  796. if math.random(1,500) == 20 then
  797. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  798.  
  799. end
  800. end
  801. tpt.element_func(rain,b)
  802.  
  803. local c = elements.allocate("MOD3", "SCLD")
  804. elements.element(elements.MOD3_PT_SCLD, elements.element(elements.DEFAULT_PT_HYGN))
  805. elements.property(elements.MOD3_PT_SCLD, "Name", "SCLD")
  806. elements.property(elements.MOD3_PT_SCLD, "Description", "Snow Cloud.")
  807. elements.property(elements.MOD3_PT_SCLD, "Colour", 0x8F8FBC)
  808. elements.property(elements.MOD3_PT_SCLD, "MenuSection", 6)
  809. elements.property(elements.MOD3_PT_SCLD, "Gravity", 0)
  810. elements.property(elements.MOD3_PT_SCLD, "Explosive", 0)
  811. elements.property(elements.MOD3_PT_SCLD, "Weight", 0)
  812. elements.property(elements.MOD3_PT_SCLD, "Diffusion", 1)
  813. elements.property(elements.MOD3_PT_SCLD, "Hardness", 0)
  814. elements.property(elements.MOD3_PT_SCLD, "Flammable", 0)
  815. elements.property(elements.MOD3_PT_SCLD, "AirDrag", 0.01)
  816. elements.property(elements.MOD3_PT_SCLD, "HighTemperature", 273.15)
  817. elements.property(elements.MOD3_PT_SCLD, "HighTemperatureTransition", "MOD_PT_RACD")
  818. elements.property(elements.MOD3_PT_SCLD, "Temperature", 263.15 )
  819. elements.property(elements.MOD3_PT_SCLD, "LowTemperature", 245.15)
  820. elements.property(elements.MOD3_PT_SCLD, "LowTemperatureTransition", "MOD_PT_ICE")
  821.  
  822. function rain(i,x,y,s,n)
  823. if math.random(1,500) == 20 then
  824. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'snow')
  825. end
  826. end
  827. tpt.element_func(rain,c)
  828.  
  829. local d = elements.allocate("MOD4", "DRCD")
  830. elements.element(elements.MOD4_PT_DRCD, elements.element(elements.DEFAULT_PT_HYGN))
  831. elements.property(elements.MOD4_PT_DRCD, "Name", "DRCD")
  832. elements.property(elements.MOD4_PT_DRCD, "Description", "Distilled Rain Cloud.")
  833. elements.property(elements.MOD4_PT_DRCD, "Colour", 0x506987)
  834. elements.property(elements.MOD4_PT_DRCD, "MenuSection", 6)
  835. elements.property(elements.MOD4_PT_DRCD, "Gravity", 0)
  836. elements.property(elements.MOD4_PT_DRCD, "Explosive", 0)
  837. elements.property(elements.MOD4_PT_DRCD, "Weight", 0)
  838. elements.property(elements.MOD4_PT_DRCD, "Diffusion", 1)
  839. elements.property(elements.MOD4_PT_DRCD, "Hardness", 0)
  840. elements.property(elements.MOD4_PT_DRCD, "Flammable", 0)
  841. elements.property(elements.MOD4_PT_DRCD, "AirDrag", 0.01)
  842. elements.property(elements.MOD4_PT_DRCD, "LowTemperature", 273.15)
  843. elements.property(elements.MOD4_PT_DRCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  844. elements.property(elements.MOD4_PT_DRCD, "Temperature", 295.15)
  845.  
  846. function rain(i,x,y,s,n)
  847. if math.random(1,500) == 20 then
  848. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'dstw')
  849. end
  850. end
  851. tpt.element_func(rain,d)
  852.  
  853. local e = elements.allocate("MOD5", "SRCD")
  854. elements.element(elements.MOD5_PT_SRCD, elements.element(elements.DEFAULT_PT_HYGN))
  855. elements.property(elements.MOD5_PT_SRCD, "Name", "SRCD")
  856. elements.property(elements.MOD5_PT_SRCD, "Description", "Saltwater Rain Cloud.")
  857. elements.property(elements.MOD5_PT_SRCD, "Colour", 0x380474)
  858. elements.property(elements.MOD5_PT_SRCD, "MenuSection", 6)
  859. elements.property(elements.MOD5_PT_SRCD, "MenuVisible", 0)
  860. elements.property(elements.MOD5_PT_SRCD, "Gravity", 0)
  861. elements.property(elements.MOD5_PT_SRCD, "Explosive", 0)
  862. elements.property(elements.MOD5_PT_SRCD, "Weight", 0)
  863. elements.property(elements.MOD5_PT_SRCD, "Diffusion", 1)
  864. elements.property(elements.MOD5_PT_SRCD, "Hardness", 0)
  865. elements.property(elements.MOD5_PT_SRCD, "Flammable", 0)
  866. elements.property(elements.MOD5_PT_SRCD, "AirDrag", 0.01)
  867. elements.property(elements.MOD5_PT_SRCD, "LowTemperature", 273.15)
  868. elements.property(elements.MOD5_PT_SRCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  869. elements.property(elements.MOD5_PT_SRCD, "Temperature", 295.15)
  870.  
  871. function rain(i,x,y,s,n)
  872. if math.random(1,500) == 20 then
  873. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'sltw')
  874. end
  875. end
  876. tpt.element_func(rain,e)
  877.  
  878. local f = elements.allocate("MOD6", "TSCD")
  879. elements.element(elements.MOD6_PT_TSCD, elements.element(elements.DEFAULT_PT_HYGN))
  880. elements.property(elements.MOD6_PT_TSCD, "Name", "TSCD")
  881. elements.property(elements.MOD6_PT_TSCD, "Description", "Thunderstorm Cloud.")
  882. elements.property(elements.MOD6_PT_TSCD, "Colour", 0x302B54)
  883. elements.property(elements.MOD6_PT_TSCD, "MenuSection", 6)
  884. elements.property(elements.MOD6_PT_TSCD, "MenuVisible", 0)
  885. elements.property(elements.MOD6_PT_TSCD, "Gravity", 0)
  886. elements.property(elements.MOD6_PT_TSCD, "Explosive", 0)
  887. elements.property(elements.MOD6_PT_TSCD, "Weight", 0)
  888. elements.property(elements.MOD6_PT_TSCD, "Diffusion", 1)
  889. elements.property(elements.MOD6_PT_TSCD, "Hardness", 0)
  890. elements.property(elements.MOD6_PT_TSCD, "Flammable", 0)
  891. elements.property(elements.MOD6_PT_TSCD, "AirDrag", 0.01)
  892. elements.property(elements.MOD6_PT_TSCD, "LowTemperature", 273.15)
  893. elements.property(elements.MOD6_PT_TSCD, "LowTemperatureTransition", "MOD_PT_SCLD")
  894. elements.property(elements.MOD6_PT_TSCD, "Temperature", 303.15)
  895.  
  896. function rain(i,x,y,s,n)
  897. if math.random(1,500) == 20 then
  898. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  899. end
  900. end
  901. tpt.element_func(rain,f)
  902.  
  903. --Explosives
  904.  
  905. --The Highly Explosive mod for Powder Toy
  906.  
  907. local function explosion(x, y, s)
  908. for px = -1, 1 do
  909. for py = -1, 1 do
  910. tpt.create(x + px, y - py, "PLSM")
  911. local pressure = sim.pressure((x + px) / 4.0, (y + py) / 4.0)
  912. sim.pressure((x + px) / 4.0, (y + py) / 4.0, pressure + s * 10)
  913. sim.velocityX((x + px) / 4.0, y / 4.0, px * s)
  914. sim.velocityY((x + px) / 4.0, (y - py) / 4.0, -py * s)
  915.  
  916. end
  917. end
  918. end
  919.  
  920. local WBOMB = elements.allocate("MEXPL", "HELD")
  921. elements.element(elements.MEXPL_PT_HELD, elements.element(elements.DEFAULT_PT_GLOW))
  922. elements.property(elements.MEXPL_PT_HELD, "Color", "0xFFFEAF27")
  923. elements.property(elements.MEXPL_PT_HELD, "Name", "HELD")
  924. elements.property(elements.MEXPL_PT_HELD, "Description", "Highly Explosive Liquid.")
  925. elements.property(elements.MEXPL_PT_HELD, "MenuVisible", 1)
  926. elements.property(elements.MEXPL_PT_HELD, "MenuSection", 5)
  927. elements.property(elements.MEXPL_PT_HELD, "Advection", 0.1)
  928. elements.property(elements.MEXPL_PT_HELD, "AirDrag", 0.1)
  929. elements.property(elements.MEXPL_PT_HELD, "AirLoss", 0.9)
  930. elements.property(elements.MEXPL_PT_HELD, "Loss", 0.9)
  931. elements.property(elements.MEXPL_PT_HELD, "Falldown", 2)
  932. elements.property(elements.MEXPL_PT_HELD, "Hardness", 0.8)
  933. elements.property(elements.MEXPL_PT_HELD, "Weight", 12)
  934. elements.property(elements.MEXPL_PT_HELD, "Temperature", 340)
  935. elements.property(elements.MEXPL_PT_HELD, "HeatConduct", 100)
  936. elements.property(elements.MEXPL_PT_HELD, "State", 2)
  937. elements.property(elements.MEXPL_PT_HELD, "Properties", 2)
  938. elements.property(elements.MEXPL_PT_HELD, "Explosive", 1)
  939.  
  940. local function HELD_update(i, x, y, s, n)
  941. local r = 1
  942. if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  943.  
  944. explosion(x, y, 1)
  945. tpt.delete(i)
  946. elseif tpt.get_property("temp", i) >= 450 then
  947. explosion(x, y, 1)
  948. tpt.delete(i)
  949. end
  950. end
  951.  
  952. tpt.element_func(HELD_update, elements.MEXPL_PT_HELD)
  953.  
  954. local SBOMB = elements.allocate("MEXPL", "HESD")
  955. elements.element(elements.MEXPL_PT_HESD, elements.element(elements.DEFAULT_PT_BANG))
  956. elements.property(elements.MEXPL_PT_HESD, "Color", "0xFFFF5000")
  957. elements.property(elements.MEXPL_PT_HESD, "Name", "HESD")
  958. elements.property(elements.MEXPL_PT_HESD, "Description", "Highly Explosive Solid.")
  959. elements.property(elements.MEXPL_PT_HESD, "MenuVisible", 1)
  960. elements.property(elements.MEXPL_PT_HESD, "MenuSection", 5)
  961. elements.property(elements.MEXPL_PT_HESD, "Hardness", 0.8)
  962. elements.property(elements.MEXPL_PT_HESD, "Temperature", 293)
  963. elements.property(elements.MEXPL_PT_HESD, "HeatConduct", 100)
  964. elements.property(elements.MEXPL_PT_HESD, "Falldown", 0)
  965. elements.property(elements.MEXPL_PT_HESD, "State", 1)
  966. elements.property(elements.MEXPL_PT_HESD, "Properties", 4)
  967. elements.property(elements.MEXPL_PT_HESD, "Explosive", 1)
  968.  
  969. local function HESD_update(i, x, y, s, n)
  970. local r = 1
  971. if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  972.  
  973. explosion(x, y, 1)
  974. tpt.delete(i)
  975. elseif tpt.get_property("temp", i) >= 450 then
  976. explosion(x, y, 1)
  977. tpt.delete(i)
  978. end
  979. end
  980.  
  981. tpt.element_func(HESD_update, elements.MEXPL_PT_HESD)
  982.  
  983. local GBOMB = elements.allocate("MEXPL", "HEGS")
  984. elements.element(elements.MEXPL_PT_HEGS, elements.element(elements.DEFAULT_PT_GAS))
  985. elements.property(elements.MEXPL_PT_HEGS, "Color", "0xFFEBFE5D")
  986. elements.property(elements.MEXPL_PT_HEGS, "Name", "HEGS")
  987. elements.property(elements.MEXPL_PT_HEGS, "Description", "Highly Explosive Gas.")
  988. elements.property(elements.MEXPL_PT_HEGS, "MenuVisible", 1)
  989. elements.property(elements.MEXPL_PT_HEGS, "MenuSection", 5)
  990. elements.property(elements.MEXPL_PT_HEGS, "Hardness", 0.8)
  991. elements.property(elements.MEXPL_PT_HEGS, "Temperature", 390)
  992. elements.property(elements.MEXPL_PT_HEGS, "HeatConduct", 100)
  993. elements.property(elements.MEXPL_PT_HEGS, "Falldown", 0)
  994. elements.property(elements.MEXPL_PT_HEGS, "Diffusion", 0.5)
  995. elements.property(elements.MEXPL_PT_HEGS, "State", 3)
  996. elements.property(elements.MEXPL_PT_HEGS, "Explosive", 1)
  997.  
  998. local function HEGS_update(i, x, y, s, n)
  999. local r = 1
  1000. if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  1001.  
  1002. explosion(x, y, 1)
  1003. tpt.delete(i)
  1004. elseif tpt.get_property("temp", i) >= 450 then
  1005. explosion(x, y, 1)
  1006. tpt.delete(i)
  1007. end
  1008. end
  1009.  
  1010. tpt.element_func(HEGS_update, elements.MEXPL_PT_HEGS)
  1011.  
  1012. local PBOMB = elements.allocate("MEXPL", "HEPR")
  1013. elements.element(elements.MEXPL_PT_HEPR, elements.element(elements.DEFAULT_PT_DUST))
  1014. elements.property(elements.MEXPL_PT_HEPR, "Color", "0xFFFFFF00")
  1015. elements.property(elements.MEXPL_PT_HEPR, "Name", "HEPR")
  1016. elements.property(elements.MEXPL_PT_HEPR, "Description", "Highly Explosive Powder.")
  1017. elements.property(elements.MEXPL_PT_HEPR, "MenuVisible", 1)
  1018. elements.property(elements.MEXPL_PT_HEPR, "MenuSection", 5)
  1019. elements.property(elements.MEXPL_PT_HEPR, "Hardness", 0.8)
  1020. elements.property(elements.MEXPL_PT_HEPR, "Temperature", 293)
  1021. elements.property(elements.MEXPL_PT_HEPR, "HeatConduct", 100)
  1022. elements.property(elements.MEXPL_PT_HEPR, "Falldown", 1)
  1023. elements.property(elements.MEXPL_PT_HEPR, "Explosive", 1)
  1024. elements.property(elements.MEXPL_PT_HELD, "Advection", 0.1)
  1025. elements.property(elements.MEXPL_PT_HELD, "AirDrag", 0.1)
  1026. elements.property(elements.MEXPL_PT_HELD, "AirLoss", 0.9)
  1027. elements.property(elements.MEXPL_PT_HELD, "Loss", 0.9)
  1028. elements.property(elements.MEXPL_PT_HELD, "Hardness", 0.8)
  1029. elements.property(elements.MEXPL_PT_HELD, "Weight", 12)
  1030. elements.property(elements.MEXPL_PT_HEPR, "State", 1)
  1031. elements.property(elements.MEXPL_PT_HEPR, "Properties", 4)
  1032.  
  1033. local function HEPR_update(i, x, y, s, n)
  1034. local r = 1
  1035. if sim.pressure(x / 4.0, y / 4.0) >= 7.5 then
  1036.  
  1037. explosion(x, y, 1)
  1038. tpt.delete(i)
  1039. elseif tpt.get_property("temp", i) >= 450 then
  1040. explosion(x, y, 1)
  1041. tpt.delete(i)
  1042. end
  1043. end
  1044.  
  1045. tpt.element_func(HEPR_update, elements.MEXPL_PT_HEPR)
  1046.  
  1047. elements.property(elements.MEXPL_PT_HESD, "HighTemperature", 327)
  1048. elements.property(elements.MEXPL_PT_HESD, "HighTemperatureTransition", elements.MEXPL_PT_HELD)
  1049. elements.property(elements.MEXPL_PT_HESD, "HighPressure", 2)
  1050. elements.property(elements.MEXPL_PT_HESD, "HighPressureTransition", elements.MEXPL_PT_HEPR)
  1051. elements.property(elements.MEXPL_PT_HEPR, "HighTemperature", 326)
  1052. elements.property(elements.MEXPL_PT_HEPR, "HighTemperatureTransition", elements.MEXPL_PT_HELD)
  1053. elements.property(elements.MEXPL_PT_HEGS, "LowTemperature", 365)
  1054. elements.property(elements.MEXPL_PT_HEGS, "LowTemperatureTransition", elements.MEXPL_PT_HELD)
  1055. elements.property(elements.MEXPL_PT_HELD, "HighTemperature", 365)
  1056. elements.property(elements.MEXPL_PT_HELD, "HighTemperatureTransition", elements.MEXPL_PT_HEGS)
  1057. elements.property(elements.MEXPL_PT_HELD, "LowTemperature", 327)
  1058. elements.property(elements.MEXPL_PT_HELD, "LowTemperatureTransition", elements.MEXPL_PT_HESD)
  1059.  
  1060. --"New Elements"
  1061.  
  1062. local function heat()
  1063. tpt.set_property("temp", 9999, "HETR")
  1064. tpt.set_property("temp", 0, "COLR")
  1065. end
  1066. tpt.register_step(heat)
  1067.  
  1068. elements.allocate('YOSHI', 'HETR')
  1069. elements.element(elements.YOSHI_PT_HETR, elements.element(elements.DEFAULT_PT_DMND))
  1070. elements.property(elements.YOSHI_PT_HETR, 'Name', 'HETR')
  1071. elements.property(elements.YOSHI_PT_HETR, 'Description', 'Heats Elements.')
  1072. elements.property(elements.YOSHI_PT_HETR, 'Color', '0xFF1111')
  1073. elements.property(elements.YOSHI_PT_HETR, 'MenuSection', '2')
  1074. elements.property(elements.YOSHI_PT_HETR, 'HeatConduct', '65535')
  1075. local g = function(i, x, y, s, n)
  1076. --Update Function
  1077. end
  1078. tpt.element_func(g, tpt.element('HETR'))
  1079.  
  1080. local function heat()
  1081. end
  1082. tpt.register_step(heat)
  1083.  
  1084. elements.allocate('YOSHI', 'COLR')
  1085. elements.element(elements.YOSHI_PT_COLR, elements.element(elements.DEFAULT_PT_DMND))
  1086. elements.property(elements.YOSHI_PT_COLR, 'Name', 'COLR')
  1087. elements.property(elements.YOSHI_PT_COLR, 'Description', 'Cools Elements.')
  1088. elements.property(elements.YOSHI_PT_COLR, 'Color', '0x1111FF')
  1089. elements.property(elements.YOSHI_PT_COLR, 'MenuSection', '2')
  1090. elements.property(elements.YOSHI_PT_COLR, 'HeatConduct', '65535')
  1091. local g = function(i, x, y, s, n)
  1092. --Update Function
  1093. end
  1094. tpt.element_func(g, tpt.element('COLR'))
  1095.  
  1096. elements.allocate('YOSHI', 'HCTD')
  1097. elements.element(elements.YOSHI_PT_HCTD, elements.element(elements.DEFAULT_PT_DMND))
  1098. elements.property(elements.YOSHI_PT_HCTD, 'Name', 'HCTD')
  1099. elements.property(elements.YOSHI_PT_HCTD, 'Description', 'Heat conductor.')
  1100. elements.property(elements.YOSHI_PT_HCTD, 'Color', '0x11FF11')
  1101. elements.property(elements.YOSHI_PT_HCTD, 'MenuSection', '2')
  1102. elements.property(elements.YOSHI_PT_HCTD, 'HeatConduct', '65535')
  1103. local g = function(i, x, y, s, n)
  1104. --Update Function
  1105. end
  1106. tpt.element_func(g, tpt.element('HCTD'))
  1107.  
  1108. local a = elements.allocate("YOSHI", "RCLD")
  1109. elements.element(elements.YOSHI_PT_RCLD, elements.element(elements.DEFAULT_PT_HYGN))
  1110. elements.property(elements.YOSHI_PT_RCLD, "Name", "RCLD")
  1111. elements.property(elements.YOSHI_PT_RCLD, "Description", "Radioactive cloud, Second type.")
  1112. elements.property(elements.YOSHI_PT_RCLD, "Colour", 0x11FF22)
  1113. elements.property(elements.YOSHI_PT_RCLD, "MenuSection", 10)
  1114. elements.property(elements.YOSHI_PT_RCLD, "Gravity", 0)
  1115. elements.property(elements.YOSHI_PT_RCLD, "Explosive", 0)
  1116. elements.property(elements.YOSHI_PT_RCLD, "Weight", 0)
  1117. elements.property(elements.YOSHI_PT_RCLD, "Diffusion", 1)
  1118. elements.property(elements.YOSHI_PT_RCLD, "Hardness", 0)
  1119. elements.property(elements.YOSHI_PT_RCLD, "Flammable", 100000)
  1120. elements.property(elements.YOSHI_PT_RCLD, "AirDrag", 0.01)
  1121. function rain(i,x,y,s,n)
  1122. if math.random(1,500) < 5 then
  1123. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plut')
  1124. end
  1125. if math.random(1,500) == 20 then
  1126. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'uran')
  1127. end
  1128. if math.random(1,500) == 30 then
  1129. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'isoz')
  1130. end
  1131. if math.random(1,500) == 40 then
  1132. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'deut')
  1133. end
  1134. if math.random(1,500) == 50 then
  1135. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bvbr')
  1136. end
  1137. end
  1138. tpt.element_func(rain,a)
  1139.  
  1140. --[[ {NOT USEFUL ATM} local a = elements.allocate("YOSHI", "SULF")
  1141. elements.element(elements.YOSHI_PT_SULF, elements.element(elements.DEFAULT_PT_COAL))
  1142. elements.property(elements.YOSHI_PT_SULF, "Name", "SULF")
  1143. elements.property(elements.YOSHI_PT_SULF, "Description", "Basic Sulphur.")
  1144. elements.property(elements.YOSHI_PT_SULF, "Colour", 0xFFFF11)
  1145. elements.property(elements.YOSHI_PT_SULF, "MenuSection", 9)
  1146. elements.property(elements.YOSHI_PT_SULF, "Gravity", 0)
  1147. elements.property(elements.YOSHI_PT_SULF, "Explosive", 0)
  1148. elements.property(elements.YOSHI_PT_SULF, "Weight", 10)
  1149. elements.property(elements.YOSHI_PT_SULF, "Diffusion", 0)
  1150. elements.property(elements.YOSHI_PT_SULF, "Hardness", 0)
  1151. elements.property(elements.YOSHI_PT_SULF, "Flammable", 10)]]
  1152.  
  1153. --[[ {MAY BE USEFUL LATER?}local a = elements.allocate("YOSHI", "SACD")
  1154. elements.element(elements.YOSHI_PT_SACD, elements.element(elements.DEFAULT_PT_ACID))
  1155. elements.property(elements.YOSHI_PT_SACD, "Name", "SACD")
  1156. elements.property(elements.YOSHI_PT_SACD, "Description", "Sulphuric acid, does nothing yet.")
  1157. elements.property(elements.YOSHI_PT_SACD, "Colour", 0xEEEE11)
  1158. elements.property(elements.YOSHI_PT_SACD, "MenuSection", 7)
  1159. elements.property(elements.YOSHI_PT_SACD, "Gravity", 1)
  1160. elements.property(elements.YOSHI_PT_SACD, "Explosive", 0)
  1161. elements.property(elements.YOSHI_PT_SACD, "Weight", 10)
  1162. elements.property(elements.YOSHI_PT_SACD, "Diffusion", 0.1)
  1163. elements.property(elements.YOSHI_PT_SACD, "Hardness", 0)
  1164. elements.property(elements.YOSHI_PT_SACD, "Flammable", 0)]]--
  1165.  
  1166. local a = elements.allocate("YOSHI", "RMTL")
  1167. elements.element(elements.YOSHI_PT_RMTL, elements.element(elements.DEFAULT_PT_TTAN))
  1168. elements.property(elements.YOSHI_PT_RMTL, "Name", "RMTL")
  1169. elements.property(elements.YOSHI_PT_RMTL, "Description", "Realistic metal.")
  1170. elements.property(elements.YOSHI_PT_RMTL, "Colour", 0x666666)
  1171. elements.property(elements.YOSHI_PT_RMTL, "MenuSection", 9)
  1172. elements.property(elements.YOSHI_PT_RMTL, "Gravity", 0)
  1173. elements.property(elements.YOSHI_PT_RMTL, "Explosive", 0)
  1174. elements.property(elements.YOSHI_PT_RMTL, "Weight", 100)
  1175. elements.property(elements.YOSHI_PT_RMTL, "Diffusion", 0)
  1176. elements.property(elements.YOSHI_PT_RMTL, "Hardness", 0)
  1177. elements.property(elements.YOSHI_PT_RMTL, "Flammable", 0)
  1178. elements.property(elements.YOSHI_PT_RMTL, "AirLoss", 0)
  1179. elements.property(elements.YOSHI_PT_RMTL, "Temperature", 273.15 + 22)
  1180. elements.property(elements.YOSHI_PT_RMTL, "HighTemperature", 1798)
  1181. elements.property(elements.YOSHI_PT_RMTL, "HighTemperatureTransition", elements.YOSHI_PT_MRMT)
  1182.  
  1183. local a = elements.allocate("YOSHI", "MRMT")
  1184. elements.element(elements.YOSHI_PT_MRMT, elements.element(elements.DEFAULT_PT_MERC))
  1185. elements.property(elements.YOSHI_PT_MRMT, "Name", "MRMT")
  1186. elements.property(elements.YOSHI_PT_MRMT, "Description", "Molten realistic metal.")
  1187. elements.property(elements.YOSHI_PT_MRMT, "Colour", 0xFEDCBA)
  1188. elements.property(elements.YOSHI_PT_MRMT, "MenuSection", 4)
  1189. elements.property(elements.YOSHI_PT_MRMT, "MenuVisible", 0)
  1190. elements.property(elements.YOSHI_PT_MRMT, "Gravity", 1)
  1191. elements.property(elements.YOSHI_PT_MRMT, "Explosive", 0)
  1192. elements.property(elements.YOSHI_PT_MRMT, "Weight", 100)
  1193. elements.property(elements.YOSHI_PT_MRMT, "Diffusion", 0)
  1194. elements.property(elements.YOSHI_PT_MRMT, "Hardness", 0)
  1195. elements.property(elements.YOSHI_PT_MRMT, "Flammable", 0)
  1196. elements.property(elements.YOSHI_PT_MRMT, "Temperature", 1799)
  1197. elements.property(elements.YOSHI_PT_MRMT, "LowTemperature", 1798)
  1198. elements.property(elements.YOSHI_PT_MRMT, "LowTemperatureTransition", elements.YOSHI_PT_RMTL)
  1199.  
  1200. local a = elements.allocate("YOSHI", "THNL")
  1201. elements.element(elements.YOSHI_PT_THNL, elements.element(elements.DEFAULT_PT_NITR))
  1202. elements.property(elements.YOSHI_PT_THNL, "Name", "THNL")
  1203. elements.property(elements.YOSHI_PT_THNL, "Description", "Thermonucleum, Extremely explosive.")
  1204. elements.property(elements.YOSHI_PT_THNL, "Colour", 0x3F94EC)
  1205. elements.property(elements.YOSHI_PT_THNL, "MenuSection", 10)
  1206. elements.property(elements.YOSHI_PT_THNL, "Gravity", 1)
  1207. elements.property(elements.YOSHI_PT_THNL, "Explosive", 50)
  1208. elements.property(elements.YOSHI_PT_THNL, "Weight", 10)
  1209. elements.property(elements.YOSHI_PT_THNL, "Diffusion", 0)
  1210. elements.property(elements.YOSHI_PT_THNL, "Hardness", 0)
  1211. elements.property(elements.YOSHI_PT_THNL, "Flammable", 100000)
  1212. elements.property(elements.YOSHI_PT_THNL, "Temperature", 295.15)
  1213. elements.property(elements.YOSHI_PT_THNL, "AirDrag", 0.5)
  1214.  
  1215. elements.allocate('AU3FGEN', 'GNTM')
  1216. elements.element(elements.AU3FGEN_PT_GNTM, elements.element(elements.DEFAULT_PT_DMND))
  1217. elements.property(elements.AU3FGEN_PT_GNTM, 'Name', 'GNTM')
  1218. elements.property(elements.AU3FGEN_PT_GNTM, 'Description', 'Gentium, Strange and laggy.')
  1219. elements.property(elements.AU3FGEN_PT_GNTM, 'Color', '0x1F7F3F')
  1220. elements.property(elements.AU3FGEN_PT_GNTM, 'MenuSection', '10')
  1221. elements.property(elements.AU3FGEN_PT_GNTM, 'Gravity', '0')
  1222. elements.property(elements.AU3FGEN_PT_GNTM, 'Flammable', '65535')
  1223. elements.property(elements.AU3FGEN_PT_GNTM, 'Explosive', '1')
  1224. elements.property(elements.AU3FGEN_PT_GNTM, 'Loss', '0')
  1225. elements.property(elements.AU3FGEN_PT_GNTM, 'AirLoss', '1')
  1226. elements.property(elements.AU3FGEN_PT_GNTM, 'AirDrag', '0')
  1227. elements.property(elements.AU3FGEN_PT_GNTM, 'Advection', '1')
  1228. elements.property(elements.AU3FGEN_PT_GNTM, 'Weight', '1024')
  1229. elements.property(elements.AU3FGEN_PT_GNTM, 'Diffusion', '0')
  1230. elements.property(elements.AU3FGEN_PT_GNTM, 'Falldown', '0')
  1231. local g = function(i, x, y, s, n)
  1232. --Update Function
  1233. end
  1234. tpt.element_func(g, tpt.element('GNTM'))
  1235. local g = function(i, r, g, b)
  1236. local function gfunc(i, r, g, b)
  1237. 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)
  1238. end
  1239. tpt.graphics_func(gfunc, tpt.element('GNTM'))
  1240. end
  1241. tpt.graphics_func(g, tpt.element('GNTM'))
  1242.  
  1243. --Radioactive Mod
  1244.  
  1245. --Changes
  1246. -- You can change this from on/off.
  1247.  
  1248. on=40
  1249. off=0
  1250.  
  1251.  
  1252. elements.property(elements.DEFAULT_PT_ACID, "Flammable", off)
  1253. -- Added Elements.
  1254.  
  1255. local a = elements.allocate("X", "C")
  1256. elements.element(elements.X_PT_C, elements.element(elements.DEFAULT_PT_WOOD))
  1257. elements.property(elements.X_PT_C, "Name", "SAWD")
  1258. elements.property(elements.X_PT_C, "Description", "Saw Dust, Flammable.")
  1259. elements.property(elements.X_PT_C, "Colour", 0xFFFF66)
  1260. elements.property(elements.X_PT_C, "MenuSection", 8)
  1261. elements.property(elements.X_PT_C, "Gravity", 1)
  1262. elements.property(elements.X_PT_C, "Flammable", 30)
  1263. elements.property(elements.X_PT_C, "Explosive", 0)
  1264. elements.property(elements.X_PT_C, "Weight", 20)
  1265. elements.property(elements.X_PT_C, "Diffusion", 0.5)
  1266. elements.property(elements.X_PT_C, "Falldown", 1)
  1267.  
  1268. local a = elements.allocate("C", "Q")
  1269. elements.element(elements.C_PT_Q, elements.element(elements.DEFAULT_PT_HYGN))
  1270. elements.property(elements.C_PT_Q, "Name", "????")
  1271. elements.property(elements.C_PT_Q, "Description", "????")
  1272. elements.property(elements.C_PT_Q, "Colour", 0xFFFF0080)
  1273. elements.property(elements.C_PT_Q, "MenuSection", 10)
  1274. elements.property(elements.C_PT_Q, "Gravity", 0.3)
  1275. elements.property(elements.C_PT_Q, "Explosive", 1)
  1276. elements.property(elements.C_PT_Q, "Weight", 66)
  1277. elements.property(elements.C_PT_Q, "Diffusion", 0)
  1278. elements.property(elements.C_PT_Q, "HotAir", -0.1)
  1279. elements.property(elements.C_PT_Q, "Hardness", 0)
  1280.  
  1281. local q={0x99FFFF,0x9999FF,0xCCFF00,0x00FFCC,0x00CC00,0x330099}
  1282. local z=q[math.random(1,6)]
  1283.  
  1284. elements.property(elements.C_PT_Q, "Colour", z)
  1285.  
  1286. function light(i,x,y,s,n)
  1287. if math.random(1,300000) == 10 then
  1288. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  1289. end
  1290. end
  1291. tpt.element_func(light,a)
  1292.  
  1293. local a = elements.allocate("B", "Q")
  1294. elements.element(elements.B_PT_Q, elements.element(elements.DEFAULT_PT_HYGN))
  1295. elements.property(elements.B_PT_Q, "Name", "LCLD")
  1296. elements.property(elements.B_PT_Q, "Description", "Lava Clouds.")
  1297. elements.property(elements.B_PT_Q, "Colour", 0xCC0000)
  1298. elements.property(elements.B_PT_Q, "MenuSection", 6)
  1299. elements.property(elements.B_PT_Q, "Gravity", 0.1)
  1300. elements.property(elements.B_PT_Q, "Explosive", 0)
  1301. elements.property(elements.B_PT_Q, "Weight", 66)
  1302. elements.property(elements.B_PT_Q, "Temperature", math.huge)
  1303. elements.property(elements.B_PT_Q, "Diffusion", 0.1)
  1304. elements.property(elements.B_PT_Q, "Hardness", 0)
  1305.  
  1306. function fire(i,x,y,s,n)
  1307. if math.random(1,750) == 10 then
  1308. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lava')
  1309. end
  1310. end
  1311. tpt.element_func(fire,a)
  1312.  
  1313. --[[
  1314.  
  1315. local a = elements.allocate("V", "X")
  1316. elements.element(elements.V_PT_X, elements.element(elements.DEFAULT_PT_HYGN))
  1317. elements.property(elements.V_PT_X, "Name", "CLDS")
  1318. elements.property(elements.V_PT_X, "Description", "Clouds. Produce Water.")
  1319. elements.property(elements.V_PT_X, "Colour", 0x3366CC)
  1320. elements.property(elements.V_PT_X, "MenuSection", 6)
  1321. elements.property(elements.V_PT_X, "Gravity", 0.3)
  1322. elements.property(elements.V_PT_X, "Explosive", 0)
  1323. elements.property(elements.V_PT_X, "Weight", 88)
  1324. elements.property(elements.V_PT_X, "Diffusion", 0.2)
  1325. elements.property(elements.V_PT_X, "Hardness", 0)
  1326.  
  1327. function rain(i,x,y,s,n)
  1328. if math.random(1,750) == 10 then
  1329. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  1330. end
  1331. end
  1332. tpt.element_func(rain,a)]]--
  1333.  
  1334. local a = elements.allocate("V", "W")
  1335. elements.element(elements.V_PT_W, elements.element(elements.DEFAULT_PT_HYGN))
  1336. elements.property(elements.V_PT_W, "Name", "ACLD")
  1337. elements.property(elements.V_PT_W, "Description", "Acid Cloud.")
  1338. elements.property(elements.V_PT_W, "Colour", 0xFF0066)
  1339. elements.property(elements.V_PT_W, "MenuSection", 6)
  1340. elements.property(elements.V_PT_W, "Gravity", 0.1)
  1341. elements.property(elements.V_PT_W, "Explosive", 0)
  1342. elements.property(elements.V_PT_W, "Weight", -400)
  1343. elements.property(elements.V_PT_W, "Diffusion", 0.1)
  1344. elements.property(elements.V_PT_W, "Hardness", 0)
  1345.  
  1346. function acid(i,x,y,s,n)
  1347. if math.random(1,750) == 10 then
  1348. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'acid')
  1349. end
  1350. end
  1351. tpt.element_func(acid,a)
  1352.  
  1353. local a = elements.allocate("T", "N")
  1354. elements.element(elements.T_PT_N, elements.element(elements.DEFAULT_PT_LAVA))
  1355. elements.property(elements.T_PT_N, "Name", "NBLI")
  1356. elements.property(elements.T_PT_N, "Description", "A liquid that releases NBLE. Very Hot.")
  1357. elements.property(elements.T_PT_N, "Colour", 0xFF3300)
  1358. elements.property(elements.T_PT_N, "Temperature", math.huge)
  1359. elements.property(elements.T_PT_N, "Gravity", 3)
  1360. elements.property(elements.T_PT_N, "Diffusion", 0.2)
  1361.  
  1362. function RLS(i,x,y,s,n)
  1363. if math.random(1,550) == 10 then
  1364. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'nble')
  1365. if math.random(1,1300) == 10 then
  1366. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plsm')
  1367. end
  1368. end
  1369. end
  1370. tpt.element_func(RLS,a)
  1371. l="IFOUNDIT"
  1372. local a = elements.allocate("R","D")
  1373. elements.element(elements.R_PT_D, elements.element(elements.DEFAULT_PT_PHOT))
  1374. elements.property(elements.R_PT_D, "Name", "SPRB")
  1375. elements.property(elements.R_PT_D, "Color", 0xFF0099)
  1376. elements.property(elements.R_PT_D, "MenuSection", elem.SC_SPECIAL)
  1377. elements.property(elements.R_PT_D, "Advection", 0.2)
  1378. elements.property(elements.R_PT_D, "Collision", 1.0)
  1379. elements.property(elements.R_PT_D, "Gravity", 3.0)
  1380. elements.property(elements.R_PT_D, "Diffusion", 0.3)
  1381. elements.property(elements.R_PT_D, "Weight", 40.45)
  1382. elements.property(elements.R_PT_D, "Temperature", 100000.0)
  1383. elements.property(elements.R_PT_D, "HeatConduct", 100000.0)
  1384. elements.property(elements.R_PT_D, "Description", "Super Ball. Very Hot. Bounces.")
  1385. elements.property(elements.R_PT_D, "Properties", PROP_DEADLY)
  1386.  
  1387.  
  1388. local a = elements.allocate("V1", "X1")
  1389. elements.element(elements.V1_PT_X1, elements.element(elements.DEFAULT_PT_HYGN))
  1390. elements.property(elements.V1_PT_X1, "Name", "STRM")
  1391. elements.property(elements.V1_PT_X1, "Description", "Storm Clouds. Produces More Water Than RCLD, and Lightning.")
  1392. elements.property(elements.V1_PT_X1, "Colour", 0x999999)
  1393. elements.property(elements.V1_PT_X1, "MenuSection", 6)
  1394. elements.property(elements.V1_PT_X1, "Gravity", 0.1)
  1395. elements.property(elements.V1_PT_X1, "Explosive", 0)
  1396. elements.property(elements.V1_PT_X1, "Weight", 30)
  1397. elements.property(elements.V1_PT_X1, "Diffusion", 0.1)
  1398. elements.property(elements.V1_PT_X1, "Hardness", 0)
  1399.  
  1400. function rain2(i,x,y,s,n)
  1401. if math.random(1,350) == 10 then
  1402. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  1403. if math.random(1,750) == 10 then
  1404. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'ligh')
  1405. end
  1406. end
  1407. end
  1408. tpt.element_func(rain2,a)
  1409.  
  1410. local a = elements.allocate("N", "H")
  1411. elements.element(elements.N_PT_H, elements.element(elements.DEFAULT_PT_WOOD))
  1412. elements.property(elements.N_PT_H, "Name", "TR0N")
  1413. elements.property(elements.N_PT_H, "Description", "Produces TRON. A Solid. A Home.")
  1414. elements.property(elements.N_PT_H, "Colour", 0x66FFFF)
  1415. elements.property(elements.N_PT_H, "Flammable", 0)
  1416. elements.property(elements.N_PT_H, "MenuSection", elem.SC_SPECIAL)
  1417.  
  1418. function tron(i,x,y,s,n)
  1419. if math.random(1,100) == 10 then
  1420. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'tron')
  1421. end
  1422. end
  1423. tpt.element_func(tron,a)
  1424.  
  1425. local a = elements.allocate("E", "O")
  1426. elements.element(elements.E_PT_O, elements.element(elements.DEFAULT_PT_GUN))
  1427. elements.property(elements.E_PT_O, "Name", "PC-4")
  1428. elements.property(elements.E_PT_O, "Description", "Powder C4. Explosive.")
  1429. elements.property(elements.E_PT_O, "Colour", 0xFF33FF)
  1430. elements.property(elements.E_PT_O, "Gravity", 2.0)
  1431. elements.property(elements.E_PT_O, "Diffusion", 0.2)
  1432. elements.property(elements.E_PT_O, "Weight", 30.20)
  1433. elements.property(elements.E_PT_O, "Flammable", 3000.34)
  1434.  
  1435. local a = elements.allocate("J", "O")
  1436. elements.element(elements.J_PT_O, elements.element(elements.DEFAULT_PT_DUST))
  1437. elements.property(elements.J_PT_O, "Name", "FLY")
  1438. elements.property(elements.J_PT_O, "Description", "Fly. Annoying Pestering Bug.")
  1439. elements.property(elements.J_PT_O, "Colour", 0x333333)
  1440. elements.property(elements.J_PT_O, "MenuSection", 11)
  1441. elements.property(elements.J_PT_O, "Gravity", 0.1)
  1442. elements.property(elements.J_PT_O, "Flammable", 1)
  1443. elements.property(elements.J_PT_O, "Explosive", 0)
  1444. elements.property(elements.J_PT_O, "Weight", -3000)
  1445. elements.property(elements.J_PT_O, "Diffusion", 0.9)
  1446. elements.property(elements.J_PT_O, "Falldown", 0.8)
  1447.  
  1448. local a = elements.allocate("C", "T")
  1449. elements.element(elements.C_PT_T, elements.element(elements.DEFAULT_PT_GLOW))
  1450. elements.property(elements.C_PT_T, "Name", "NPLM")
  1451. elements.property(elements.C_PT_T, "Description", "Napalm. Very explosive.")
  1452. elements.property(elements.C_PT_T, "Colour", 0x380520)
  1453. elements.property(elements.C_PT_T, "MenuSection", 5)
  1454. elements.property(elements.C_PT_T, "Gravity", 0.5)
  1455. elements.property(elements.C_PT_T, "Flammable", 1000)
  1456. elements.property(elements.C_PT_T, "Explosive", 1)
  1457. elements.property(elements.C_PT_T, "Loss", 0)
  1458. elements.property(elements.C_PT_T, "Weight", 20)
  1459.  
  1460. local a = elements.allocate("G", "H")
  1461. elements.element(elements.G_PT_H, elements.element(elements.DEFAULT_PT_WOOD))
  1462. elements.property(elements.G_PT_H, "Name", "BHIV")
  1463. elements.property(elements.G_PT_H, "Description", "BEE Hive. Produces BEEs. Obviously.")
  1464. elements.property(elements.G_PT_H, "Colour", 0x999966)
  1465. elements.property(elements.G_PT_H, "Flammable", 10)
  1466. elements.property(elements.G_PT_H, "MenuSection", elem.SC_SPECIAL)
  1467.  
  1468. function bee(i,x,y,s,n)
  1469. if math.random(1,330) == 10 then
  1470. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bee')
  1471. end
  1472. end
  1473. tpt.element_func(bee,a)
  1474.  
  1475. local a = elements.allocate("B", "O")
  1476. elements.element(elements.B_PT_O, elements.element(elements.DEFAULT_PT_DUST))
  1477. elements.property(elements.B_PT_O, "Name", "BEE")
  1478. elements.property(elements.B_PT_O, "Description", "BEE. Pestering Demons. Move Faster Then FLY.")
  1479. elements.property(elements.B_PT_O, "Colour", 0xFFFF00)
  1480. elements.property(elements.B_PT_O, "MenuSection", 11)
  1481. elements.property(elements.B_PT_O, "Gravity", 0.1)
  1482. elements.property(elements.B_PT_O, "Flammable", 10)
  1483. elements.property(elements.B_PT_O, "Explosive", 0)
  1484. elements.property(elements.B_PT_O, "Weight", -6000)
  1485. elements.property(elements.B_PT_O, "Diffusion", 2)
  1486. elements.property(elements.B_PT_O, "Falldown", 0.2)
  1487. function beeh(i,x,y,s,n)
  1488. if math.random(1,9000) == 10 then
  1489. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'bhiv')
  1490. end
  1491. end
  1492. tpt.element_func(beeh,a)
  1493.  
  1494. local a = elements.allocate("T", "X")
  1495. elements.element(elements.T_PT_X, elements.element(elements.DEFAULT_PT_HYGN))
  1496. elements.property(elements.T_PT_X, "Name", "TORN")
  1497. elements.property(elements.T_PT_X, "Description", "Tornado. Work in progress.")
  1498. elements.property(elements.T_PT_X, "Colour", 0x333333)
  1499. elements.property(elements.T_PT_X, "MenuSection", 11)
  1500. elements.property(elements.T_PT_X, "Gravity", 0.5)
  1501. elements.property(elements.T_PT_X, "Explosive", 0)
  1502. elements.property(elements.T_PT_X, "HotAir", -0.5)
  1503. elements.property(elements.T_PT_X, "Weight", 99)
  1504. elements.property(elements.T_PT_X, "Diffusion", 0.2)
  1505. elements.property(elements.T_PT_X, "Hardness", 0)
  1506.  
  1507. function rt(i,x,y,s,n)
  1508. if math.random(1,550) == 10 then
  1509. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
  1510. end
  1511. end
  1512. tpt.element_func(rt,a)
  1513.  
  1514. local a = elements.allocate("A","G")
  1515. elements.element(elements.A_PT_G, elements.element(elements.DEFAULT_PT_HYGN))
  1516. elements.property(elements.A_PT_G, "Name", "LAG")
  1517. elements.property(elements.A_PT_G, "Description", "Worlds Worst Creation.")
  1518. elements.property(elements.A_PT_G, "Colour", 0x578985)
  1519. elements.property(elements.A_PT_G, "MenuSection", 10)
  1520. elements.property(elements.A_PT_G, "HotAir", 0.1)
  1521. function acid(i,x,y,s,n)
  1522. if math.random(1,100) == 50 then
  1523. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lag')
  1524. end
  1525. if math.random(1,100) == 50 then
  1526. tpt.create(x + math.random(-1,1), y + math.random(-3,3), 'hygn')
  1527. end
  1528. if math.random(1,100) == 50 then
  1529. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'neut')
  1530. end
  1531. if math.random(1,100) == 50 then
  1532. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'prot')
  1533. end
  1534. if math.random(1,100) == 50 then
  1535. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'elec')
  1536. if math.random(1,100) == 50 then
  1537. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'phot')
  1538. end
  1539. if math.random(1,100) == 50 then
  1540. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'neut')
  1541. end
  1542. if math.random(1,100) == 50 then
  1543. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'tron')
  1544.  
  1545. if math.random(1,100) == 50 then
  1546. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'nble')
  1547. if math.random(1,100) == 50 then
  1548. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'boyl')
  1549. if math.random(1,100) == 50 then
  1550. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'watr')
  1551. if math.random(1,100) == 50 then
  1552. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'dstw')
  1553. if math.random(1,100) == 50 then
  1554. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'sltw')
  1555. if math.random(1,100) == 50 then
  1556. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'glow')
  1557. if math.random(1,100) == 50 then
  1558. tpt.create(x + math.random(-4,4), y + math.random(-6, 6), 'soap')
  1559. end
  1560. end
  1561. end
  1562. end
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end
  1568. end
  1569. tpt.element_func(acid,a)
  1570.  
  1571. --WTF
  1572.  
  1573. local WTF = elements.allocate('CJB', 'WTF')
  1574. elements.element(elements.CJB_PT_WTF, elements.element(elements.DEFAULT_PT_BCOL))
  1575. elements.property(elements.CJB_PT_WTF, 'Name', 'WTF')
  1576. elements.property(elements.CJB_PT_WTF, 'Description', 'Derpy, volatile gas/solid/I have no bloody idea.')
  1577. elements.property(elements.CJB_PT_WTF, 'Color', '0xB87503')
  1578. elements.property(elements.CJB_PT_WTF, 'MenuSection', '11')
  1579. elements.property(elements.CJB_PT_WTF, 'Gravity', '0.4')
  1580. elements.property(elements.CJB_PT_WTF, 'Flammable', '16384')
  1581. elements.property(elements.CJB_PT_WTF, 'Explosive', '1')
  1582. elements.property(elements.CJB_PT_WTF, 'Loss', '1')
  1583. elements.property(elements.CJB_PT_WTF, 'AirLoss', '20')
  1584. elements.property(elements.CJB_PT_WTF, 'AirDrag', '0.02')
  1585. elements.property(elements.CJB_PT_WTF, 'Advection', '1')
  1586. elements.property(elements.CJB_PT_WTF, 'Weight', '20')
  1587. elements.property(elements.CJB_PT_WTF, 'Diffusion', '16384')
  1588. elements.property(elements.CJB_PT_WTF, 'Temperature', '16384')
  1589. elements.property(elements.CJB_PT_WTF, 'HotAir', '900')
  1590. local function Lflare(i, colr, colg, colb)
  1591. return 1, 0x00000004, 255, 184, 117, 3, 255, 184, 117, 3
  1592. end
  1593. tpt.graphics_func(Lflare, WTF)
  1594.  
  1595. --Credits, I hope?
  1596.  
  1597. --[[
  1598. FeynmanLogomaker, timpfeifer, CeeJayBee, Videogamer555, 00yoshi, RadioActiveLua. If you were left out, email me at amywilsonmaster@gmail.com
  1599. ]]--
  1600.  
  1601. local a = "1"
  1602. local b = Window:new(-1,-1,200,200)
  1603. local c = Label:new(10,5,140,16, "TPT's Mod")
  1604. local d = Label:new(10,25,121,16, "Compiled by Amy")
  1605. local e = Label:new(10,85,170,16, "Credit to: jacob1, FeynmanLogomaker,")
  1606. local f = Label:new(135,5,88,16, ("AMY"))
  1607. local g = Label:new(10,95,180,16, "timpfeifer, CeeJayBee, Videogamer555,")
  1608. local h = Label:new(10,105,170,16,"00yoshi, and RadioActiveLua.")
  1609. local i = Label:new(10,125,180,16,"Report Bugs/Suggest for Next Version:")
  1610. local j = Label:new(10,135,170,16,"amywilsonmaster@gmail.com")
  1611.  
  1612. local Close = Button:new(10, 174, 60, 16, "Close")
  1613.  
  1614. Close:action(function() interface.closeWindow(b) end)
  1615. b:onTryExit(function() interface.closeWindow(b) end)
  1616.  
  1617. b:addComponent(Close);
  1618.  
  1619. local Button1 = Button:new(613, 97, 15, 15, "CR", "Open Info and Credits.")
  1620.  
  1621. Button1:action(function() interface.showWindow(b) end)
  1622.  
  1623. bb = Label:new(10,45,138,16, "Special Thanks To jacob1")
  1624. cc = Label:new(10,55,60,16, "Version 2")
  1625. dd = Label:new(10,65,57,16, "Update 0")
  1626.  
  1627. b:addComponent(bb)
  1628. b:addComponent(dd)
  1629. b:addComponent(cc)
  1630. b:addComponent(c)
  1631. b:addComponent(d)
  1632. b:addComponent(e)
  1633. b:addComponent(f)
  1634. b:addComponent(g)
  1635. b:addComponent(h)
  1636. b:addComponent(i)
  1637. b:addComponent(j)
  1638.  
  1639. interface.addComponent(Button1)
  1640.  
  1641. local a1 = "2"
  1642. local b1 = Window:new(-1,-1,200,200)
  1643. local c1 = Label:new(10,5,80,16, "SECRET MODE")
  1644. local d1 = Label:new(10,15,121,16, "Created By RadioActiveLua")
  1645. local f1 = Label:new(135,5,88,16, ("RAM V."..a))
  1646.  
  1647. local Close1 = Button:new(10, 174, 60, 16, "Close")
  1648.  
  1649. local Start1 = Button:new(10, 194, 60, 16, "Enter")
  1650.  
  1651. Close1:action(function() interface.closeWindow(b1) end)
  1652. b1:onTryExit(function() interface.closeWindow(b1) end)
  1653.  
  1654. b1:addComponent(Close1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement