I have implemented the sgs_load(); function and call it from a GUI, where it functions without problems. However, when I call the function from a hotspot (in the main menu), I get a "Undefined token" error.
What could be wrong?
That's because your room script (where hotspot is) doesn't see the sgs_load() function which is in the global script.
To make it accessible from all room scripts put the following line into the script header:
import function sgs_load();
That fixed it! Thank you. I thought the global script was globally accessible.