I was able to get the script to give me the item after 1 day (I set one day for testing), but it won't give me anything after that. I want it to continuously provide 300 gold every one week. Scriptname aaIncomeScript extends Quest
MiscObject Property Gold Auto ;I set the gold from the game for this
Quest Property InnQuest Auto
ObjectReference Property PlayerSafe Auto
Event OnInit() ; This event will run once, when the script is initialized
RegisterForUpdateGameTime(24)
GoToState ("polling")
EndEvent
State Running
Event OnBeginState()
Debug.Trace("Entered the running state!")
EndEvent
EndState
auto State polling
Event OnUpdateGameTime()
if (InnQuest.GetStage() == 20)
PlayerSafe.AddItem(Gold, 300, true) ; gives Safe 300 gold
Debug.Trace("Got what we needed, so stop polling!")
GotoState ("active")
endif
EndEvent
EndState