It seems if you create a new TStaticVar with the name of an existing object, that it becomes a reference to that object from the global scope as opposed to creating a new object in the current scope of that object name. Is this supposed to happen?
NPC "DB_Skyld":
PHP Code:
function onCreated()
{
this.flag = "Something";
temp.obj = new TStaticVar("DB_Skyld");
echo(temp.obj.flag);
}
Produces "Something".