Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rauth = elem.allocate("EXOTIC", "RWTR")
- elem.element(Rauth, elem.element(elem.DEFAULT_PT_GLOW))
- elem.property(Rauth, "Name", "RWTR")
- elem.property(Rauth, "Description", "Rauth's water, universal crystal solution, used to grow synthetic crystals.")
- local Red97a = elem.allocate("EXOTIC", "R97A")
- elem.element(Red97a, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Red97a, "Name", "R97A")
- elem.property(Red97a, "Description", "Red-97a crystal, often suddently decays creating a shockwave.")
- elem.property(Red97a, "Weight", 101.5)
- elem.property(Red97a, "Temperature", 295.15)
- elem.property(Red97a, "Hardness", -1)
- elem.property(Red97a, "Color", 0xFFC80000)
- --elem.property(Red97a, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Red97a, "MenuVisible", 0)
- function Red97a(i, x, y, surround, nt)
- if math.random(1,100000) == 1 then
- sim.partChangeType(i, tpt.element('y119'))
- sim.pressure(x/4,y/4,(sim.pressure(x/4,y/4)+50))
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_PROT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_PROT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_PROT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_PROT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_PROT)
- end
- local r = sim.partID(math.random(x-1, x+1), math.random(y-1, y+1))
- if r ~= nil then
- if sim.partProperty(r, "type") == tpt.element('rwtr') then
- if math.random(1,2000) == 1 then
- sim.partChangeType(r, tpt.element('r97a'))
- end
- end
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Red97a, tpt.element('r97a'))
- local function Red97aGlow(i, r, g, b)
- return 1, 0x00010001, 255, 200, 0, 0, 20, 200, 0, 0
- end
- tpt.graphics_func(Red97aGlow, tpt.element('r97a'))
- local Yellow119 = elem.allocate("EXOTIC", "Y119")
- elem.element(Yellow119, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Yellow119, "Name", "Y119")
- elem.property(Yellow119, "Description", "Yellow-119, grows more rapidly than other crystals, decays with NEUT.")
- elem.property(Yellow119, "Weight", 101.5)
- elem.property(Yellow119, "Temperature", 295.15)
- elem.property(Yellow119, "Hardness", -1)
- elem.property(Yellow119, "Color", 0xFFFFFF00)
- --elem.property(Yellow119, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Yellow119, "MenuVisible", 0)
- function Yellow119(i, x, y, surround, nt)
- if math.random(1,100000) == 1 then
- sim.partChangeType(i, tpt.element('g73c'))
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- end
- local r = sim.partID(math.random(x-1, x+1), math.random(y-1, y+1))
- if r ~= nil then
- if sim.partProperty(r, "type") == tpt.element('rwtr') then
- if math.random(1,1000) == 1 then
- sim.partChangeType(r, tpt.element('y119'))
- end
- end
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Yellow119, tpt.element('y119'))
- local function Yellow119Glow(i, r, g, b)
- return 1, 0x00010001, 255, 255, 255, 0, 20, 255, 255, 0
- end
- tpt.graphics_func(Yellow119Glow, tpt.element('y119'))
- local Green73c = elem.allocate("EXOTIC", "G73C")
- elem.element(Green73c, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Green73c, "Name", "G73C")
- elem.property(Green73c, "Description", "Green-73c.")
- elem.property(Green73c, "Weight", 101.5)
- elem.property(Green73c, "Temperature", 295.15)
- elem.property(Green73c, "Hardness", -1)
- elem.property(Green73c, "Color", 0xFF00C800)
- --elem.property(Green73c, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Green73c, "MenuVisible", 0)
- function Green73c(i, x, y, surround, nt)
- if math.random(1,100000) == 1 then
- sim.partChangeType(i, tpt.element('cn15'))
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- end
- local r = sim.partID(math.random(x-1, x+1), math.random(y-1, y+1))
- if r ~= nil then
- if sim.partProperty(r, "type") == tpt.element('rwtr') then
- if math.random(1,2000) == 1 then
- sim.partChangeType(r, tpt.element('g73c'))
- end
- end
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Green73c, tpt.element('g73c'))
- local function Green73cGlow(i, r, g, b)
- return 1, 0x00010001, 255, 0, 200, 0, 20, 0, 200, 0
- end
- tpt.graphics_func(Green73cGlow, tpt.element('g73c'))
- local Cyan15 = elem.allocate("EXOTIC", "CN15")
- elem.element(Cyan15, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Cyan15, "Name", "CN15")
- elem.property(Cyan15, "Description", "Cyan-15, most stable crystal, emits scarce gamma radiation (PHOT).")
- elem.property(Cyan15, "Weight", 101.5)
- elem.property(Cyan15, "Temperature", 295.15)
- elem.property(Cyan15, "Hardness", -1)
- elem.property(Cyan15, "Color", 0xFF00C8C8)
- --elem.property(Cyan15, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Cyan15, "MenuVisible", 0)
- function Cyan15(i, x, y, surround, nt)
- if math.random(1,500000) == 1 then
- sim.partChangeType(i, tpt.element('bl63'))
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- --sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- end
- local r = sim.partID(math.random(x-1, x+1), math.random(y-1, y+1))
- if r ~= nil then
- if sim.partProperty(r, "type") == tpt.element('rwtr') then
- if math.random(1,2000) == 1 then
- sim.partChangeType(r, tpt.element('cn15'))
- end
- end
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Cyan15, tpt.element('cn15'))
- local function Cyan15Glow(i, r, g, b)
- return 1, 0x00010001, 255, 0, 200, 200, 20, 0, 200, 200
- end
- tpt.graphics_func(Cyan15Glow, tpt.element('cn15'))
- local Blue63 = elem.allocate("EXOTIC", "BL63")
- elem.element(Blue63, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Blue63, "Name", "BL63")
- elem.property(Blue63, "Description", "Blue-63, doesn't grow with RWTR, also found in small quantities on Jupiter.")
- elem.property(Blue63, "Weight", 101.5)
- elem.property(Blue63, "Temperature", 295.15)
- elem.property(Blue63, "Hardness", -1)
- elem.property(Blue63, "Color", 0xFF0000C8)
- --elem.property(Blue63, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Blue63, "MenuVisible", 0)
- function Blue63(i, x, y, surround, nt)
- if math.random(1,100000) == 1 then
- sim.partChangeType(i, tpt.element('m201'))
- end
- if math.random(1,2000) == 1 then
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Blue63, tpt.element('bl63'))
- local function Blue63Glow(i, r, g, b)
- return 1, 0x00010001, 255, 0, 0, 200, 20, 0, 0, 200
- end
- tpt.graphics_func(Blue63Glow, tpt.element('bl63'))
- local Magenta201 = elem.allocate("EXOTIC", "M201")
- elem.element(Magenta201, elem.element(elem.DEFAULT_PT_QRTZ))
- elem.property(Magenta201, "Name", "M201")
- elem.property(Magenta201, "Description", "Magenta-201, generates ionized NBLE around while decaying..")
- elem.property(Magenta201, "Weight", 101.5)
- elem.property(Magenta201, "Temperature", 295.15)
- elem.property(Magenta201, "Hardness", -1)
- elem.property(Magenta201, "Color", 0xFFC800C8)
- --elem.property(Magenta201, "MenuSection", elem.SC_NUCLEAR)
- --elem.property(Magenta201, "MenuVisible", 0)
- function Magenta201(i, x, y, surround, nt)
- if math.random(1,100000) == 1 then
- sim.partChangeType(i, tpt.element('dmnd'))
- end
- if math.random(1,2000) == 1 then
- sim.partCreate(-3, x+math.random(-1,1), y+math.random(-1,1), elem.DEFAULT_PT_NEUT)
- end
- if sim.partProperty(i, "temp") < 10 then
- sim.partChangeType(i, tpt.element('ciso'))
- end
- end
- tpt.element_func(Magenta201, tpt.element('m201'))
- local function Magenta201Glow(i, r, g, b)
- return 1, 0x00010001, 255, 200, 0, 200, 20, 200, 0, 200
- end
- tpt.graphics_func(Magenta201Glow, tpt.element('m201'))
Advertisement
Add Comment
Please, Sign In to add comment