Add bindings for global variables in lua
Currently, there is no way for Lua to modify or check global variables.
It would be very useful, I'd say even a blocker for 0.49 to support this.
It would be trivial to have a function like setGlobalVariable(variableName,value)
but it should probably be similar to the existing MWScript.variables
, perhaps world.mwscript.globalVariables
?
Edited by jvoisin