If you want to use more than one script library in you plugin - as I do in the PowerBox PlugIn - it is handy to use one script library as a "Master Library"
In the "Master Library" all constants are defined to make sure all routines are really using the same constant value - otherwise I wish you happy debugging ;-)
In addition, this "Master Library" is loading all other script libraries. Therefore there is only one place to edit to ensure all routines have access to all script libraries.
Another positive side effect is a clean code in any routine as it will only call / load the "Master Library". Below code is all it takes to make all constants and all routines available.
-- ==============================================================
-- load modules
-- ==============================================================
nScriptDocID = Nc_Script_DocID_Get()
strPluginLibrary = "2xlLLVCdKiBRN9RSaiehgg"
Nc_Script_Execute(nScriptDocID, strPluginLibrary)