4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.3 KiB

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)
Levelsystem.GiveEP(FS_NQR03.iPagesRewardEXP)
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_QuestFunctions Property Levelsystem Auto
_00E_FS_NQR03_Functions Property FS_NQR03 Auto
GlobalVariable Property FS_NQR03_NessahPageCounter Auto