Jump to content

I need help with delaying a quest stage by one day.


MyNameIsnt

Recommended Posts

So far I've gotten my quest to work as intended save for one part. Following dialog with an NPC, the quest updates to stage 40 and is supposed to fire the following fragment:

 

((BeggarQuest as Quest) as QF_AAABeggars_04000D62).gotoState("waitForUpdate")
((BeggarQuest as Quest) as QF_AAABeggars_04000D62).RegisterForSingleUpdateGameTime(24)
SetStage(50)
SetObjectiveCompleted(40)
SetObjectiveDisplayed(50)

 

The issue is, it never actually triggers and the quest just immediately jumps to Stage 50 instead of requiring a 24 hour wait.

 

I'm thinking maybe I forgot to actually declare a variable or maybe my syntax is incorrect. The full code is here:

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 13
Scriptname QF_AAABeggars_04000D62 Extends Quest Hidden

;BEGIN ALIAS PROPERTY QuestPlayer
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_QuestPlayer Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY QuestBreezehomeBed
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_QuestBreezehomeBed Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY QuestBeggar
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_QuestBeggar Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN CODE
((BeggarQuest as Quest) as QF_AAABeggars_04000D62).gotoState("waitForUpdate")
((BeggarQuest as Quest) as QF_AAABeggars_04000D62).RegisterForSingleUpdateGameTime(24)
SetStage(50)
SetObjectiveCompleted(40)
SetObjectiveDisplayed(50)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Quest Property BeggarQuest  Auto  

 

EDIT: I figured out my issue - I never actually created a script for the fragment to attach to, so I was missing OnUpdate()

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use