Problem with LVARS

Discussion in 'Fallout General Modding' started by Mario_Dweller, Jul 5, 2006.

  1. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    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 :(
     
  2. Sirren67

    Sirren67 Look, Ma! Two Heads!

    380
    Dec 7, 2004
    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.
     
  3. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    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:
     
  4. Sirren67

    Sirren67 Look, Ma! Two Heads!

    380
    Dec 7, 2004
    Don't worry, we all make mistakes ;)