2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQR03_PageCounterSC extends ObjectReference
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnCellAttach()
|
|
|
|
If Self.Is3DLoaded()
|
|
|
|
Self.SetMotionType(4)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnRead()
|
|
|
|
|
|
|
|
if !Done && !(FS_NQR03.IsObjectiveCompleted(35))
|
|
|
|
FS_NQR03_NessahPageCounter.SetValue(FS_NQR03_NessahPageCounter.GetValue() + 1)
|
|
|
|
FS_NQR03.UpdateCurrentInstanceGlobal(FS_NQR03_NessahPageCounter)
|
|
|
|
int CurrentCount = FS_NQR03_NessahPageCounter.GetValueInt()
|
|
|
|
|
|
|
|
if CurrentCount >= 3
|
|
|
|
FS_NQR03.SetObjectiveCompleted(35)
|
2024-01-05 20:56:38 +00:00
|
|
|
_00E_EPHandler.GiveEP(FS_NQR03.iPagesRewardEXP)
|
2021-10-05 22:15:58 +00:00
|
|
|
ElseIf CurrentCount < 3
|
|
|
|
FS_NQR03.SetObjectiveCompleted(35,0)
|
|
|
|
FS_NQR03.SetObjectiveDisplayed(35, True, True)
|
|
|
|
Done = 1
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
ElseIf Done
|
|
|
|
Return
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
bool Done
|
|
|
|
|
|
|
|
_00E_FS_NQR03_Functions Property FS_NQR03 Auto
|
|
|
|
|
|
|
|
GlobalVariable Property FS_NQR03_NessahPageCounter Auto
|