Suggestion - custom elements without replace

  • limelier
    22nd Apr 2012 Member 0 Permalink
    You know how you can make a Lua script to replace an element with another of your own making? Well, I have a script that I got from someone that makes MTOR, a VERY cool element, but it replaces ELEC and therefore breaks all ELEC saves. You should be able to make an element without replacing another.
  • egezort
    22nd Apr 2012 Member 0 Permalink
    !create mort 100,000 (or another value)
    Or maybe somehow placing it to somewhere and then scroll clicking on it you can use it now
  • mniip
    22nd Apr 2012 Developer 0 Permalink
    I mean he means like a lua script element creation, i think it needs some complex rewritings in source
  • plead-for-destruction
    22nd Apr 2012 Member 0 Permalink
    @egezort (View Post)
    you dont get it :P
  • Simon
    22nd Apr 2012 Administrator 0 Permalink
    The Lua API can only replace elements that already exist, but there are some elements that are still in the game, but they're disabled, You can look through the source for elements marked at /*FREE*/ there's about 5 or 6 of them, you just have to set them to enabled, menu to 1 and menusection to a valid menu.
  • mniip
    22nd Apr 2012 Developer 0 Permalink
    @simon, then what about creating some extra unused elements?
  • limelier
    23rd Apr 2012 Member 0 Permalink
    @mniip (View Post)
    Yes, I've seen about 2 or more that overwrite ELEC, maybe make 2 more energy-type unused particles, copies of ELEC?
  • mniip
    23rd Apr 2012 Developer 0 Permalink
    Lol simon already started developing method of adding new elements
  • boxmein
    23rd Apr 2012 Former Staff 0 Permalink
    Practically, if TPT's compiled before running, then it's pretty much immutable. Chances are that Simon can solve this, but for now use the placeholder element.
  • The-Fall
    23rd Apr 2012 Member 0 Permalink
    No, We have an Element limit due to the fact that in each save, a particle is considered a 'byte'. Making this difficult.