i want to make it so this element cannot lose temperature, but can heat things up. (so it transfers heat but doesnt take on cool)
Maybe try putting something like this in the update function:
sim.partProperty(i, "temp", math.max(sim.partProperty(i, "temp"), sim.partProperty(i, "tmp")))
sim.partProperty(i, "tmp", math.floor(sim.partProperty(i, "temp")))
(I haven't tested this, so I don't know if it'll actually work, but this should allow the material to heat up but not cool down.)
hmm. when the element falls onto ttan, the ttan heats up and the element cools, is it possible to make it so that the element can heat the ttan, but stay at max temp on its own? the code is
elements.allocate('AU3FGEN', 'EXPL')
elements.element(elements.AU3FGEN_PT_EXPL, elements.element(elements.DEFAULT_PT_BCOL))
elements.property(elements.AU3FGEN_PT_EXPL, 'Name', 'EXPL')
elements.property(elements.AU3FGEN_PT_EXPL, 'Description', 'explosive')
elements.property(elements.AU3FGEN_PT_EXPL, 'Color', '0xF76D00')
elements.property(elements.AU3FGEN_PT_EXPL, 'MenuSection', '5')
elements.property(elements.AU3FGEN_PT_EXPL, 'Gravity', '7')
elements.property(elements.AU3FGEN_PT_EXPL, 'Flammable', '0')
elements.property(elements.AU3FGEN_PT_EXPL, 'Explosive', '0')
elements.property(elements.AU3FGEN_PT_EXPL, 'Temperature', '9000')
elements.property(elements.AU3FGEN_PT_EXPL, 'LowTemperature', '9999')
elements.property(elements.AU3FGEN_PT_EXPL, 'HotAir', '10')
elements.property(elements.AU3FGEN_PT_EXPL, 'Loss', '0')
elements.property(elements.AU3FGEN_PT_EXPL, 'AirLoss', '0')
elements.property(elements.AU3FGEN_PT_EXPL, 'AirDrag', '0.1')
elements.property(elements.AU3FGEN_PT_EXPL, 'Advection', '1')
elements.property(elements.AU3FGEN_PT_EXPL, 'Weight', '100')elements.property(elements.AU3FGEN_PT_EXPL, 'HeatConduct', '50')
elements.property(elements.AU3FGEN_PT_EXPL, 'Diffusion', '1')
elements.property(elements.AU3FGEN_PT_EXPL, 'Falldown', '0')
elements.property(elements.AU3FGEN_PT_EXPL, 'LowPressure', -20)
elements.property(elements.AU3FGEN_PT_EXPL, 'LowPressureTransition', tpt.element("fsep"))
EXPLUpdate = function(i, x, y, s, n)
sim.partProperty(i, "temp", math.max(sim.partProperty(i, "temp"), sim.partProperty(i, "tmp")))
sim.partProperty(i, "tmp", math.floor(sim.partProperty(i, "temp")))
end
local g = function(i, r, g, b)
local cola, colr, colg, colb, firea, firer, fireg, fireb
cola = 255 -- Alpha
colr = 255 -- Red
colg = 102 -- Green
colb = 0 -- Blue
firea = 255 -- Alpha Glow
firer = 255 -- Red Glow
fireg = 102 -- Green Glow
fireb = 0 -- Blue Glow
--See Pixel Mode Values Table for more info
return 0, 0xF76D00, cola, colr, colg, colb, firea, firer, fireg, fireb
end
tpt.graphics_func(g, tpt.element('EXPL'))
it is messy and i didnt make half of it, it is an edited script i figured out, as i cant code very well at all ._.
Ok, the heating of it is slower then it would normaly be,
to change the speed of heat transfer
change the numbers in these, (make them the same) in the update function
just use molten plutonium for this