Variables not setting issue...

Post » Sun Dec 23, 2012 2:37 am

I have a bizzare issue, and am wondering if anyone else has encountered this, or has any ideas?

In my Script I have two variables:
Faction01CrimeNonViolentPC
Faction01CrimeNonViolentSI

I run the following :
Faction01CrimeNonViolentPC = Faction01.GetCrimeGoldNonViolent()Faction01CrimeNonViolentSI = Faction01.GetCrimeGoldNonViolent()

What happens, however, is that whichever one of them is ran first, the other one will not set. So if I run PC first, it will set correctly, but SI will remain at 0; if I run SI first, it will set correctly, but PC will remain at 0.

This happens even if I drop them into seperate Functions, and have them run minutes apart -- once one has been set, the other never does.

It's a repeating issue across Clean Saves.

I've no reason to think it's "directly" my script, because each part works perfectly on its own, and there are no variables which should intereupt (the only possible variable only controls which function is ran, and obviously they are both running correctly due to their respective messages showing), so I am at a loss.

Edit : Slight wording correction -- if EITHER variable is set ABOVE zero, this happens; setting them both to 0 works perfectly.
User avatar
kiss my weasel
 
Posts: 3221
Joined: Tue Feb 20, 2007 9:08 am

Return to V - Skyrim