I need to make it, essentially, so that my quest stages automatically advance to their next stage after three in-game days (these stages trigger ForceGreet dialogue from my follower, which may or may not be relevant).
The scripting to do this would probably be something like...
GlobalVariable Property GameDaysPassed AutoQuest Property MyQuest AutoInt Property Day AutoDay = GameDaysPassed.GetValueInt() + 3Function ThreeDayTimer if (Day < GameDaysPassed.GetValueInt()) && MyQuest.GetStage(25) then MyQuest.SetStage(30) endifEndFunction
...which probably isn't perfect, but it should do until I get the mod (mostly) running. Here's my question: where do I put this script? I realize it'll be an 'extendsquest" script, but I know I still have to attach it to my quest somehow (Is it the 'Scripts' tab in my quest window? It's already got a script with an odd name in it). And after this script is in place, where do I actually activate my ThreeDayTimer function? Do I put it in the same dialogue script fragment that initially advanced my stages, like:
MyQuest.SetStage(25)Function ThreeDayTimer
Once my main quest script is attached to my quest, will my quest's dialogue script fragments be able to pull the function like that?
EDIT: I really, really don't want to break what I have working already.