Hi everyone,
I was wondering, whether it is possible to call a function declared in a library-script in Quest B in a dialogue fragment of Quest A. This is the function:
Function AddKnowledgePoint()
if !(NQ02_NewHorizons.IsObjectiveCompleted(5))
_00E_NQ02_KnowledgeGathered.SetValue(_00E_NQ02_KnowledgeGathered.GetValue() + 1)
NQ02_NewHorizons.UpdateCurrentInstanceGlobal(_00E_NQ02_KnowledgeGathered)
int CurrentCount = _00E_NQ02_KnowledgeGathered.GetValueInt()
if CurrentCount >= 50
NQ02_NewHorizons.SetObjectiveCompleted(5, 1)
ElseIf CurrentCount < 50
NQ02_NewHorizons.SetObjectiveCompleted(5,0)
NQ02_NewHorizons.SetObjectiveDisplayed(5, True, True)
EndIf
EndIf
EndFunction
I tried importing it into the Quest-Fragment script attached to Quest A, but that doesn't seem to work. Is there a way to do this?
Thanks!
All the best,
Nicolas