OK,
so i have a script called myscript.js
it has a function called setvars().
in the runtime.js file i set some variables (global i think) like so
var typeProto = pluginProto.Type.prototype;
//our custom vars
var name = "";
var info = "";
now i import the myscript.js file using %.getscript jquery function.
when i call the new function setvars() i set the vars in it
like so
name="monica";
info="nice";
but these variable are not set in construct2 actually it causes some form of background error. So the question is how to get and set runtime global variables in external imported scripts?