Element Transitions help

  • XmirX
    27th Dec 2012 Member 0 Permalink

    I'm creating elements using LUA but is it possible to set the element transition using the line "elements.____ ("__", "_") Example with the line "elements.property (elements.PT_WATR, "FallDown", "1") Help would be much appreciated.

  • Recharter
    28th Dec 2012 Member 0 Permalink

    It is possible.

  • XmirX
    28th Dec 2012 Member 0 Permalink

    Do you know how?

  • boxmein
    28th Dec 2012 Former Staff 1 Permalink
    @XmirX (View Post)
    I think tpt.el.x.eltransition is the only way. :(
    You could cheat around it like this:
    local elTemporaryValue = tpt.eltransition.dmnd.presHighValue
    local elTemporaryType = tpt.eltransition.dmnd.presHighType
    tpt.eltransition.dmnd.presHighValue = 20
    tpt.eltransition.dmnd.presHighType = tpt.element("fire")
    elements.property(elements.NEW_PT_LULZ, elements.element(elements.DEFAULT_PT_DMND))
    tpt.eltransition.dmnd.presHighValue = elTemporaryValue
    tpt.eltransition.dmnd.presHighType = elTemporaryType

  • timpfeifer
    20th Jan 2013 Member 0 Permalink

    thank you,i make 2 or 4(or more...) element transitions in 3 hours (or more... or less...) I post them later...

     

    ...7 hours later...

     

    ...here is the link for the element transitions:http://pastebin.com/1VMxGW4e

    Edited once by timpfeifer. Last: 4th Sep 2013
  • timpfeifer
    25th Jan 2013 Member 0 Permalink

    boxmein:

    @XmirX (View Post)
    I think tpt.el.x.eltransition is the only way. :(
    You could cheat around it like this:
    local elTemporaryValue = tpt.eltransition.dmnd.presHighValue
    local elTemporaryType = tpt.eltransition.dmnd.presHighType
    tpt.eltransition.dmnd.presHighValue = 20
    tpt.eltransition.dmnd.presHighType = tpt.element("fire")
    elements.property(elements.NEW_PT_LULZ, elements.element(elements.DEFAULT_PT_DMND))
    tpt.eltransition.dmnd.presHighValue = elTemporaryValue
    tpt.eltransition.dmnd.presHighType = elTemporaryType

     

     

  • jacob2
    25th Jan 2013 Member 0 Permalink
    no, you can set element transitions with the lua api.

    elements.property(1,"HighTemperature",400)
    elements.property(1,"HighTemperatureTransision",28)

    There is also "LowPressure", "LowPressureTransition" and all similar things