How to create Elements in Response to burning

  • star400040
    14th Dec 2011 Member 0 Permalink
    How would I make something create parts or an element when a different element is burned? I can't think of any element right now that does this
  • me4502
    14th Dec 2011 Member 0 Permalink
    @star400040 (View Post)

    in powder.c

    part_change_type

    check if its turning into fire
  • star400040
    14th Dec 2011 Member 0 Permalink
    well I want it to turn into fire first and then turn into something else, I still want it to burn. If it matters it is a gas element, therefore it burns similar to O2 which is fine, but is there anyway to have it leave another element behind after it burns?
  • jenn4
    14th Dec 2011 Member 0 Permalink
    You have to do this: when that element burns, fire gets some tmp and decreasing life, when that tmp having fires life go to zero, it turns into that element you want. I cant tell how to do that, but fireworks might work somehow like this.
  • Videogamer555
    14th Dec 2011 Member 0 Permalink
    I know I can use Lua script to set an object's melting point to below the temperature of fire, set the material to be flammable, and set the material it turns into when "melted" to be something other than lava.
    like this:

    Put this in the autorun.lua, and try to set fire to some diamond and see what happens.

    tpt.el.dmnd.flammable=50
    tpt.eltransition.dmnd.tempHighValue=350
    tpt.eltransition.dmnd.tempHighType=tpt.el.plut.id
  • star400040
    14th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)

    I will check it out, 

    guys can you also check out my Mod and respond to my question on my Mods thread?
  • me4502
    14th Dec 2011 Member 0 Permalink
    @star400040 (View Post)

    mine is what you want, it would work...

    it detects if somehting is turning to fire, you dont need to override it
  • Videogamer555
    14th Dec 2011 Member 0 Permalink

    me4502:

    @star400040 (View Post)

    mine is what you want, it would work...

    it detects if somehting is turning to fire, you dont need to override it


    However yours requires compiling in VC++. Not everybody know how (including myself), and not everybody would even want to bother to try.

    My solution uses Lua script and does NOT require any compiling or learning C++. It will work perfectly on already compiled version of the latest beta copy of TPT.
  • vanquish349
    14th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    he can compile he has a mod. this is in dev assistance so he wants help with coding in c not lua
  • me4502
    14th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    It's in dev assist, he wants it for his mod... And mine is more fine tuned and closer to what he wants