Oxygen-like Element

  • tmo97
    11th Aug 2014 Banned 0 Permalink
    This post is hidden because the user is banned
  • QuentinADay
    11th Aug 2014 Member 0 Permalink

    Here is something that heats everything around it when it burns... 

    local a = elements.allocate("NOBODY" , "HHHH")
    elements.element(elements.NOBODY_PT_HHHH, elements.element(elements.DEFAULT_PT_BCOL))
    elements.property(elements.NOBODY_PT_HHHH, "Name" , "LOL")
    elements.property(elements.NOBODY_PT_HHHH, "Description" , "Something")
    elements.property(elements.NOBODY_PT_HHHH, "MenuSection" , 5)
    elements.property(elements.NOBODY_PT_HHHH, "Gravity" , 0)
    elements.property(elements.NOBODY_PT_HHHH, "Falldown" , 0)
    elements.property(elements.NOBODY_PT_HHHH, "Flammable" , 10)
    elements.property(elements.NOBODY_PT_HHHH, "Explosive" , 100)
    elements.property(elements.NOBODY_PT_HHHH, "Diffusion" , 0)
    elements.property(elements.NOBODY_PT_HHHH, "Weight" , 100)
    elements.property(elements.NOBODY_PT_HHHH, "Advection" , 0.1)
    elements.property(elements.NOBODY_PT_HHHH, "AirLoss" , 0.95)
    elements.property(elements.NOBODY_PT_HHHH, "Loss" , 0.15)
    elements.property(elements.NOBODY_PT_HHHH, "Temperature" , 295.15)
    elements.property(elements.NOBODY_PT_HHHH, "HeatConduct" , 255)
    elements.property(elements.NOBODY_PT_HHHH, "MenuVisible" , 1)
    function heat(i,x,y,s,n)
    type = tpt.get_property("type", x + math.random(-5,5), y + math.random(-5,5))
    if type == tpt.el.fire.id then
    tpt.set_property("temp", math.huge, x + math.random(-10,10), y + math.random(-10,10))
    end
    end
    tpt.element_func(heat,elements.NOBODY_PT_HHHH)

  • tmo97
    11th Aug 2014 Banned 0 Permalink
    This post is hidden because the user is banned
  • QuentinADay
    11th Aug 2014 Member 0 Permalink

    If you tell me specifically what your wanting I will make it for you... 

  • tmo97
    13th Aug 2014 Banned 0 Permalink
    This post is hidden because the user is banned
    Edited once by tmo97. Last: 13th Aug 2014
  • QuentinADay
    13th Aug 2014 Member 0 Permalink

    There it flows the same way OXYG does, Has a Blue-ish color, Doesn't create fire and just disappears, and heats the flame from 422°C to 472°C (50 degrees), and Doesn't conduct its own heat, and fixed the error message problem.

     

    local a = elements.allocate("NOBODY" , "HHHH")
    elements.element(elements.NOBODY_PT_HHHH, elements.element(elements.DEFAULT_PT_OXYG))
    elements.property(elements.NOBODY_PT_HHHH, "Name" , "LOL")
    elements.property(elements.NOBODY_PT_HHHH, "Description" , "Something")
    elements.property(elements.NOBODY_PT_HHHH, "Flammable" , 0)
    elements.property(elements.NOBODY_PT_HHHH, "HeatConduct" , 0)
    function heat(i,x,y,s,n)
    type = tpt.get_property("type", x + math.random(-3,3), y + math.random(-3,3))
    if type == tpt.el.fire.id then
    tpt.set_property("temp", 745.15, x + math.random(-3,3), y + math.random(-3,3))
    tpt.parts[i].type = 0
    end
    end
    tpt.element_func(heat,elements.NOBODY_PT_HHHH)

    Edited once by QuentinADay. Last: 13th Aug 2014
  • tmo97
    13th Aug 2014 Banned 0 Permalink
    This post is hidden because the user is banned
  • QuentinADay
    13th Aug 2014 Member 0 Permalink

    Interesting... I works fine for me. I'm not sure why that would happen

  • tmo97
    16th Aug 2014 Banned 0 Permalink
    This post is hidden because the user is banned
  • QuentinADay
    17th Aug 2014 Member 0 Permalink

    I am not really sure...

     

    elements.property(elements.DEFAULT_PT_LOXY, "Flammable" , 1000)

     

    works to change what temperature LOXY burns at but when I did that with HYGN it does not work so I don't know...

    Edited once by QuentinADay. Last: 17th Aug 2014