Problem with LVARS

Mario_Dweller

It Wandered In From the Wastes
Hello, I have one big problem with LVARS.

so I have for example:

#define LVAR_Hostile (4)
#define LVAR_Talked_Before (5)
#define LVAR_Angry (6)

and in SCRIPTS.LST i have #local_vars = 7

BUT in this case, LVAR_Hostile doesn't work and the rest works fine.
So where is the problem ? Every time I use LVARs, I spend lots of time with playing with LVAR indexes and #local_vars = x in SCRIPTS.LST. If i change some indexes or number in SCRIPTS.LST, then it's sometimes OK. BUT THERE MUST BE SOME SYSTEM :(
 
Hi Mario_Dweller.
Wich exactly are the effects of your problems? Last time I had troubles with L_VARs the cause actually was a mistake in the variable block (missing parenthesis). Please post a sample of your code, both the variable declaration and the procedures you use your variables in.
See you.
 
Oh, I was absolutely sure script is OK, but then I checked it once more and i found the mistake :)

NOption(901, Node999, 004);
NOption(902, Node998, 004);

I swapped Node998 and Node999.

It's a shame ! :oops:
 
Back
Top