Scriptname myDelayScript extends ReferenceAliasFunction StartResearch() ; Tell us when 2 days have passed in game RegisterForSingleUpdateGameTime(24 * 2)EndFunctionEvent OnUpdate() If GetOwningQuest().getStage() == 10 GetOwningQuest().setStage(20) EndIfEndEvent
The dialog that leads to this delay sets the quest stage to 10, I've tried toI add a papyrus fragment to the code that runs when that stage starts
SetObjectiveDisplayed(10)myDelayScript.StartResearch()
but attempts to compile that result in the follow error
: cannot call the member function StartResearch alone or on a type, must call it on a variable
I've tried placing it against the actor alias who's dialog it will impact with the same result. If someone could point out what I'm doing wrong, or point me to a quest/script in the game I could use an an example I would appreciate it.
Also, is there a way to search the existing game for function calls? I've tried "Find Text" but regardless what I search for the scripts result is always blank.
Thanks!
edit: fixed indention
