How do you use lua scripting?

  • oznerf
    15th May 2012 Member 0 Permalink
    How do you use lua scripting? I have tried doing this:


    ou can run console commands stored in a file by creating a text document and writing a script. Then you must rename the file extension from .txt to .lua (so that you can use it)

    When you have done that, open the LUA console in the Powder Toy and type in

    dofile(“script.lua”) (keep it exactly as written)

    (replace script.lua with the name of your file.)
  • vanquish349
    15th May 2012 Member 0 Permalink
    @oznerf (View Post)
    what did you save in the text file?
  • oznerf
    16th May 2012 Member 0 Permalink
    Where do you download the script
  • mniip
    17th May 2012 Developer 0 Permalink
    you either write one yourself, or download one you like, look at not-help threads in lua section
  • boxmein
    17th May 2012 Former Staff 0 Permalink
    @oznerf (View Post)
    You get different scripts that do different stuff, for example Mniip's mgl.
    @mniip (View Post)
    Hey, try hosting your mgl in gist.github.com = Git for single pastes, everything works the same as a huge repo, with cloning etc, except one-file-oriented.
  • mniip
    17th May 2012 Developer 0 Permalink
    im currently rewriting my mgl, itd need more than one file, 1 file is core, works in ALL lua interpreters, another is system specific,