What is Lua?

  • Squirtle
    2nd May 2014 Member 0 Permalink
    What is lua? I am realativly new to the whole tpt bit, and i would like to learn how to make mods, simple ones at first but getting bigger and better as i progress. Anyone know WHERE to get lua?
  • boxmein
    2nd May 2014 Former Staff 0 Permalink
  • NF
    2nd May 2014 Member 0 Permalink
    This post has been removed: confusing post, bad grammar, just use the links in boxmein's post for info on lua
    Edited 4 times by NUCLEAR_FOX. Last: 2nd May 2014
  • jacob1
    2nd May 2014 Developer 2 Permalink
    @Squirtle (View Post)
    lua is already inside of TPT. Whenever you go into the console (press '~'), you can type in any lua commands there. An important one is dofile, if you save a lua script to your computer as 'element.txt', you can type "dofile('element.txt')" into the console to run it.

    https://powdertoy.co.uk/Wiki/W/Lua.html is a link to some info on lua from the wiki, I also suggest you look around at existing lua elements because there isn't exactly a tutorial or model for how to make an element. Also most lua elements as pretty basic, but some use more advanced methods you might want to make a really big mod.
    Edited once by jacob1. Last: 2nd May 2014
  • Squirtle
    2nd May 2014 Member 0 Permalink
    Thank you jacob1, however, i dont know how to use or make the scripts, would you be able to give me any advise on it?
  • boxmein
    2nd May 2014 Former Staff 0 Permalink
    @Squirtle (View Post)
    Click on the second link on my first post (https://powdertoy.co.uk/Wiki/W/Lua.html), and read carefully from the top :)
    Edited once by boxmein. Last: 2nd May 2014
  • Squirtle
    3rd May 2014 Member 0 Permalink
    Thanks @boxmein it helped