Quote:
Originally Posted by Inverness
You can't name level-npcs like that, you need some way of finding it.
Edit: Oh my, nevermind, you can set up a global reference to the object.
PHP Code:
//The script of "rupert"
function onCreated() {
NPCRupert = this;
}
Then you could reference that object using NPCRupter.variable. Of course there are other things to consider, global vars are cleared on a restart of the environment, for clientside that would be if you restarted Graal or changed server. And for serverside, that would be when the server restarts.
Something I did on Aeon was to add a new global var Control pointing to Control-NPC.
|
right, but how would i refer to NPCRupert?