allburn = function()
for k = 1, 145 do
if k ~= 11 and k ~= 130 then
local str = 'tpt.el.' .. string.gsub(string.lower(tpt.element(k)), '-', '') .. '.flammable=9999'
local f = io.open('allburn','w')
f:write(str)
f:close()
dofile('allburn')
end
end
To use, just call the function allburn() in the console.
function burnitall (i)
for k, _ in pairs(tpt.el) do
tpt.el[k].flammable = i
end
end
Yes, but I have a bug that causes loadstring not to work...I would have done that, except it wouldn't work for me.