Change transition with ctype

  • Ligan
    15th Jan 2017 Member 0 Permalink

    Is it possible to code an element that other elements melt/freeze into, like LAVA or ICE ?

     

    More precisely, I want to know if it's possible for elements to transition into it and automatically set their ctype.

  • DanielGalrito
    15th Jan 2017 Member 0 Permalink

    I'm not sure of what you are asking, but i think its possible

  • Ligan
    15th Jan 2017 Member 0 Permalink

    Basically, an element when set in as a element to transition into, it will have the ctype of the element it changed from. Similar to how when things melt into lava, the lava has the ctype of what melted so it can change back.

  • QuanTech
    15th Jan 2017 Member 0 Permalink

    Doesn't HighTemperatureTransition automatically do that? I'm not sure...

    Edited once by QuanTech. Last: 15th Jan 2017
  • Ligan
    15th Jan 2017 Member 0 Permalink

    It does for lava and ice, but not other elements.

  • LBPHacker
    15th Jan 2017 Developer 0 Permalink

    If you mean to code something that gets turned into from other elemenets automatically, well, that's going to be a royal pain. Since elements really only influence particles of their type, this would require more than just coding an element. LAVA and ICE aren't "being turned into" by their own code either. It's actually class Simulation that does the dirty work. Due to TPT's monolithic nature, said work is indeed dirty.

  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    Ice is special in the way that for every element that it freezes into, a different element is created. The only one shown in the menu is ice that melts to water. The ctype is only changed to indicate to users what melts into what. Same goes for lava.

  • jombo23
    12th Feb 2017 Member 0 Permalink

    So you just want an element that you set a transition temp and element to transition to? that should be wicked easy in c, not sure about lua

    Edited once by jombo23. Last: 12th Feb 2017