Troll lua mod

  • bubdan
    22nd Mar 2013 Member 0 Permalink

    Jacob1 helped ALOT with this.

     

    for i = 1, 255 do tpt.el[string.lower(tpt.element(i))].name = "" .. tostring(i) end

     

    Save it as autorun.lua and start The powder toy. :D

  • boxmein
    22nd Mar 2013 Former Staff 0 Permalink
    What this does is go through each of your elements and name it to its ID. It's useful but not that much.
    for i = 1, 255 -- do it for every one of the 255 possible elements
    do
    tpt.el[string.lower(tpt.element(i))].name = "" .. tostring(i) -- modify each element's name to its ID.
    end