desl_breach = 0
tpt.el.desl.description="Modified desl"
math.randomseed(os.time())
tpt.setfpscap(50)
function desl_clog(i,x,y,surround_space,nt)
local found_bmtl = false
if tpt.get_property("type",x+1,y)==tpt.el.bmtl.id then
found_bmtl = true
end
if tpt.get_property("type",x-1,y)==tpt.el.bmtl.id then
found_bmtl = true
end
if tpt.get_property("type",x,y+1)==tpt.el.bmtl.id then
found_bmtl = true
end
if tpt.get_property("type",x,y-1)==tpt.el.bmtl.id then
found_bmtl = true
end
if found_bmtl then
tpt.set_property("type","GEL",x,y)
desl_breach = 100
end
end
function text_display()
if desl_breach>=1 then
desl_breach = desl_breach - 1
tpt.drawtext(32,32,"Containment Breach")
end
end
tpt.element_func(desl_clog,tpt.el.desl.id,1)
tpt.register_step(text_display)
Save the code into a file in the application
directory then in the console type dofile
("filename.lua")