New type of console command

  • jjason02
    3rd Mar 2017 Member 0 Permalink

    I wrote mostly !set ~ command , but there were tpt.el ~ comands, too. Is there another kind of command?

  • QuanTech
    3rd Mar 2017 Member 0 Permalink

    @jjason02 (View Post)

     You can also run lua (which is a scripting language) from the console. 'tpt' is a table. 'tpt.el' is a table inside this table. You can also run if/elseif/else, for, while, and about anything else in lua! The table tpt.el has the properties of elements (such as Advection, Drag, etc.) in it. To view the contents of this table, type

    for k,_ in pairs(tpt.el) do print(k) end

    Edited once by QuanTech. Last: 3rd Mar 2017
  • jjason02
    4th Mar 2017 Member 0 Permalink

    Thanks for your help!