Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Hi, person reading source code! This script converts elements on screen to dmnd and decos it the approx color of the original element. This script is similar to Damian97s Rust Bomb Script. Note: Equave purposefully does something special.
- local Dcor = elements.allocate("Temporaryaccount" , "DCOR")
- elements.element(Dcor, elements.element(elements.DEFAULT_PT_EMP))
- elements.property(Dcor, "Name" , "DCOR")
- elements.property(Dcor, "HeatConduct" , 0)
- elements.property(Dcor, "MenuSection", elem.SC_SPECIAL)
- elements.property(Dcor, "Description" , "Changes most elements into dmnd with the deco of the original element's color")
- elements.property(Dcor, "Color", "0xFFFE8EE0")
- local nnm = 0
- function Decorate(i,x,y,s,n)
- tpt.set_property('type', 'none', 'dcor')
- local rx = 4
- local ry = 4
- while ry < 380 do
- local f = tpt.get_property("type", rx, ry)
- if f ~= 0 then
- if f ~= 116 then
- local n = tpt.get_property("dcolour", rx, ry)
- if n == 0 then
- local r,g,b = gfx.getColors(elem.property(f, "Color"))
- tpt.set_property('dcolor', gfx.getHexColor(r,g,b,255), rx, ry)
- end
- tpt.set_property('type', "DMND", rx, ry)
- end
- end
- if f == 116 then
- tpt.throw_error(" Haha trolololol... exit out the game to continue ctrl/command Q")
- end
- if rx == 607 then
- rx = 0
- ry = ry + 1
- else
- rx = rx + 1
- end
- end
- if nnm == 0 then
- nnm = 75
- tpt.register_step(Emp)
- end
- end
- function Emp()
- if nnm == 0 then
- tpt.unregister_step(emp)
- return
- end
- a = math.random(0,255)
- b = math.random(0,255)
- c = math.random(0,255)
- gfx.fillRect(-1,-1, sim.XRES, sim.YRES, a, b, c, nnm)
- nnm = nnm - 1
- end
- tpt.element_func(Decorate,Dcor)
Advertisement
Add Comment
Please, Sign In to add comment