why do my LUA elemnets disapear?

  • zBuilder
    20th Oct 2013 Member 0 Permalink

    why do my elements disapear instead of transforming when they get to the specified temperature?

    [code]

    elements.property(elements.WIKI_PT_WTCN, "HighTemperature", 500.00)
    elements.property(elements.WIKI_PT_WTCN, "HighTemperatureTransition", "LAVA")

    [/code]

  • Simon
    20th Oct 2013 Administrator 3 Permalink
    The value of HighTemperatureTransition is not a string, as you've used, but a numerical ID of the LAVA type, try using elements.DEFAULT_PT_LAVA instead.
  • zBuilder
    20th Oct 2013 Member 0 Permalink

    thanks for the help!

    Edited once by zBuilder. Last: 20th Oct 2013
  • xetalim
    20th Oct 2013 Member 0 Permalink
    This post has been removed by Simon: Nobody likes a pedant
  • zBuilder
    20th Oct 2013 Member 0 Permalink

    @xetalim (View Post)

     http://www.lua.org/

    it's the scripting language used in TPT to modify properties at run time.

  • mniip
    20th Oct 2013 Developer 0 Permalink
    This post has been removed by Simon: Nobody likes a pedant
  • zBuilder
    20th Oct 2013 Member 0 Permalink

    @mniip (View Post)

     the same thing *facepalm*
    I used to use it with a different game and it was usually written like that. it's not that the letters are different.

  • mniip
    20th Oct 2013 Developer 0 Permalink
    This post has been removed by Simon: Nobody likes a pedant
  • xetalim
    20th Oct 2013 Member 0 Permalink
    This post has been removed by Simon: Nobody likes a pedant
  • FeynmanLogomaker
    21st Oct 2013 Member 0 Permalink

    Knowing that doesn't make you an expert (sure, he is an expert, but still...)

     

Locked by jacob1: necro