Multiple script files?

Posted by Tesagk on Mon 24 Oct 2016 02:01 PM — 3 posts, 14,995 views.

#0
Is there a way to include multiple script files without rolling them into a plugin? I ask because when I go to the script section and select browse, any new script files REPLACE the previous script file rather than adding it to a list.
Australia Forum Administrator #1
A script file can "dofile" another file (in Lua) in order to include extra code.

eg.


dofile "foo.lua"


You might need to put the directory there, eg.


dofile (GetInfo (67) .. "foo.lua")  -- world file directory
#2
I suppose that will work, thanks. :)