enderalse/source/scripts/_00e_mq11bbookscn.psc

37 lines
759 B
Plaintext

Scriptname _00E_MQ11bBookSCN extends ObjectReference
; This is a script placed on the three "testimonies" of the victims
; in MQ11b.
Function UpdateMQ11b()
If MQ11b.GetCurrentStageID() >= 10 && DoOnce == false
MQ11b.SetObjectiveCompleted(Objective)
If MQ11b.IsObjectiveCompleted(20) == 1 && MQ11b.IsObjectiveCompleted(30) == 1 && MQ11b.IsObjectiveCompleted(40) == 1
MQ11b.SetCurrentStageID(20)
MQ11b.SetCurrentStageID(30)
MQ11b.SetObjectiveDisplayed(60)
EndIf
DoOnce = true
EndIf
EndFunction
Event OnRead()
UpdateMQ11b()
EndEvent
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
UpdateMQ11b()
EndEvent
Quest Property MQ11b Auto
Int Property Objective Auto
Bool DoOnce = False