Advertisement
lapumanator

Epic Exotic Chemistry Version 5

Apr 2nd, 2013
1,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.71 KB | None | 0 0
  1. -----------------------------------------------------
  2. ---Epic Exotic Chemistry Version 5- keys~> V,X,C-----
  3. -----------------------------------------------------
  4.  
  5. tpt.el.wax.name="CISO"
  6. tpt.el.wax.flammable=0
  7. tpt.el.wax.heat=40
  8. tpt.el.wax.menusection=10
  9. tpt.el.wax.color=0xffaa55
  10. tpt.el.wax.description=" C Isotope, unstable radioactive, Crystaline Isotope, forms within Isotope Z upon light P Isotope bombardment."
  11. tpt.el.wax.hardness=2
  12. tpt.el.wax.weight=101.0
  13. tpt.el.mwax.hardness=2
  14. tpt.el.mwax.name="DISO"
  15. tpt.el.mwax.flammable=0
  16. tpt.el.mwax.heat=-255
  17. tpt.el.mwax.menusection=10
  18. tpt.el.mwax.color=0x1111AA11
  19. tpt.el.mwax.weight=85.5
  20. tpt.el.mwax.gravity=-0.7
  21. tpt.el.mwax.diffusion = 4.5
  22. tpt.el.mwax.description="Destabalized C Isotope, lightly radioactive and vaporus "
  23. math.randomseed(os.time())
  24. function isotope(i,x,y,s,n)
  25. if tpt.parts[i].life==0 then
  26. tpt.parts[i].life=8
  27. end
  28. ox=math.random(x-1,x+1)
  29. oy=math.random(y-1,y+1)
  30. if tpt.get_property("type",ox,oy)==tpt.el.anar.id then
  31. tpt.set_property("type",tpt.el.glow.id,ox,oy)
  32. tpt.set_property("temp",tpt.get_property("temp",ox,oy)+100,ox,oy)
  33. tpt.create(math.random(x-1,x+1),math.random(y-1,y+1),tpt.el.caus.id)
  34. tpt.parts[i].life=tpt.parts[i].life-1
  35. end
  36. end
  37. tpt.element_func(isotope, tpt.el.wax.id,1)
  38. tpt.element_func(isotope, tpt.el.mwax.id,1)
  39. function caus(i,x,y,s,n)
  40. for ex=x-1,x+1,1 do
  41. for ey=y-1,y+1,1 do
  42. if tpt.get_property("type",ex,ey)==tpt.el.acid.id then
  43. tpt.delete(ex,ey)
  44. tpt.parts[i].life=tpt.parts[i].life-1
  45. if tpt.parts[i].life==51 then
  46. tpt.delete(i)
  47. end
  48. end
  49. end
  50. end
  51. end
  52.    
  53.  
  54.  
  55.  
  56. tpt.el.bran.name="HEMP"
  57. tpt.el.bran.enabled=1
  58. tpt.el.bran.color=0xBFFCFF
  59. tpt.el.bran.description=" Heavy Exotic Metallic Plasmoid,:p highly conductive, Isotopic decay of Destabalized CISO upon P Isotope bombardment.."
  60. tpt.el.bran.menu=1
  61. tpt.el.bran.weight=99
  62. tpt.el.bran.menusection=7
  63. tpt.el.bran.falldown=3
  64. tpt.el.bran.gravity=5
  65. tpt.el.bran.diffusion=2
  66. tpt.el.bran.heat=-255
  67. tpt.el.bran.advection=2
  68. tpt.eltransition.bran.tempHighValue = 1600
  69. tpt.eltransition.bran.tempHighType = tpt.element('exot')
  70. tpt.el.bran.explosive=1
  71. function graphics(i, colr, colg, colb)
  72. if tpt.get_property("temp",i) < 5000
  73. and tpt.get_property("temp",i) > 273 then
  74. return 0,0x00FF0030,255,0,255,0,75,183,0,255
  75. elseif tpt.get_property("temp",i) > 5000 then
  76. return 0,0x00ff0020,255,255,255,0,75,255,0,0
  77. elseif tpt.get_property("temp",i) < 273 then
  78. return 0,0x00ff0020,255,0,255,255,75,0,0,255
  79. end
  80. end
  81. tpt.graphics_func(graphics,tpt.el.bran.id)
  82.  
  83.  
  84.  
  85.  
  86. tpt.el.pste.name = 'EMV'
  87. tpt.el.pste.description = 'Exotic Metallic Vapor, conductive only once.'
  88. tpt.el.pste.color = 0xBFFBFF
  89. tpt.el.pste.menusection = 6
  90. tpt.el.pste.diffusion = 1.5
  91. tpt.el.pste.gravity = 0.5
  92. tpt.el.pste.weight = 1.0
  93. tpt.el.pste.heat = 10.0
  94. tpt.el.pste.hardness = 4.0
  95. tpt.el.pste.properties = 2600
  96. tpt.eltransition.pste.tempHighValue = 1800
  97. tpt.eltransition.pste.tempHighType = tpt.element('glow')
  98.  
  99.  
  100.  
  101.  
  102. tpt.el.clst.name="Dirt"
  103. tpt.el.clst.description="Dirt, Just add water."
  104. tpt.el.clst.color=0xC77400
  105. tpt.el.clst.weight=85.0
  106. tpt.el.clst.menusection=8
  107.  
  108.  
  109. tpt.el.brmt.name="Rust"
  110. tpt.el.brmt.description="oxidized Iron"
  111.  
  112.  
  113. tpt.el.metl.name = "SSTL"
  114. tpt.el.metl.description = "Stainless Steel, uncorrosive and conductive."
  115. tpt.el.metl.hardness = -1
  116. tpt.el.metl.menusection = 9
  117. tpt.el.metl.color=0xA1AAA1
  118. tpt.el.metl.weight = 102.0
  119.  
  120.  
  121.  
  122. tpt.el.psts.name = 'PEMV'
  123. tpt.el.psts.menu = 1
  124. tpt.el.psts.enabled=1
  125. tpt.el.psts.description =  'Pressurized Exotic Metallic Vapor.'
  126. tpt.el.psts.menusection = 10
  127. tpt.eltransition.psts.tempHighValue = 8888.0
  128. tpt.eltransition.psts.tempHighType = tpt.element('vibr')
  129.  
  130.  
  131.  
  132. tpt.el.isoz.menusection=7
  133. tpt.el.isoz.hardness=2
  134. tpt.el.isoz.description=" Isotope Z, condenced from noble gas upon light neturon bombardment"
  135. tpt.el.iszs.hardness=2
  136. tpt.el.iszs.description=" Isotope Z Stabalized, under goes light radioactive decay"
  137.  
  138.  
  139.  
  140. tpt.el.glow.name="EISO"
  141. tpt.el.glow.description="E Isotope, radioactive decay of D Isotope."
  142. tpt.el.glow.menusection=7
  143. tpt.el.glow.hardness=-1
  144. tpt.eltransition.glow.tempHighValue = 1400
  145. tpt.eltransition.glow.tempHighType = tpt.element('hemp')
  146.  
  147.  
  148.  
  149. tpt.el.anar.name="PISO"
  150. tpt.el.anar.description="P Isotopes, The untested radioactive emissions of Jupiter's red spot , effected by energy X."
  151. tpt.el.anar.flammable=0
  152. tpt.el.anar.weight=101.0
  153. tpt.el.anar.heat=-50
  154. tpt.el.anar.hardness=-1
  155. tpt.el.anar.color=0xff11ffff
  156. tpt.el.anar.gravity=0.0
  157. tpt.el.anar.diffusion=4.0
  158. tpt.el.anar.falldown=-1
  159. tpt.el.anar.menusection=10
  160. tpt.el.anar.airloss=1
  161. tpt.el.anar.airdrag=0
  162.  
  163.  
  164.  
  165.  
  166. tpt.el.grav.name="IMEG"
  167. tpt.el.grav.description="Inert Metallic Exotic Gel, Very light and photo-voltaic. created within an exotic/micro-carbon based reaction."
  168. tpt.el.grav.menusection = 10
  169. tpt.el.grav.color = BFBFFBFF
  170. tpt.el.grav.diffusion = 1.0
  171. tpt.el.grav.gravity = 0.5
  172. tpt.el.grav.weight = 2.0
  173. tpt.el.grav.heat = 1.0
  174. tpt.el.grav.flammable = 0.0
  175. math.randomseed(os.time())
  176. function boom (i,x,y,s,n)
  177. a=math.random(-1,1)
  178. b=math.random(-1,1)
  179. c=tpt.get_property("temp",i)
  180. if c>140+273.15 then
  181. tpt.create(x+a,y+b,"EMV")
  182. end
  183. end
  184. tpt.element_func(boom,tpt.el.grav.id)
  185.  
  186.  
  187.  
  188.  
  189. tpt.el.boyl.name="RUMS"
  190. tpt.el.boyl.heat=340
  191. tpt.el.boyl.description="Rubidic Mold Spore, soap=death, density of spore cloud varies with temp, C key to activate mass colonization!"
  192. tpt.el.boyl.menusection=6
  193. tpt.el.boyl.color=0xBB11ff
  194. tpt.el.boyl.enabled=1
  195. tpt.el.boyl.gravity=0.1
  196. function moldspore()
  197. x=math.random(99999998,999999999)
  198. tpt.el.boyl.color=x
  199. end
  200. tpt.register_step(moldspore)
  201.  
  202.  
  203.  
  204.  
  205. tpt.el.brel.name = 'CCOM'
  206. tpt.el.exot.description= "Exotic non conductive heavy Isotopic decay of HEMP, sensitive to energy particles."
  207. tpt.el.exot.color = 0xBFFBFB
  208. tpt.el.exot.menusection = 7
  209. tpt.el.exot.hardness=-1
  210. tpt.el.brel.menusection = 8
  211. tpt.el.brel.advection = 0.3
  212. tpt.el.brel.loss = 0.7
  213. tpt.el.brel.airdrag = 0.0
  214. tpt.el.brel.description= "Micro Carbon Compound, very conductive."
  215. tpt.el.brel.color = 0xA1AAA1
  216. tpt.el.brel.weight = 85.5
  217. tpt.el.brel.gravity = 0.5
  218. tpt.el.brel.hotair = 0.0
  219. tpt.el.brel.diffusion = 0.1
  220. tpt.el.brel.color = 0xB7B7A9
  221. tpt.eltransition.brel.tempHighValue = 9720
  222. tpt.eltransition.brel.tempHighType = tpt.element('dmnd')
  223. exot_react = 0
  224. math.randomseed(os.time())
  225. tpt.setfpscap(50)
  226. function exot_react(i,x,y,nt)
  227. local found_brel = false
  228. if tpt.get_property("type",x+1,y)==tpt.el.brel.id then
  229. found_brel = true
  230. end
  231. if tpt.get_property("type",x-1,y)==tpt.el.brel.id then
  232. found_brel = true
  233. end
  234. if tpt.get_property("type",x,y+1)==tpt.el.brel.id then
  235. found_brel = true
  236. end
  237. if tpt.get_property("type",x,y-1)==tpt.el.brel.id then
  238. found_brel = true
  239. end
  240. if found_brel then
  241. tpt.set_property("type","IMEG",x,y)
  242. exot_react = 100
  243. end
  244. end
  245. tpt.element_func(exot_react,tpt.el.exot.id,1)
  246.  
  247.  
  248.  
  249.  
  250. local element1 = elements.allocate("MOD", "MOLD")
  251. elements.element(elements.MOD_PT_MOLD, elements.element(elements.DEFAULT_PT_CAUS))
  252. elements.property(elements.MOD_PT_MOLD, "Name", "Mold")
  253. elements.property(elements.MOD_PT_MOLD, "Description", "Matter Eating Space Mold. X to spore")
  254. elements.property(elements.MOD_PT_MOLD, "Colour", 0xFFB33702)
  255. elements.property(elements.MOD_PT_MOLD, "MenuSection", 5)
  256. elements.property(elements.MOD_PT_MOLD, "Gravity", 0.0)
  257. elements.property(elements.MOD_PT_MOLD, "Loss", 0.0)
  258. elements.property(elements.MOD_PT_MOLD, "AirLoss", 0.0)
  259. elements.property(elements.MOD_PT_MOLD, "AirDrag", 0.0)
  260. elements.property(elements.MOD_PT_MOLD, "Advection", 0.0)
  261. elements.property(elements.MOD_PT_MOLD, "Weight", 0.1)
  262. elements.property(elements.MOD_PT_MOLD, "Flammable", 1000)
  263. elements.property(elements.MOD_PT_MOLD, "Explosive", 1000)
  264. elements.property(elements.MOD_PT_MOLD, "Diffusion", 0.01)
  265. elements.property(elements.MOD_PT_MOLD, "Properties", PROP_LIFE_DEC)
  266. elements.property(elements.MOD_PT_MOLD, "Properties", PROP_LIFE_KILL_DEC)
  267. function mold_tick(i, x, y, s, n)
  268. local rand = math.random(1, 200)
  269. if rand == 1 then
  270. tpt.set_property("type", elements.MOD_PT_MOLD, x+1, y+1)
  271. tpt.set_property("type", elements.MOD_PT_MOLD, x-1, y+1)
  272. tpt.set_property("type", elements.MOD_PT_MOLD, x, y+1)
  273. tpt.set_property("type", elements.MOD_PT_MOLD, x+1, y-1)
  274. tpt.set_property("type", elements.MOD_PT_MOLD, x-1, y-1)
  275. tpt.set_property("type", elements.MOD_PT_MOLD, x, y-1)
  276. tpt.set_property("type", elements.MOD_PT_MOLD, x+1, y)
  277. tpt.set_property("type", elements.MOD_PT_MOLD, x-1, y)
  278. local rand2 = math.random(1, 100)
  279. if rand2 == 1 then
  280. tpt.set_property("tmp", 1, x+1, y+1)
  281. tpt.set_property("tmp", 1, x-1, y+1)
  282. tpt.set_property("tmp", 1, x, y+1)
  283. tpt.set_property("tmp", 1, x+1, y-1)
  284. tpt.set_property("tmp", 1, x-1, y-1)
  285. tpt.set_property("tmp", 1, x, y-1)
  286. tpt.set_property("tmp", 1, x+1, y)
  287. tpt.set_property("tmp", 1, x-1, y)
  288. tpt.set_property("vx", 1, x+1, y+1)
  289. tpt.set_property("vx", -1, x-1, y+1)
  290. tpt.set_property("vx", 0, x, y+1)
  291. tpt.set_property("vx", 1, x+1, y-1)
  292. tpt.set_property("vx", -1, x-1, y-1)
  293. tpt.set_property("vx", 0, x, y-1)
  294. tpt.set_property("vx", 1, x+1, y)
  295. tpt.set_property("vx", -1, x-1, y)
  296. tpt.set_property("vy", 1, x+1, y+1)
  297. tpt.set_property("vy", 1, x-1, y+1)
  298. tpt.set_property("vy", 1, x, y+1)
  299. tpt.set_property("vy", -1, x+1, y-1)
  300. tpt.set_property("vy", -1, x-1, y-1)
  301. tpt.set_property("vy", -1, x, y-1)
  302. tpt.set_property("vy", 0, x+1, y)
  303. tpt.set_property("vy", 0, x-1, y)
  304. elseif rand2 > 5 then
  305. tpt.set_property("type", elements.MOD_PT_MOLD, math.random(1, 10), math.random(1, 20))
  306. end
  307. if tpt.get_property("tmp", x, y) == 0 then
  308. tpt.set_property("type", 0, x, y)
  309. else
  310. local rand = math.random(1, 1)
  311. if rand == 1 then
  312. tpt.set_property("type", 0, x, y)
  313. end
  314. end
  315. end
  316. end
  317. tpt.element_func(mold_tick, elements.MOD_PT_MOLD)
  318.  
  319.  
  320.  
  321.  
  322. function heat(key,blank,blank,event)
  323. if string.upper(key) == "X" and event == 1 then
  324. tpt.set_property("temp",400,"iszs")
  325. tpt.set_property("temp",0,"bizr")
  326. tpt.set_property("temp",400,"yest")
  327. tpt.set_property("temp",400,"rbdm")
  328. tpt.set_property("type","fire","cflm")
  329. tpt.set_property("type","elec","piso")
  330. tpt.set_property("type","rums","mold")
  331. tpt.set_property("type","co2","dric")
  332. tpt.set_property("type","neut","uran")
  333. end
  334. end
  335. tpt.register_keypress(heat)
  336.  
  337. function solidify(key,blank,blank,event)
  338. if string.upper(key) == "V" and event == 1 then
  339. tpt.set_property("type","brck","stne")
  340. tpt.set_property("type","qrtz","pqrt")
  341. tpt.set_property("type","glas","bgla")
  342. tpt.set_property("type","iron","rust")
  343. tpt.set_property("type","vibr","bvbr")
  344. tpt.set_property("type","spng","dyst")
  345. tpt.set_property("type","wood","yest")
  346. tpt.set_property("type","sstl","ccom")
  347. tpt.set_property("type","bmtl","mold")
  348. end
  349. end
  350. tpt.register_keypress(solidify)
  351.  
  352. function cool(key,blank,blank,event)
  353. if string.upper(key) == "C" and event == 1 then
  354. tpt.set_property("temp",1,"lava")
  355. tpt.set_property("temp",200,"bizr")
  356. tpt.set_property("temp",200,"bizg")
  357. tpt.set_property("temp",0,"isoz")
  358. tpt.set_property("temp",100,"yest")
  359. tpt.set_property("temp",0,"diso")
  360. tpt.set_property("temp",0,"lrbd")
  361. tpt.set_property("temp",0,"dric")
  362. tpt.set_property("type","cflm","fire")
  363. tpt.set_property("type","nice","acid")
  364. tpt.set_property("type","cflm","warp")
  365. tpt.set_property("type","hygn","uran")
  366. tpt.set_property("type","cflm","plsm")
  367. tpt.set_property("type","frzz","snow")
  368. tpt.set_property("type","mold","rums")
  369. tpt.set_property("type","dric","co2")
  370. tpt.set_property("type","ln2","piso")
  371. end
  372. end
  373. tpt.register_keypress(cool)
  374.  
  375.  
  376.  
  377.  
  378. function radioactive()
  379. x=math.random(9900,9995)
  380. tpt.el.psts.color=x
  381. end
  382. tpt.register_step(radioactive)
  383.  
  384. tpt.el.wax.enabled=1
  385. function radioactive()
  386. x=math.random(99999890,99999999)
  387. tpt.el.wax.color=x
  388. end
  389. tpt.register_step(radioactive)
  390.  
  391. tpt.el.mwax.enabled=1
  392. function radioactive()
  393. x=math.random(1,9999999)
  394. tpt.el.mwax.color=x
  395. end
  396. tpt.register_step(radioactive)
  397.  
  398. tpt.el.anar.enabled=1
  399. function radioactive()
  400. x=math.random(99950,99999)
  401. tpt.el.anar.color=x
  402. end
  403. tpt.register_step(radioactive)
  404.  
  405.  
  406.  
  407.    
  408. local Element1 = elements.allocate("MOD", "SNDM")
  409. elements.element(elements.MOD_PT_SNDM, elements.element(tpt.element("MERC")))
  410. elements.property(elements.MOD_PT_SNDM, "Name", "SNDM")
  411. elements.property(elements.MOD_PT_SNDM, "Color", 0xb1AAA1)
  412. elements.property(elements.MOD_PT_SNDM, "Gravity", 0)
  413. elements.property(elements.MOD_PT_SNDM, "Falldown", 0)
  414. elements.property(elements.MOD_PT_SNDM, "Weight", 100)
  415. elements.property(elements.MOD_PT_SNDM, "MenuVisible", 1)
  416. elements.property(elements.MOD_PT_SNDM, "MenuSection", 1)
  417. elements.property(elements.MOD_PT_SNDM, "Advection", 0.05)
  418. elements.property(elements.MOD_PT_SNDM, "AirDrag", 0.01)
  419. elements.property(elements.MOD_PT_SNDM, "Loss", 0.2)
  420. elements.property(elements.MOD_PT_SNDM, "Collision", -0.2)
  421. elements.property(elements.MOD_PT_SNDM, "Flammable", 0)
  422. elements.property(elements.MOD_PT_SNDM, "Hardness", 7)
  423. elements.property(elements.MOD_PT_SNDM, "Temperature", 250.0)
  424. elements.property(elements.MOD_PT_SNDM, "HeatConduct", 0)
  425. elements.property(elements.MOD_PT_SNDM, "Description", "Esendiem,:} strange & reactive.")
  426. local function Esendiem(i, x, y, s, n)
  427.  
  428. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  429. if element == tpt.el.watr.id or element == tpt.el.dstw.id or element == tpt.el.bubw.id then
  430. tpt.parts[i].type = tpt.el.cnct.id
  431. tpt.set_property('life', math.random(100, 150), i)
  432. end
  433.  
  434. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  435. if element == tpt.el.oxyg.id or element == tpt.el.loxy.id then
  436. tpt.parts[i].type = tpt.el.brmt.id
  437. end
  438.  
  439. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  440. if element == tpt.el.caus.id then
  441. tpt.parts[i].type = tpt.el.nitr.id
  442. end
  443.  
  444. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  445. if element == tpt.el.acid.id then
  446. tpt.parts[i].type = tpt.el.metl.id
  447. end
  448.  
  449. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  450. if element == tpt.el.anar.id then
  451. tpt.parts[i].type = tpt.el.iron.id
  452. end
  453.  
  454. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  455. if element == tpt.el.neut.id then
  456. tpt.parts[i].type = tpt.el.lrbd.id
  457. end
  458.  
  459. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  460. if element == tpt.el.co2.id then
  461. tpt.parts[i].type = tpt.el.brel.id
  462. end
  463.  
  464. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  465. if element == tpt.el.bran.id then
  466. tpt.parts[i].type = tpt.el.grav.id
  467. end
  468.  
  469. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  470. if element == tpt.el.elec.id then
  471. tpt.parts[i].type = tpt.el.iszs.id
  472. end
  473.  
  474. local element = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
  475. if element == tpt.el.glow.id then
  476. tpt.parts[i].type = tpt.el.mwax.id
  477. end
  478. end
  479. tpt.element_func(Esendiem, elements.MOD_PT_SNDM)
  480.  
  481.  
  482.  
  483.  
  484. local elTemporaryValue = tpt.eltransition.dust.presHighValue
  485. local elTemporaryType = tpt.eltransition.dust.presHighType
  486. tpt.eltransition.dust.presHighValue = 25
  487. tpt.eltransition.dust.presHighType = tpt.element("CCOM")
  488.  
  489. local elTemporaryValue = tpt.eltransition.brel.presHighValue
  490. local elTemporaryType = tpt.eltransition.brel.presHighType
  491. tpt.eltransition.brel.presHighValue = 115
  492. tpt.eltransition.brel.presHighType = tpt.element("dmnd")
  493.  
  494. local elTemporaryValue = tpt.eltransition.exot.presHighValue
  495. local elTemporaryType = tpt.eltransition.exot.presHighType
  496. tpt.eltransition.exot.presHighValue = 55
  497. tpt.eltransition.exot.presHighType = tpt.element("hygn")
  498.  
  499. local elTemporaryValue = tpt.eltransition.wood.presHighValue
  500. local elTemporaryType = tpt.eltransition.wood.presHighType
  501. tpt.eltransition.wood.presHighValue = 45
  502. tpt.eltransition.wood.presHighType = tpt.element("dust")
  503.  
  504. local elTemporaryValue = tpt.eltransition.shld.presHighValue
  505. local elTemporaryType = tpt.eltransition.shld.presHighType
  506. tpt.eltransition.shld.presHighValue = 50
  507. tpt.eltransition.shld.presHighType = tpt.element("neut")
  508.  
  509. local elTemporaryValue = tpt.eltransition.shd2.presHighValue
  510. local elTemporaryType = tpt.eltransition.shd2.presHighType
  511. tpt.eltransition.shd2.presHighValue = 120
  512. tpt.eltransition.shd2.presHighType = tpt.element("neut")
  513.  
  514. local elTemporaryValue = tpt.eltransition.shd3.presHighValue
  515. local elTemporaryType = tpt.eltransition.shd3.presHighType
  516. tpt.eltransition.shd3.presHighValue = 150
  517. tpt.eltransition.shd3.presHighType = tpt.element("neut")
  518.  
  519. local elTemporaryValue = tpt.eltransition.shd4.presHighValue
  520. local elTemporaryType = tpt.eltransition.shd4.presHighType
  521. tpt.eltransition.shd4.presHighValue = 200
  522. tpt.eltransition.shd4.presHighType = tpt.element("shd4")
  523.  
  524. local elTemporaryValue = tpt.eltransition.wax.presHighValue
  525. local elTemporaryType = tpt.eltransition.wax.presHighType
  526. tpt.eltransition.wax.presHighValue = 25
  527. tpt.eltransition.wax.presHighType = tpt.element("elec")
  528.  
  529. local elTemporaryValue = tpt.eltransition.metl.presHighValue
  530. local elTemporaryType = tpt.eltransition.metl.presHighType
  531. tpt.eltransition.metl.presHighValue = 100
  532. tpt.eltransition.metl.presHighType = tpt.element("iron")
  533.  
  534.  
  535.  
  536. function react(i,x,y)
  537. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  538. if type==tpt.el.wax.id then
  539. tpt.parts[i].type=tpt.el.deut.id
  540. end
  541. end    
  542. tpt.element_func(react,tpt.el.phot.id)
  543.  
  544. function react(i,x,y)
  545. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  546. if type==tpt.el.anar.id then
  547. tpt.parts[i].type=tpt.el.boyl.id
  548. end
  549. end  
  550. tpt.element_func(react,tpt.el.rbdm.id)
  551.  
  552. function react(i,x,y)
  553. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  554. if type==tpt.el.neut.id then
  555. tpt.parts[i].type=tpt.el.bvbr.id
  556. end
  557. end  
  558. tpt.element_func(react,tpt.el.psts.id)
  559.  
  560. function react(i,x,y)
  561. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  562. if type==tpt.el.anar.id then
  563. tpt.parts[i].type=tpt.el.wax.id
  564. end
  565. end
  566. tpt.element_func(react,tpt.el.iszs.id)
  567.  
  568. function react(i,x,y)
  569. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  570. if type==tpt.el.yest.id then
  571. tpt.parts[i].type=tpt.el.desl.id
  572. end
  573. end  
  574. tpt.element_func(react,tpt.el.oil.id)
  575.  
  576. function react(i,x,y)
  577. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  578. if type==tpt.el.neut.id then
  579. tpt.parts[i].type=tpt.el.isoz.id
  580. end
  581. end
  582. tpt.element_func(react,tpt.el.nble.id)
  583.  
  584. function react(i,x,y)
  585. typeel=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  586. if type==tpt.el.phot.id then
  587. tpt.parts[i].type=tpt.el.oxyg.id
  588. end
  589. end    
  590. tpt.element_func(react,tpt.el.hygn.id)
  591.  
  592. function react(i,x,y)
  593. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  594. if type==tpt.el.oxyg.id then
  595. tpt.parts[i].type=tpt.el.nble.id
  596. end
  597. end    
  598. tpt.element_func(react,tpt.el.elec.id)
  599.  
  600. function react(i,x,y)
  601. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  602. if type==tpt.el.anar.id then
  603. tpt.parts[i].type=tpt.el.ln2.id
  604. end
  605. end    
  606. tpt.element_func(react,tpt.el.brmt.id)
  607.  
  608. function react(i,x,y)
  609. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  610. if type==tpt.el.anar.id then
  611. tpt.parts[i].type=tpt.el.qrtz.id
  612. end
  613. end    
  614. tpt.element_func(react,tpt.el.co2.id)
  615.  
  616. function react(i,x,y)
  617. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  618. if type==tpt.el.elec.id then
  619. tpt.parts[i].type=tpt.el.plut.id
  620. end
  621. end    
  622. tpt.element_func(react,tpt.el.wax.id)
  623.  
  624. function react(i,x,y)
  625. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  626. if type==tpt.el.watr.id then
  627. tpt.parts[i].type=tpt.el.vine.id
  628. end
  629. end
  630. tpt.element_func(react,tpt.el.wood.id)
  631.  
  632. function react(i,x,y)
  633. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  634. if type==tpt.el.wax.id then
  635. tpt.parts[i].type=tpt.el.shld.id
  636. end
  637. end
  638. tpt.element_func(react,tpt.el.neut.id)
  639.  
  640. function react(i,x,y)
  641. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  642. if type==tpt.el.wood.id then
  643. tpt.parts[i].type=tpt.el.dyst.id
  644. end
  645. end
  646. tpt.element_func(react,tpt.el.anar.id)
  647.  
  648. function react(i,x,y)
  649. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  650. if type==tpt.el.sltw.id then
  651. tpt.parts[i].type=tpt.el.acid.id
  652. end
  653. end
  654. tpt.element_func(react,tpt.el.caus.id)
  655.  
  656. function react(i,x,y)
  657. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  658. if type==tpt.el.watr.id then
  659. tpt.parts[i].type=tpt.el.plnt.id
  660. end
  661. end
  662. tpt.element_func(react,tpt.el.clst.id)
  663.  
  664. function react(i,x,y)
  665. type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
  666. if type==tpt.el.soap.id then
  667. tpt.parts[i].type=tpt.el.merc.id
  668. end
  669. end
  670. tpt.element_func(react,tpt.el.boyl.id)
  671.  
  672.  
  673.  
  674.  
  675.  
  676. tpt.el.rbdm.menusection=5
  677. tpt.el.vibr.menusection=9
  678. tpt.el.bvbr.menusection=8
  679. tpt.el.qrtz.weight=101.0
  680. tpt.el.dmnd.weight = 200.5
  681. tpt.el.dmnd.menusection =9
  682. tpt.el.iron.weight = 101.5
  683. tpt.el.ttan.weight = 102.5
  684. tpt.el.dmnd.description =" Indestructible to all but MOLD."
  685.  
  686. tpt.el.rime.menusection=9
  687. tpt.el.rime.menu=1
  688.  
  689. tpt.el.frzw.menusection=7
  690. tpt.el.frzw.menu=1
  691.  
  692. tpt.el.shd4.menu=1
  693. tpt.el.shd3.menu=1
  694. tpt.el.shd2.menu=1
  695. tpt.el.shd4.menusection=9
  696. tpt.el.shd3.menusection=9
  697. tpt.el.shd2.menusection=9
  698.  
  699. tpt.el.bray.menu=1
  700. tpt.el.bray.menusection=11
  701.  
  702. tpt.el.bizs.menusection=9
  703. tpt.el.bizs.menu=1
  704.  
  705. tpt.el.bizg.menu=1
  706. tpt.el.bizg.menusection=6
  707.  
  708. tpt.el.dyst.menu = 1
  709. tpt.el.bcol.flammable=4
  710.  
  711. tpt.el.embr.menusection=5
  712. tpt.el.embr.menu=1
  713.  
  714. tpt.el.acid.weight=25
  715. tpt.el.caus.weight=26
  716.  
  717. tpt.el.merc.menusection = 7
  718. tpt.el.lrbd.menusection = 7
  719.  
  720. tpt.el.watr.hardness=2
  721. tpt.el.dstw.hardness=2
  722. tpt.el.sltw.hardness=-1
  723.  
  724. tpt.el.soap.weight=25
  725. tpt.el.soap.hardness=0
  726.  
  727. tpt.el.gas.hardness=-1
  728. tpt.el.co2.hardness=-1
  729. tpt.el.smke.flammable=0
  730. tpt.el.wtrv.hardness=-1
  731.  
  732. tpt.el.fog.menu=1
  733. tpt.el.fog.menusection=6
  734.  
  735. tpt.el.spwn.menu=1
  736. tpt.el.spwn2.menu=1
  737. tpt.el.spwn.menusection=11
  738. tpt.el.spwn2.menusection=11
  739.  
  740.  
  741.  
  742.  
  743. local element1 = elements.allocate("FEYNMAN", "BPDR")
  744. elements.element(elements.FEYNMAN_PT_BPDR, elements.element(elements.DEFAULT_PT_BCOL))
  745. elements.property(elements.FEYNMAN_PT_BPDR, "Name", "BPDR")
  746. elements.property(elements.FEYNMAN_PT_BPDR, "Description", "Black Powder. Very explosive.")
  747. elements.property(elements.FEYNMAN_PT_BPDR, "Colour", 0x353535)
  748. elements.property(elements.FEYNMAN_PT_BPDR, "MenuSection", 5)
  749. elements.property(elements.FEYNMAN_PT_BPDR, "Gravity", .5)
  750. elements.property(elements.FEYNMAN_PT_BPDR, "Flammable", 10000)
  751. elements.property(elements.FEYNMAN_PT_BPDR, "Explosive", 1)
  752. elements.property(elements.FEYNMAN_PT_BPDR, "Loss", 1)
  753. elements.property(elements.FEYNMAN_PT_BPDR, "AirLoss", .5)
  754. elements.property(elements.FEYNMAN_PT_BPDR, "AirDrag", .01)
  755. elements.property(elements.FEYNMAN_PT_BPDR, "Advection", .01)
  756. elements.property(elements.FEYNMAN_PT_BPDR, "Weight", 0)
  757. elements.property(elements.FEYNMAN_PT_BPDR, "Diffusion", 0)
  758.  
  759.  
  760.  
  761.  
  762. local element1 = elements.allocate("FEYNMAN", "REXP")
  763. elements.element(elements.FEYNMAN_PT_REXP, elements.element(elements.DEFAULT_PT_BCOL))
  764. elements.property(elements.FEYNMAN_PT_REXP, "Name", "REXP")
  765. elements.property(elements.FEYNMAN_PT_REXP, "Description", "More realistic explosive. It explodes by burning rather than exploding and with lots of heat.")
  766. elements.property(elements.FEYNMAN_PT_REXP, "Colour", 0xFF5000)
  767. elements.property(elements.FEYNMAN_PT_REXP, "MenuSection", 5)
  768. elements.property(elements.FEYNMAN_PT_REXP, "Gravity", 0)
  769. elements.property(elements.FEYNMAN_PT_REXP, "Flammable", 10000)
  770. elements.property(elements.FEYNMAN_PT_REXP, "Explosive", 1)
  771. elements.property(elements.FEYNMAN_PT_REXP, "Loss", 0)
  772. elements.property(elements.FEYNMAN_PT_REXP, "AirLoss", 0)
  773. elements.property(elements.FEYNMAN_PT_REXP, "AirDrag", .0)
  774. elements.property(elements.FEYNMAN_PT_REXP, "Advection", 0)
  775. elements.property(elements.FEYNMAN_PT_REXP, "Diffusion", 0)
  776.  
  777. ----------------------------------------------
  778. --------------(: wUPJJ2PQ :)------------------
  779. ----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement