View Single Post
  #9  
Old 12-16-2005, 08:48 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by prozac424242
I just can't wrap my mind around through where the npcscount and that count-1 can be a constant referal point but to different putnpc2 class items that are separate from the npc which is controlled by the player performing the putnpc2 action.

[moves on to something that might actually be usefull]
The reason for this is because the NPC server is not threaded. It may seem like that, but it really isn't.

HOWEVER:

With GScript2 you have a new alternative, this will probably be easier to understand:

HTML Code:
this.fruit = "strawberry";
temp.npc = this.level.putNPC2(somex, somey, "join fruits;");
temp.npc.img = this.fruit @ ".png";
OR:

HTML Code:
this.fruit = "strawberry";

with (this.level.putNPC2(somex, somey, "join fruits;"))
{
  this.img = thiso.fruit @ ".png";
}
Reply With Quote