Autorun scripts.

  • Veldin
    2nd Aug 2012 Banned 1 Permalink
    This post is hidden because the user is banned
  • ThunderSt
    2nd Aug 2012 Member 0 Permalink

    @Veldin (View Post)

     

    ''Screw you if you make an autorun script.''

    Offensive, much?

     

    And.. awesome :D

     

    You don't need a lot of work to put the scripts with different names and then put in the autorun ''dofile('script.lua')'', though.

  • Veldin
    2nd Aug 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacob1
    2nd Aug 2012 Developer 0 Permalink
    @Veldin (View Post)
    Just do what ThunderSt said, in autorun.lua add dofile("xxx.lua") for every script, it's not that hard. Also, you're talking about an api, when we already have the lua api. More things can be added to that easily if you want them.

    In fact, you can write an autorun.lua script to do exactly what you just said. It will look in the Lua directory for scripts, and then use dofile to run them all, it wouldn't be too hard.
  • Dawgie
    2nd Aug 2012 Member 0 Permalink
    It would be nice to have like a searchable menu for them and be able to click which ones you want to use.
  • ThunderSt
    2nd Aug 2012 Member 0 Permalink

    @Dawgie (View Post)

     

    True, that. But it's not simple..

  • Pilihp64
    2nd Aug 2012 Developer 3 Permalink

    I'll make something that does this.  Just hold on...