I made an new element called Aurelium but btw I accidentally made it in C++. I want to convert it into Lua so I can put it in the SCRIPTS folder.
Also I were going to do LBOY (liquid boyl) made by mixing AURL with WATR or cooling down BOYL, and an way to catalyse LBOY into AURL and DSTW, but I think that will need immense amounts of script.
So please someone remake AURL in Lua, preferably with the reactions and elements included, after all I won't compile into an exe!
*Accidently makes element in C++, can't tell diffrence.
ok here it is (change what you need to) (No idea if it would work I'm a noob at lua)
local AURL = elements.allocate('CJB', 'AURL')
elements.element(elements.CJB_PT_AURL, elements.element(elements.DEFAULT_PT_[NAME OF ELEMENT TO CHANGE]))
elements.property(elements.CJB_PT_AURL, 'Name', 'AURL')
elements.property(elements.CJB_PT_AURL, 'Description', 'Warm, heavy particles. Generates pressure when heated. Flammable and radioactive. Fissile under pressure like PLUT.')
elements.property(elements.CJB_PT_AURL, 'Color', '0xC9B316')
elements.property(elements.CJB_PT_AURL, 'MenuSection', '[USE MENU IDS IN STIMULATIONDATA.CPP] (This is a number, ex 11)')
elements.property(elements.CJB_PT_AURL, 'Gravity', '0.4')
elements.property(elements.CJB_PT_AURL, 'Flammable', '1')
elements.property(elements.CJB_PT_AURL, 'Explosive', '0')
elements.property(elements.CJB_PT_AURL, 'Loss', '0.95')
elements.property(elements.CJB_PT_AURL, 'AirLoss', '0.99')
elements.property(elements.CJB_PT_AURL, 'AirDrag', '0.01')
elements.property(elements.CJB_PT_AURL, 'Advection', '0.4')
elements.property(elements.CJB_PT_AURL, 'Weight', '65')
elements.property(elements.CJB_PT_AURL, 'Diffusion', '0')
elements.property(elements.CJB_PT_AURL, 'Temperature', '330.6')
elements.property(elements.CJB_PT_AURL, 'HotAir', '0')
local function AURL(index, partx, party, surround_space, nt)
if nt > 0 then
for fx = -1, 1, 1 do
for fy = -1, 1, 1 do
if (tpt.get_property('temp', partx + fx, party +fy) > 293.15 then
sim.partProperty(index,"pv",tpt.get_property('pv', partx, party)+0.1) Also are you sure you mean pv and not vx or vy or something?
end
end
end
end
What is pv, vx, vy? All I known is I drawn the aurl.cpp element based in a URAN frame, I don't know what is vx or vy...