View Single Post
  #12  
Old 02-18-2002, 02:37 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Quote:
Originally posted by Stefan
Ok here the correct version:

NPC Code:

tempvar = this.varfrom;
with (getnpc(name)) {
this.varto = tempvar;
}



The this. variable always belongs to
the current active npc, which is the npc
with the name 'name' when you do the
second assignment.
Currently there is no way to access the
this. vars of the executing npc.
Why not implement something like "that.var" when using with(getnpc) {}
So, it controls the "this." var of the other npc. That would be usefull.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"