View Single Post
  #1  
Old 06-04-2007, 09:58 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Unexpected object links

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".
__________________
Skyld
Reply With Quote