TyburnKetch Posted August 12, 2022 Share Posted August 12, 2022 (edited) So I have an MCM option to change a global value I have used in dialogue. The global itself changes but the text of the value only changes after I have loaded the topic. I.E I talk to my npc and the text value is default, I back out of the dialogue, reopen dialogue and the text replacement is working as intended. It is the same as the actual value of the global newly changed via the MCM script. *Edit* This is because I am calling update instance global on a function attached to a script on the dialogue quest that fires from a dialogue end script fragment. I have used the update instance global function in my MCM script, after setting the global, but it does not seem to be doing what I would have hoped. Any suggestions on what I could do to get the text to update when the choice has been made on the MCM script? Why does the update instance global function work as intended when exiting dialogue, but not when exiting the MCM menu? Happy to supply more info if needed. Thanks. * SOLVED *My hunch that the update instance function needed to be called on the quest script was correct. Calling the function from the MCM script has updated the replacement text. Edited August 13, 2022 by TyburnKetch Link to comment Share on other sites More sharing options...
cumbrianlad Posted August 15, 2022 Share Posted August 15, 2022 I've just seen this, only to see that you've solved it. I just want to add that... 1) I'm happy it's fixed!2) I like the edit that tells anyone else how you cured it. Too many people find a fix and forget that this knowledge is equally useful to other mod authors.3) I should stop adding numbered points in posts... it makes me look like an old-fashioned school teacher. Link to comment Share on other sites More sharing options...
TyburnKetch Posted August 15, 2022 Author Share Posted August 15, 2022 Link to comment Share on other sites More sharing options...
Recommended Posts