Quote:
Originally posted by Andor_NPC-Admin1
Okie, the NPC server doc says this:
"the internal representation is slightly different:
each npc has a list of scripts, the own script
is parsed and added as the first script in this list;
when you do join then another script is parsed
and added to the script list;
when the script for the requested class is already
in the memory (used by another npc) then it is not
copied, it is just added to the script list;
so when several npcs are using the same class
then it is only hold one time in the memory and
the script object is put into the script lists
of the npcs;
functions can be overwritten"
Can someone translate that to english?
|
What they're basically saying is that if you use the same section of your script over and over again, (like a string parsing function I find myself using over and over), you can say 'join stringparser.txt;', and have a text file with that function in it, then, the players only have to download that function once, even though it is in lots of different npcs