Editing a global value for dialogue line

Post » Tue Sep 17, 2013 1:47 pm

Okay, so I have a script which is editing the value of a global value (DLC1SurgeryCost [GLOB:0200697F]) upon the activation of an NPC (the face sculptor) - the reason being so that her dialogue shows the correct price to the player (and obviously it also edits the price). The problem is that in the dialogue it still displays the default value.

I've used some debug functions to check that the value is actually being edited and it definitely is, it's just not displaying the new value in dialogue. So far I've:

  1. Removed the constant flag from the variable (needed anyway)
  2. Tried to run the script OnCellAttatch instead just in case it wasn't updating in time to be shown in her dialogue

Has anyone got any thoughts or possibly ran into a similar issue before?

User avatar
Nikki Morse
 
Posts: 3494
Joined: Fri Aug 25, 2006 12:08 pm

Post » Tue Sep 17, 2013 9:35 am

Why don't you just change the global itself?

User avatar
Saul C
 
Posts: 3405
Joined: Wed Oct 17, 2007 12:41 pm

Post » Tue Sep 17, 2013 12:03 pm

You want to use the following function:

UpdateCurrentInstanceGlobal()
User avatar
Jynx Anthropic
 
Posts: 3352
Joined: Fri Sep 08, 2006 9:36 pm

Post » Tue Sep 17, 2013 7:40 am

Ah, thanks!

I'll try that and report back if it fixes it (I suspect it will)

User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am


Return to V - Skyrim