Jump to content
IGNORED

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


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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