Update Variable in Quest Entry
Posted: Tue May 07, 2019 3:28 pm
Hi Tony,
Am working on a simple quest that requires you defeat x enemies. Would like to avoid destroying the gameobjects (hence can't use increment on destroy script) so have incremented the relevant variable manually:
Have confirmed the variable is increasing, but the quest entry UI text is not reflecting the changes. Do I need to call a method to update this?
Am working on a simple quest that requires you defeat x enemies. Would like to avoid destroying the gameobjects (hence can't use increment on destroy script) so have incremented the relevant variable manually:
Code: Select all
int numberIncapacitated = DialogueLua.GetVariable("DragInhabitantsIncapacitated").asInt;
numberIncapacitated++;
DialogueLua.SetVariable("DragInhabitantsIncapacitated", numberIncapacitated);