Because on the menu it will scramble up. :D
Also, the description is not uppdated every frame... Only the name, color, gravity, falldown, heat, and weight.
Here is another version of it
tpt.el.eqve.enabled=1
tpt.el.eqve.menu=1
tpt.el.eqve.menusection=10
tpt.el.eqve.description="The random element."
function EQVE()
a=math.random(0,2)
b=math.random(-10,10)
d=math.random(-999,9999)
e=math.random(0,10000) tpt.el.eqve.name=d
tpt.el.eqve.color=d
tpt.el.eqve.gravity=b
tpt.el.eqve.falldown=a
tpt.el.eqve.heat=e
tpt.el.eqve.weight=b
end
tpt.register_step(EQVE) function rbow_update(i, x, y, s, n)
tpt.set_property("tmp",tpt.get_property("tmp",i)+8,i)
if tpt.get_property("tmp",i)==256 then
tpt.set_property("tmp",0,i)
end
cindex=tpt.get_property("tmp",i)
tpt.set_property("dcolour",math.floor(math.sin(cindex*3.14159/127.5)*128+128)+math.floor(math.sin(cindex*3.14159/127.5+2.0944)*128+128)*0x100+math.floor(math.sin(cindex*3.14159/127.5+4.1888)*128+128)*0x10000+0xff000000,i)
end
tpt.element_func(rbow_update, tpt.el.eqve.id)
Mind if i use this in my mod? I like it. Its awesome.