SM is correct, FALSE is 0 in nwscript. Makes for a lot of convenient shortcuts and simplifications. You never have to do an if(GetSomething == TRUE), for example - one of the most common unnecessary chunks of code I see. You can simply say if(GetSomething) - so long as the GetSomething function is set up to return 0 for FALSE, like most of bioware's functions. Likewise, if(!GetSomething), instead of if (GetSomething == FALSE). I could list a lot more, but I think that shows what I'm talking about.
Oh, it's worth mentioning that setting an int to 0 is NOT the same as deleting it in terms of memory - it will still be read as not set, if it's an int in scripts (doing a GetLocalInt on a nonexistent int returns 0), but there will still be space reserved for it in memory (and, depending on where it is, potentially in a bic file, as well).
Funky
Modifié par FunkySwerve, 27 janvier 2013 - 07:37 .