Quote:
|
Originally Posted by Projectshifter
I'm going to have to side with Stefan now in the assumption that it is something else with your script. I got on UN and tried it and it works fine. if (created) in the new NPC is called after the 1st NPC (the one that created the new one) finishes it's loop or so. It set the strings and worked fine with if (created). You could do something like this if it's perhaps not adding them
NPC Code:
oldnpcscount = npcscount;
while (npcscount == oldnpcscount)
create();
with(npcs[npcscount-1])
blah;
function create()
putnpc2 x,y,{blah;}
This way it would ensure it really adds the NPC before continuing, and if it doesn't add it, it will try to add it again. 
|
Not to burst your bubble, but the placement of your while is not very good.