Global Variable not showing in Objective?

Post » Tue Jun 19, 2012 11:13 pm

So, I am having an issue with a Global Variable not updating in the Objective area.

So, the variable updates successfully and all my scripts are working, and I DID make the variable text displayable.

However, despite all of this, the Global Variable will not update in the objective section. It stays 0 and won't move up to 2 when the variable does change.

Any advice?
User avatar
Philip Lyon
 
Posts: 3297
Joined: Tue Aug 14, 2007 6:08 am

Post » Tue Jun 19, 2012 10:11 am

Yeah if you look at the Beth code, it seems these globals are not as global as the name suggests.

There's 2 Quest functions they use.
UpdateCurrentInstanceGlobal(globalProperty) - Used after modifying the global property in the script.
(I also noted that they often use the Get/SetValue methods on the Properties even though they reside in the same file)

The other is probably what you need here
ModObjectiveGlobal( lots of params ) - it's a thread safe way of updating, apparently.

Let us know if you find out any more about these 2, the wiki doesn't shed much more light other than the syntax.
User avatar
Alex Blacke
 
Posts: 3460
Joined: Sun Feb 18, 2007 10:46 pm

Post » Tue Jun 19, 2012 3:39 pm

Well they use the UpdateCurrentInstanceGlobal(globalProperty) alot in the quest scripts, but not in the actual changing of the variable scripts... It's very weird. This happens on more than one of the quests...
User avatar
Samantha Wood
 
Posts: 3286
Joined: Sun Oct 15, 2006 5:03 am

Post » Tue Jun 19, 2012 5:36 pm

Bump for help
User avatar
Flutterby
 
Posts: 3379
Joined: Mon Sep 25, 2006 11:28 am

Post » Tue Jun 19, 2012 9:55 am

Can you post your code
(I also noted that they often use the Get/SetValue methods on the Properties even though they reside in the same file)

Doh, that was last nights brainfart. Of course they do that as the Property is just a pointer to the Global.

@Dalagrath, can you post your code? Post all the scripts that refer to the global as threading can be a factor.
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am


Return to V - Skyrim