Advertisement
Guest User

Untitled

a guest
Nov 29th, 2013
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.30 KB | None | 0 0
  1. --[[The Powder Toy: Ultra]]--
  2. --[[Created By RadioActiveLua]]--
  3. --[[Version 2]]--
  4.  
  5. --HUD--
  6. local Version = "2"
  7. local Main = Window:new(-1,-1,300,300)
  8. local Title = Label:new(10,5,120,16, "The Powder Toy: Ultra")
  9. local Title2 = Label:new(10,15,121,16, "Created By RadioActiveLua")
  10. local Title3 = Label:new(10,25,140,16, "Email: GimTheFroob@gmail.com")
  11. local Title4 = Label:new(233,5,88,16, ("TPTU V."..Version))
  12.  
  13. local CloseButton = Button:new(10, 274, 60, 16, "Close")
  14.  
  15. CloseButton:action(function() interface.closeWindow(Main) end)
  16. Main:onTryExit(function() interface.closeWindow(Main) end)
  17.  
  18. Main:addComponent(CloseButton);
  19.  
  20. local ButtonMenu = Button:new(0, 0, 55, 15, "Commands", "Open Commands.")
  21.  
  22. ButtonMenu:action(function() interface.showWindow(Main) end)
  23. -- Commands Start Here --
  24. local ButtonFire = Button:new(10,45,60,16, "Set Fire")
  25. local ButtonMelt = Button:new(10, 65, 60, 16, "Melt")
  26. local CheckBox = Checkbox:new(10, 85, 60, 16, "Non-Burnable Acid.")
  27. local CheckBox1 = Checkbox:new(10, 105, 60, 16, "Show LOVE (Special)")
  28. local CheckBox2 = Checkbox:new(10, 125, 60, 16, "Show MORT (Gas/Smoke)")
  29. local CheckBox3 = Checkbox:new(10, 145, 60, 16, "Deadly Super Ball.")
  30. local CheckBox4 = Checkbox:new(10, 165, 60, 16, "Super Deadly Fire")
  31. local MeltType = Textbox:new(71, 65,60,16)
  32. local FireNumber = Textbox:new(71,45,60,16)
  33.  
  34.  
  35. CheckBox:action(function()
  36. if CheckBox:checked() then
  37. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
  38. else
  39. elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
  40. end
  41. end)
  42. CheckBox1:action(function()
  43. if CheckBox1:checked() then
  44. elements.property(elements.DEFAULT_PT_LOVE, "MenuSection", 11)
  45. else
  46. elements.property(elements.DEFAULT_PT_LOVE, "MenuSection", 12)
  47. end
  48. end)
  49. CheckBox2:action(function()
  50. if CheckBox2:checked() then
  51. elements.property(elements.DEFAULT_PT_MORT, "MenuSection", 6)
  52. else
  53. elements.property(elements.DEFAULT_PT_MORT, "MenuSection", 12)
  54. end
  55. end)
  56. CheckBox3:action(function()
  57. if CheckBox3:checked() then
  58. elements.property(elements.RADIO_PT_FOUR, "Temperature", math.huge)
  59. else
  60. elements.property(elements.RADIO_PT_FOUR, "Temperature", 0)
  61. end
  62. end)
  63. CheckBox4:action(function()
  64. if CheckBox4:checked() then
  65. tpt.el.fire.flammable=9999
  66. tpt.el.fire.explosive=9999
  67. else
  68. tpt.el.fire.flammable=0
  69. tpt.el.fire.explosive=0
  70. end
  71. end)
  72. ButtonMelt:action(function()
  73. local txt2=MeltType:text()
  74. if txt2=="all" then
  75. tpt.set_property("temp",10000)
  76. else
  77. tpt.set_property("temp",10000,txt2)
  78. end
  79. end)
  80.  
  81. ButtonFire:action(function()
  82. local txt1=FireNumber:text()
  83. tpt.setfire(txt1)
  84. end)
  85.  
  86. -- Commands End Here --
  87. Main:addComponent(CheckBox)
  88. Main:addComponent(CheckBox1)
  89. Main:addComponent(CheckBox2)
  90. Main:addComponent(CheckBox3)
  91. Main:addComponent(CheckBox4)
  92. Main:addComponent(ButtonMelt)
  93. Main:addComponent(MeltType)
  94. Main:addComponent(FireNumber)
  95. Main:addComponent(ButtonFire)
  96. Main:addComponent(Title)
  97. Main:addComponent(Title2)
  98. Main:addComponent(Title3)
  99. Main:addComponent(Title4)
  100.  
  101. -- Interface --
  102. interface.addComponent(ButtonMenu)
  103. -- End Interface --
  104. --END HUD--
  105.  
  106. --Elements--
  107. local ElementOne = elements.allocate("RADIO", "ONE")
  108. elements.element(elements.RADIO_PT_ONE, elements.element(elements.DEFAULT_PT_DUST))
  109. elements.property(elements.RADIO_PT_ONE, "Name", "ANUB")
  110. elements.property(elements.RADIO_PT_ONE, "Description", "Anubial, a self replicating smoke producer.")
  111. elements.property(elements.RADIO_PT_ONE, "Colour", 0x333333)
  112. elements.property(elements.RADIO_PT_ONE, "Gravity",0.4)
  113. elements.property(elements.RADIO_PT_ONE, "MenuSection", 8)
  114. elements.property(elements.RADIO_PT_ONE, "Diffusion",0.4)
  115. elements.property(elements.RADIO_PT_ONE, "Weight",-500)
  116. elements.property(elements.RADIO_PT_ONE, "Flammable", 0.3)
  117. local function smke(i,x,y,s,n)
  118. if math.random(1,10) == 10 then
  119. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'smke')
  120. end
  121. end
  122. tpt.element_func(smke,ElementOne)
  123.  
  124. local ElementTwo = elements.allocate("RADIO", "TWO")
  125. elements.element(elements.RADIO_PT_TWO, elements.element(elements.DEFAULT_PT_HYGN))
  126. elements.property(elements.RADIO_PT_TWO, "Name", "HELI")
  127. elements.property(elements.RADIO_PT_TWO, "Description", "Helium, When Mixed With HYGN Creates SUN")
  128. elements.property(elements.RADIO_PT_TWO, "Gravity", 0)
  129. elements.property(elements.RADIO_PT_TWO, "Loss", 0.01)
  130. elements.property(elements.RADIO_PT_TWO, "HotAir", 0.001)
  131. elements.property(elements.RADIO_PT_TWO, "Temperature", 293.15)
  132. elements.property(elements.RADIO_PT_TWO, "Colour", 0x9999CC)
  133. elements.property(elements.RADIO_PT_TWO, "Collision", 0.01)
  134. elements.property(elements.RADIO_PT_TWO, "Diffusion", 0.000001)
  135. local function start(i,x,y,s,n)
  136. if tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1)) == tpt.el.hygn.id then
  137. elements.property(elements.RADIO_PT_TWO, "Flammable", 400)
  138. tpt.create(x + math.random(1,2), y + math.random(1,2), 'sun')
  139. end
  140. end
  141. tpt.element_func(start,ElementTwo)
  142.  
  143. local ElementTWO2 = elements.allocate("RADIO", "TWO2")
  144. elements.element(elements.RADIO_PT_TWO2, elements.element(elements.DEFAULT_PT_NEUT))
  145. elements.property(elements.RADIO_PT_TWO2, "Name", "UVL")
  146. elements.property(elements.RADIO_PT_TWO2, "Description", "Ultra Violet Lights. (Sun Radiation)")
  147. elements.property(elements.RADIO_PT_TWO2, "MenuSection", 10)
  148. elements.property(elements.RADIO_PT_TWO2, "Colour", 0x993399)
  149. elements.property(elements.RADIO_PT_TWO2, "Weight", 99999)
  150. elements.property(elements.RADIO_PT_TWO2, "Temperature", math.huge)
  151. elements.property(elements.RADIO_PT_TWO2, "Collision", 0.0000000000099)
  152. elements.property(elements.RADIO_PT_TWO2, "Diffusion", 0.7)
  153.  
  154.  
  155. local ElementTHREE = elements.allocate("RADIO", "THREE")
  156. elements.element(elements.RADIO_PT_THREE, elements.element(elements.DEFAULT_PT_DMND))
  157. elements.property(elements.RADIO_PT_THREE, "Name", "SUN")
  158. elements.property(elements.RADIO_PT_THREE, "Description", "Big Ball Of Burning Gas. A Member Of The Star Family")
  159. elements.property(elements.RADIO_PT_THREE, "MenuSection", 11)
  160. elements.property(elements.RADIO_PT_THREE, "HotAir", -0.40)
  161. elements.property(elements.RADIO_PT_THREE, "Colour", 0xFFFF00)
  162. elements.property(elements.RADIO_PT_THREE, "Temperature", math.huge)
  163. tpt.set_property("life",65535,"sun")
  164. local function fire(i, x, y, s, n)
  165. if math.random(1,10) == 10 then
  166. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'fire')
  167. end
  168. if math.random(1,60) == 10 then
  169. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lava')
  170. end
  171. if math.random(1,34) == 14 then
  172. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'smke')
  173. end
  174. if math.random(1,250) == 10 then
  175. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'uvl')
  176. end
  177. end
  178. tpt.element_func(fire,ElementTHREE)
  179.  
  180.  
  181. local ElementFour = elements.allocate("RADIO","FOUR")
  182. elements.element(elements.RADIO_PT_FOUR, elements.element(elements.DEFAULT_PT_PHOT))
  183. elements.property(elements.RADIO_PT_FOUR, "Name", "SPRB")
  184. elements.property(elements.RADIO_PT_FOUR, "Colour", 0xFF0099)
  185. elements.property(elements.RADIO_PT_FOUR, "MenuSection", 8)
  186. elements.property(elements.RADIO_PT_FOUR, "Advection", 0.2)
  187. elements.property(elements.RADIO_PT_FOUR, "Collision", 1.0)
  188. elements.property(elements.RADIO_PT_FOUR, "Gravity", 3.0)
  189. elements.property(elements.RADIO_PT_FOUR, "Diffusion", 0.3)
  190. elements.property(elements.RADIO_PT_FOUR, "Weight", 40.45)
  191. elements.property(elements.RADIO_PT_FOUR, "Description", "Super Ball. Very Hot. Bounces.")
  192. elements.property(elements.RADIO_PT_FOUR, "Properties", PROP_DEADLY)
  193.  
  194. local ElementFive = elements.allocate("RADIO", "FIVE")
  195. elements.element(elements.RADIO_PT_FIVE, elements.element(elements.DEFAULT_PT_SAND))
  196. elements.property(elements.RADIO_PT_FIVE, "Colour", 0x996633)
  197. elements.property(elements.RADIO_PT_FIVE, "Description", "SOIL. Creates VINE when mixed with GRAS and WATR")
  198. elements.property(elements.RADIO_PT_FIVE, "Diffusion", 0.4)
  199. elements.property(elements.RADIO_PT_FIVE, "Gravity", 0.5)
  200. elements.property(elements.RADIO_PT_FIVE, "Weight", 24)
  201. elements.property(elements.RADIO_PT_FIVE, "Collision", 0.2)
  202. elements.property(elements.RADIO_PT_FIVE, "Name", "SOIL")
  203. elements.property(elements.RADIO_PT_FIVE, "MenuSection", 8)
  204.  
  205.  
  206. local ElementSix = elements.allocate("RADIO", "SIX")
  207. elements.element(elements.RADIO_PT_SIX, elements.element(elements.DEFAULT_PT_DUST))
  208. elements.property(elements.RADIO_PT_SIX, "Name", "GRAS")
  209. elements.property(elements.RADIO_PT_SIX, "Description", "GRASS. Put on SOIL and add water to create VINE.")
  210. elements.property(elements.RADIO_PT_SIX, "Weight", 10)
  211. elements.property(elements.RADIO_PT_SIX, "Gravity", 0.5)
  212. elements.property(elements.RADIO_PT_SIX, "Collision", 0.2)
  213. elements.property(elements.RADIO_PT_SIX, "MenuSection", 8)
  214. elements.property(elements.RADIO_PT_SIX, "Colour", 0x009966)
  215. elements.property(elements.RADIO_PT_SIX, "Flammable", 30)
  216. local function start1(i,x,y,s,n)
  217. if tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1)) == tpt.el.watr.id then
  218. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'vine')
  219. end
  220. end
  221. tpt.element_func(start1,ElementSix)
  222.  
  223. local ElementSeven = elements.allocate("RADIO", "SEVEN")
  224. elements.element(elements.RADIO_PT_SEVEN, elements.element(elements.DEFAULT_PT_BCOL))
  225. elements.property(elements.RADIO_PT_SEVEN, "Name", "DARM")
  226. elements.property(elements.RADIO_PT_SEVEN, "Description", "Dark-Matter. Very Heavy.")
  227. elements.property(elements.RADIO_PT_SEVEN, "Colour", 0x000000)
  228. elements.property(elements.RADIO_PT_SEVEN, "Weight", 999999999)
  229. elements.property(elements.RADIO_PT_SEVEN, "Collision", 0.01)
  230. elements.property(elements.RADIO_PT_SEVEN, "Loss", 0.001)
  231. elements.property(elements.RADIO_PT_SEVEN, "Gravity", 0.8)
  232. elements.property(elements.RADIO_PT_SEVEN, "MenuSection", 11)
  233.  
  234. local ElementEight = elements.allocate("RADIO", "EIGHT")
  235. elements.element(elements.RADIO_PT_EIGHT, elements.element(elements.DEFAULT_PT_GLOW))
  236. elements.property(elements.RADIO_PT_EIGHT, "Name", "LDM")
  237. elements.property(elements.RADIO_PT_EIGHT, "Description", "Liquid Dark-Matter. Heavy.")
  238. elements.property(elements.RADIO_PT_EIGHT, "Colour", 0x000000)
  239. elements.property(elements.RADIO_PT_EIGHT, "Weight", 9999)
  240. elements.property(elements.RADIO_PT_EIGHT, "Gravity", 0.6)
  241. elements.property(elements.RADIO_PT_EIGHT, "Diffusion", 0.3)
  242. elements.property(elements.RADIO_PT_EIGHT, "MenuSection", 7)
  243.  
  244. local ElementNine = elements.allocate("RADIO", "NINE")
  245. elements.property(elements.RADIO_PT_NINE, "Name", "LAZR")
  246. elements.property(elements.RADIO_PT_NINE, "Color", 0x990000)
  247. elements.property(elements.RADIO_PT_NINE, "Description", "LAZR. Destructive.")
  248. elements.property(elements.RADIO_PT_NINE, "MenuVisible", 1)
  249. elements.property(elements.RADIO_PT_NINE, "MenuSection", 10)
  250. elements.property(elements.RADIO_PT_NINE, "Advection", 1)
  251. elements.property(elements.RADIO_PT_NINE, "AirDrag", 0)
  252. elements.property(elements.RADIO_PT_NINE, "AirLoss", 0)
  253. elements.property(elements.RADIO_PT_NINE, "Loss", 1)
  254. elements.property(elements.RADIO_PT_NINE, "Collision", 3)
  255. elements.property(elements.RADIO_PT_NINE, "Meltable", 0)
  256. elements.property(elements.RADIO_PT_NINE, "Hardness", 0)
  257. elements.property(elements.RADIO_PT_NINE, "Weight", 83)
  258. elements.property(elements.RADIO_PT_NINE, "Temperature", 99999)
  259. elements.property(elements.RADIO_PT_NINE, "HeatConduct", 99999)
  260. elements.property(elements.RADIO_PT_NINE, "HotAir", 0.3)
  261. elements.property(elements.RADIO_PT_NINE, "Falldown", 0)
  262. elements.property(elements.RADIO_PT_NINE, "Flammable", 0)
  263. elements.property(elements.RADIO_PT_NINE, "State", ST_NONE)
  264. elements.property(elements.RADIO_PT_NINE, "Gravity", 0.3)
  265. elements.property(elements.RADIO_PT_NINE, "Diffusion", 0)
  266. elements.property(elements.RADIO_PT_NINE, "Explosive", 0)
  267. elements.property(elements.RADIO_PT_NINE, "Properties", PROP_DEADLY)
  268. local function graphics3(i, colr, colg, colb)
  269. return 1,0x00000010,255,255,0,0,0,0,0,0
  270. end
  271. tpt.graphics_func(graphics3,ElementNine)
  272.  
  273.  
  274. local ElementTen = elements.allocate("RADIO", "TEN")
  275. elements.element(elements.RADIO_PT_TEN, elements.element(elements.DEFAULT_PT_TTAN))
  276. elements.property(elements.RADIO_PT_TEN, "Name", "LEAD")
  277. elements.property(elements.RADIO_PT_TEN, "Description", "Lead. Melts at high temperature. Absorbs Protons.")
  278. elements.property(elements.RADIO_PT_TEN, "Colour", 0xCCCCFF)
  279. elements.property(elements.RADIO_PT_TEN, "MenuSection", 9)
  280. elements.property(elements.RADIO_PT_TEN, "AirLoss", 0.99)
  281. elements.property(elements.RADIO_PT_TEN, "Weight", 430)
  282. elements.property(elements.RADIO_PT_TEN, "Temperature", 195.15)
  283. elements.property(elements.RADIO_PT_TEN, "HighTemperature", 500.0)
  284. elements.property(elements.RADIO_PT_TEN, "HighTemperatureTransition", elements.RADIO_PT_TENM)
  285. elements.property(elements.RADIO_PT_TEN, "Properties", PROP_BLACK)
  286.  
  287. local ElementTenM = elements.allocate("RADIO", "TENM")
  288. elements.element(elements.RADIO_PT_TENM, elements.element(elements.DEFAULT_PT_MWAX))
  289. elements.property(elements.RADIO_PT_TENM, "Name", "MLED")
  290. elements.property(elements.RADIO_PT_TENM, "Colour", 0x999999)
  291. elements.property(elements.RADIO_PT_TENM, "Description", "Molten Lead. When Cooled Down Forms LEAD.")
  292. elements.property(elements.RADIO_PT_TENM, "MenuSection", 7)
  293. elements.property(elements.RADIO_PT_TENM, "Gravity", 0.8)
  294. elements.property(elements.RADIO_PT_TENM, "Loss", 0.10)
  295. elements.property(elements.RADIO_PT_TENM, "AirLoss", 0.1)
  296. elements.property(elements.RADIO_PT_TENM, "AirDrag", 0.01)
  297. elements.property(elements.RADIO_PT_TENM, "Advection", 0.6)
  298. elements.property(elements.RADIO_PT_TENM, "Weight", 230)
  299. elements.property(elements.RADIO_PT_TENM, "Falldown", 1)
  300. elements.property(elements.RADIO_PT_TENM, "Properties", TYPE_LIQUID)
  301. elements.property(elements.RADIO_PT_TENM, "Temperature", 390)
  302. elements.property(elements.RADIO_PT_TENM, "LowTemperature", 380.0)
  303. elements.property(elements.RADIO_PT_TENM, "LowTemperatureTransition", elements.RADIO_PT_TEN)
  304.  
  305. local ElementEleven = elements.allocate("RADIO", "ELEVEN")
  306. elements.element(elements.RADIO_PT_ELEVEN, elements.element(elements.DEFAULT_PT_BOYL))
  307. elements.property(elements.RADIO_PT_ELEVEN, "Name", "RSTR")
  308. elements.property(elements.RADIO_PT_ELEVEN, "Description", "Ruptured Star. Very Destructive. Created When STAR Explodes.")
  309. elements.property(elements.RADIO_PT_ELEVEN, "Colour", 0xFFFFFF)
  310. elements.property(elements.RADIO_PT_ELEVEN, "MenuSection", 6)
  311. elements.property(elements.RADIO_PT_ELEVEN, "Diffusion", 5.14)
  312. elements.property(elements.RADIO_PT_ELEVEN, "Loss", 0.4)
  313. elements.property(elements.RADIO_PT_ELEVEN, "Explosive", 1)
  314. elements.property(elements.RADIO_PT_ELEVEN, "Advection", 0.15)
  315. elements.property(elements.RADIO_PT_ELEVEN, "Weight", 0.04)
  316. elements.property(elements.RADIO_PT_ELEVEN, "Gravity", math.random(1,3))
  317. elements.property(elements.RADIO_PT_ELEVEN, "Temperature", 10000.0)
  318. elements.property(elements.RADIO_PT_ELEVEN, "HeatConduct", 10000.0)
  319. elements.property(elements.RADIO_PT_ELEVEN, "AirDrag", 0.008)
  320. local function graphics2(i, colr, colg, colb)
  321. return 1,0x00000020,255,255,255,255,255,255,255,255
  322. end
  323. tpt.graphics_func(graphics2,ElementEleven)
  324.  
  325. local ElementTwelve = elements.allocate("RADIO", "TWELVE")
  326. elements.element(elements.RADIO_PT_TWELVE, elements.element(elements.DEFAULT_PT_TTAN))
  327. elements.property(elements.RADIO_PT_TWELVE, "Name", "STAR")
  328. elements.property(elements.RADIO_PT_TWELVE, "Description", "STAR. Explodes Into RSTR.")
  329. elements.property(elements.RADIO_PT_TWELVE, "Colour", 0xFFFFFF)
  330. elements.property(elements.RADIO_PT_TWELVE, "MenuSection", 9)
  331. elements.property(elements.RADIO_PT_TWELVE, "Weight", 333)
  332. elements.property(elements.RADIO_PT_TWELVE, "Temperature", 4556)
  333. elements.property(elements.RADIO_PT_TWELVE, "HighTemperature", 7080.0)
  334. elements.property(elements.RADIO_PT_TWELVE, "HighTemperatureTransition", elements.RADIO_PT_ELEVEN)
  335. local function graphics1(i, colr, colg, colb)
  336. return 1,0x00000008,255,255,255,255,255,255,255,255
  337. end
  338. tpt.graphics_func(graphics1,ElementTwelve)
  339.  
  340. local ElementTT = elements.allocate("RADIO", "TT")
  341. elements.element(elements.RADIO_PT_TT, elements.element(elements.DEFAULT_PT_GLOW))
  342. elements.property(elements.RADIO_PT_TT, "Name", "RANB")
  343. elements.property(elements.RADIO_PT_TT, "Description", "Rainbow.")
  344. elements.property(elements.RADIO_PT_TT, "Colour", 0x003300)
  345. elements.property(elements.RADIO_PT_TT, "MenuSection", 7)
  346. elements.property(elements.RADIO_PT_TT, "Weight", 30)
  347. elements.property(elements.RADIO_PT_TT, "Properties", PROP_DEADLY)
  348. function pls(i,colr, colg, colb)
  349. local c=math.random(0,300)
  350. if c<=60 then
  351. return 0, 1, 255, 0xFB, 0x66, 0x15, 255, 0xFB, 0x66, 0x15
  352. end
  353. if c>=60 and c<=120 then
  354. return 0, 1, 255, 0xF5, 0x93, 0x45, 255, 0xF5, 0x93, 0x45
  355. end
  356. if c>=120 and c<=180 then
  357. return 0, 1, 255, 0x54, 0x40, 0xFD, 255, 0x54, 0x40, 0xFD
  358. end
  359. if c>=180 and c<=240 then
  360. return 0, 1, 255, 0x32, 0x12, 0xEF, 255, 0x32, 0x12, 0xEF
  361. end
  362. if c>=240 then
  363. return 0, 1, 255, 0x00, 0xFF, 0x00, 255, 0x00, 0xFF, 0x00
  364. end
  365. end
  366. tpt.graphics_func(pls,ElementTT)
  367.  
  368.  
  369. local ElementFT = elements.allocate("RADIO", "FT")
  370. elements.element(elements.RADIO_PT_FT, elements.element(elements.DEFAULT_PT_STNE))
  371. elements.property(elements.RADIO_PT_FT, "Name", "SPRT")
  372. elements.property(elements.RADIO_PT_FT, "Description", "Sprite. When COOLED it shoots up.")
  373. elements.property(elements.RADIO_PT_FT, "Colour", 0x99FF33)
  374. elements.property(elements.RADIO_PT_FT, "Flammable", 0)
  375. elements.property(elements.RADIO_PT_FT, "MenuSection", 4)
  376. elements.property(elements.RADIO_PT_FT, "Weight", 60)
  377. elements.property(elements.RADIO_PT_FT, "Gravity", -5)
  378. elements.property(elements.RADIO_PT_FT, "HotAir", 0.001)
  379. elements.property(elements.RADIO_PT_FT, "Temperature", math.huge)
  380. elements.property(elements.RADIO_PT_FT, "Properties", PROP_DEADLY)
  381. local function graphics4(i, colr, colg, colb)
  382. return 1,0x00000002,0,255,0,0,0,255,0,0
  383. end
  384. tpt.graphics_func(graphics4,ElementFT)
  385.  
  386. local ElementFif = elements.allocate("RADIO", "FIF")
  387. elements.element(elements.RADIO_PT_FIF, elements.element(elements.DEFAULT_PT_DMND))
  388. elements.property(elements.RADIO_PT_FIF, "Name", "TORN")
  389. elements.property(elements.RADIO_PT_FIF, "Description", "Tornado.")
  390. elements.property(elements.RADIO_PT_FIF, "MenuSection", 11)
  391. elements.property(elements.RADIO_PT_FIF, "HotAir", -0.90)
  392. elements.property(elements.RADIO_PT_FIF, "Colour", 0x999999)
  393. elements.property(elements.RADIO_PT_FIF, "Temperature", 40)
  394. local function things(i, x, y, s, n)
  395. if math.random(1,44) == 10 then
  396. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'co2')
  397. end
  398. if math.random(1,34) == 14 then
  399. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'smke')
  400. end
  401. if math.random(1,10) == 10 then
  402. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'dbri')
  403. end
  404. end
  405. tpt.element_func(things,ElementFif)
  406.  
  407. local ElementST = elements.allocate("RADIO", "ST")
  408. elements.element(elements.RADIO_PT_ST, elements.element(elements.DEFAULT_PT_HYGN))
  409. elements.property(elements.RADIO_PT_ST, "Name", "DBRI")
  410. elements.property(elements.RADIO_PT_ST, "Description", "Debris. Forms From Tornado")
  411. elements.property(elements.RADIO_PT_ST, "Colour", 0x663300)
  412.  
  413. local ElementSev = elements.allocate("RADIO", "SEV")
  414. elements.element(elements.RADIO_PT_SEV, elements.element(elements.DEFAULT_PT_NEUT))
  415. elements.property(elements.RADIO_PT_SEV, "Name", "A-PO")
  416. elements.property(elements.RADIO_PT_SEV, "Description", "A-Positive Neutrons. Massive heat conductor. Appears RED.")
  417. elements.property(elements.RADIO_PT_SEV, "Temperature", 10000)
  418. elements.property(elements.RADIO_PT_SEV, "HeatConduct", 6000)
  419. elements.property(elements.RADIO_PT_SEV, "Weight", 232)
  420. elements.property(elements.RADIO_PT_SEV, "Colour", 0xFF9900)
  421. elements.property(elements.RADIO_PT_SEV, "Diffusion", 0.25)
  422. elements.property(elements.RADIO_PT_SEV, "LowTemperature", 180.0)
  423. elements.property(elements.RADIO_PT_SEV, "LowTemperatureTransition", elements.RADIO_PT_ET)
  424. local function yes(i, colr, colg, colb)
  425. return 1,0x00000008,255,102,0,0,255,102,0,0
  426. end
  427. tpt.graphics_func(yes,ElementSev)
  428.  
  429. local ElementET = elements.allocate("RADIO", "ET")
  430. elements.element(elements.RADIO_PT_ET, elements.element(elements.DEFAULT_PT_NEUT))
  431. elements.property(elements.RADIO_PT_ET, "Name", "A-NE")
  432. elements.property(elements.RADIO_PT_ET, "Description", "A-Negative Neutrons. Massive Cold Producer. Appears GREEN.")
  433. elements.property(elements.RADIO_PT_ET, "Temperature", -10000)
  434. elements.property(elements.RADIO_PT_ET, "HeatConduct", -6000)
  435. elements.property(elements.RADIO_PT_ET, "Weight", -232)
  436. elements.property(elements.RADIO_PT_ET, "Colour", 0x66FFFF)
  437. elements.property(elements.RADIO_PT_ET, "Diffusion", -0.25)
  438. elements.property(elements.RADIO_PT_ET, "HighTemperature", 180.0)
  439. elements.property(elements.RADIO_PT_ET, "HighTemperatureTransition", elements.RADIO_PT_SEV)
  440. local function no(i, colr, colg, colb)
  441. return 1,0x00000008,255,0,255,0,0,255,0,0
  442. end
  443. tpt.graphics_func(no,ElementET)
  444.  
  445. local ElementNT = elements.allocate("RADIO", "NT")
  446. elements.element(elements.RADIO_PT_NT, elements.element(elements.DEFAULT_PT_STNE))
  447. elements.property(elements.RADIO_PT_NT, "Name", "CSRT")
  448. elements.property(elements.RADIO_PT_NT, "Description", "Cool Sprite. Shoots up.")
  449. elements.property(elements.RADIO_PT_NT, "Colour", 0x99FF33)
  450. elements.property(elements.RADIO_PT_NT, "Flammable", 0)
  451. elements.property(elements.RADIO_PT_NT, "MenuSection", 4)
  452. elements.property(elements.RADIO_PT_NT, "Weight", 60)
  453. elements.property(elements.RADIO_PT_NT, "Gravity", -0.5)
  454. elements.property(elements.RADIO_PT_NT, "HotAir", 0)
  455. elements.property(elements.RADIO_PT_NT, "Temperature", 0)
  456.  
  457. local ElementSecret1 = elements.allocate("RADIO", "SONE")
  458. elements.element(elements.RADIO_PT_SONE, elements.element(elements.DEFAULT_PT_DUST))
  459. elements.property(elements.RADIO_PT_SONE, "Name", "WTYM")
  460. elements.property(elements.RADIO_PT_SONE, "Colour", 0xFF0000)
  461. elements.property(elements.RADIO_PT_SONE, "Description", "WORDDDD TO YO MUTHA")
  462. elements.property(elements.RADIO_PT_SONE, "MenuVisible", 0)
  463. elements.property(elements.RADIO_PT_SONE, "Flammable", 0)
  464. elements.property(elements.RADIO_PT_SONE, "Gravity", 0.5)
  465. elements.property(elements.RADIO_PT_SONE, "Loss", 0.10)
  466. elements.property(elements.RADIO_PT_SONE, "AirLoss", 0.1)
  467. elements.property(elements.RADIO_PT_SONE, "AirDrag", 0.01)
  468. elements.property(elements.RADIO_PT_SONE, "Advection", 0.6)
  469. elements.property(elements.RADIO_PT_SONE, "Weight", 10)
  470. elements.property(elements.RADIO_PT_SONE, "Falldown", 1)
  471. elements.property(elements.RADIO_PT_SONE, "Temperature", 390)
  472. elements.property(elements.RADIO_PT_SONE, "LowTemperature", 380.0)
  473. elements.property(elements.RADIO_PT_SONE, "LowTemperatureTransition", elements.DEFAULT_PT_VINE)
  474.  
  475.  
  476.  
  477. local ElementSecret2 = elements.allocate("RADIO", "STWO")
  478. elements.element(elements.RADIO_PT_STWO, elements.element(elements.DEFAULT_PT_DUST))
  479. elements.property(elements.RADIO_PT_STWO, "Name", "WSFC")
  480. elements.property(elements.RADIO_PT_STWO, "Colour", 0x66FFFF)
  481. elements.property(elements.RADIO_PT_STWO, "Description", "Want Some Free Candy?")
  482. elements.property(elements.RADIO_PT_STWO, "MenuVisible", 0)
  483. elements.property(elements.RADIO_PT_STWO, "Flammable", 10)
  484. elements.property(elements.RADIO_PT_STWO, "Gravity", 0.0001)
  485. elements.property(elements.RADIO_PT_STWO, "Advection", 0.6)
  486. elements.property(elements.RADIO_PT_STWO, "Weight", 10)
  487. elements.property(elements.RADIO_PT_STWO, "Temperature", 390)
  488. elements.property(elements.RADIO_PT_STWO, "LowTemperature", 380.0)
  489. elements.property(elements.RADIO_PT_STWO, "LowTemperatureTransition", elements.DEFAULT_PT_METL)
  490. local function sprk(i,x,y,s,n)
  491. if tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1)) == tpt.el.metl.id then
  492. tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'sprk')
  493. end
  494. end
  495. tpt.element_func(sprk,ElementSecret2)
  496.  
  497. local ElementSecret3 = elements.allocate("RADIO", "STHREE")
  498. elements.element(elements.RADIO_PT_STHREE, elements.element(elements.DEFAULT_PT_DUST))
  499. elements.property(elements.RADIO_PT_STHREE, "Name", "TNISFLICBSI")
  500. elements.property(elements.RADIO_PT_STHREE, "Colour", 0xDD0EFC)
  501. elements.property(elements.RADIO_PT_STHREE, "Description", "This Name Is So Freaking Long I Can Barely Understand It.")
  502. elements.property(elements.RADIO_PT_STHREE, "MenuVisible", 0)
  503. elements.property(elements.RADIO_PT_STHREE, "Flammable", 0)
  504. elements.property(elements.RADIO_PT_STHREE, "Gravity", 0.70)
  505. elements.property(elements.RADIO_PT_STHREE, "Advection", 3.30)
  506. elements.property(elements.RADIO_PT_STHREE, "Weight", 90)
  507. elements.property(elements.RADIO_PT_STHREE, "Temperature", 390)
  508. elements.property(elements.RADIO_PT_STHREE, "LowTemperature", 380.0)
  509. elements.property(elements.RADIO_PT_STHREE, "LowTemperatureTransition", elements.DEFAULT_PT_DMND)
  510.  
  511. local ElementSecret4 = elements.allocate("RADIO", "SFOUR")
  512. elements.element(elements.RADIO_PT_SFOUR, elements.element(elements.DEFAULT_PT_STNE))
  513. elements.property(elements.RADIO_PT_SFOUR, "Name", "???")
  514. elements.property(elements.RADIO_PT_SFOUR, "Description", "???")
  515. elements.property(elements.RADIO_PT_SFOUR, "Weight", 123)
  516. elements.property(elements.RADIO_PT_SFOUR, "MenuVisible", 0)
  517. elements.property(elements.RADIO_PT_SFOUR, "Colour", 0x123456)
  518. elements.property(elements.RADIO_PT_SFOUR, "Flammable", 123)
  519. elements.property(elements.RADIO_PT_SFOUR, "Gravity", 0.0123)
  520. elements.property(elements.RADIO_PT_SFOUR, "Advection", 0.0123)
  521. elements.property(elements.RADIO_PT_SFOUR, "Temperature", 8000)
  522. elements.property(elements.RADIO_PT_SFOUR, "LowTemperature", 180.0)
  523. elements.property(elements.RADIO_PT_SFOUR, "LowTemperatureTransition", elements.DEFAULT_PT_ELEC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement