enderalse/source/scripts/defaultonreadsetqueststagenotalias.psc

15 lines
322 B
Plaintext

Scriptname DefaultOnReadSetQuestStageNotAlias extends ObjectReference
int Property myStage Auto
Quest Property myQuest Auto
; Fixed by the USKP adding the GetStageDone check to prevent repeated quests
event onRead()
if (myQuest.IsStageDone(myStage) == 0)
myQuest.SetCurrentStageID(myStage)
endif
endEvent