View Single Post
  #31  
Old 01-25-2005, 07:37 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
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.
Reply With Quote