
06-04-2007, 06:49 PM
|
|
That one guy...
|
 |
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
|
|
Quote:
Originally Posted by xAndrewx
HTML Code:
public function setValue(oldVal, newVal)
(@ oldVal) = newVal;
Bad names, here try this
HTML Code:
public function setValue(stringName, newValue)
{
(@ temp.stringName) = temp.newValue;
}
Also, all you're doing with 'this.on' is re-placing it into your core NPC... 
You'd use a function like this on an item database, changing local item flags. [updating etc]
|
Quote:
Originally Posted by zokemon
SECOND EDIT:
On second thought, that won't work either as "this.on" will be using the first NPC as "this" (in essence it would be the same as doing "core.setValue("core.on", (this.on = !this.on));")
|
Didn't realize someone would reply so fast! |
__________________
Do it with a DON!
|
|
|
|