For example, an element starts off at 200C
It then repeatedly takes 1 degree off it.
Help, anyone?
local curTemp=0 -- Current temperature of the particle, don't edit this value, nothing will happen
local changeBy = 1 -- The amount to change by in a single tick. Use negative values for decreasing temperature. Change this if you want to.
function derp(index, x, y, ss, nt)
curTemp = tpt.get_property("temp", x, y)
tpt.set_property("temp", curTemp+changeBy, x, y)
end
-- Attaches this behaviour to element GLOW.
tpt.element_func(derp, tpt.element("glow"))
dofile("derp.lua")