Multiple scripts

Posted by Martijn on Tue 22 May 2007 08:43 PM — 7 posts, 23,745 views.

#0
I was wondering if it is possible to load scripts from the command line, and if it's possible to load multiple scripts at the same time, as a sort of plugins in different languages, or that they all have to be in one big script file
#1
well, I food the plugins.. (oops) now how about command line loading?
#2
Food? Where? Oh, same place I found the plugins.
Australia Forum Administrator #3
Quote:

... now how about command line loading?



I'm not totally sure why you want to do command-line loading. Your main script file can contain as much as you want, and depending on the language, can load "include" files.

For example, in Lua, you can "require" or "dofile" to fetch extra files into the script space.

There have been posts before about doing something similar in VBscript. I'm not sure about other languages.

Probably the plugins are the simplest way of controlling large scripts - make a plugin to handle each distinct function, and each one can be in its own language.
#4
the rationale behind it is that I always make heaps of mistakes in coding. I like to be able to load a file, test it, edit it, and reload it without having to go through the gui
Australia Forum Administrator #5
If you are debugging your main script file, Shift+Ctrl+R reloads the script file in a single keystroke.
#6
<3