I was thinking about perhaps adding an imports/include feature that'd let the script writer to easily add common or frequently used blocks of code. Something that would work like this:
The user adds an import/include command that follows the working of the #include directive in C/C++ :
scn test#include "CommonQuestVariables"begin gameMode let fQuestDelayTime := 0.001 let sWorking := 1end
whose parameter is the name of a text file present in a fixed directory (Data\Scripts or Data\Imports) :
float fQuestDelayTimeshort sWorkingfloat fEndianess
When compiling, the line gets replaced by the contents of the parameter:
scn testfloat fQuestDelayTimeshort sWorkingfloat fEndianessbegin gameMode let fQuestDelayTime := 0.001 let sWorking := 1end
Would such a feature be useful ?