2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQ07_DoorRepairScript extends ObjectReference
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
2024-01-09 22:00:18 +00:00
|
|
|
if (FS_NQ07.GetCurrentStageID() >= 115 && akActionRef == PlayerREF && PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor) >= 1)
|
|
|
|
_00E_FadeToBlackControl FadeToBlackControl = _00E_PlayerFunctions.GetFadeToBlackControl()
|
2021-10-05 22:15:58 +00:00
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_MiscDoor, PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor))
|
2024-01-09 22:00:18 +00:00
|
|
|
FadeToBlackControl.FadeToBlack()
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_FS_NQ07_AuroraDoorREF.Enable()
|
2024-01-09 22:00:18 +00:00
|
|
|
FadeToBlackControl.FadeToBlackBack()
|
2021-10-05 22:15:58 +00:00
|
|
|
FS_NQ07.SetObjectiveCompleted(35)
|
|
|
|
_00E_FS_NQ07_DoorRepaired.SetValue(1)
|
|
|
|
Disable()
|
|
|
|
else
|
|
|
|
_00E_FS_NQ07_RepairDoorMSG.Show()
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnUnload()
|
2024-01-09 22:00:18 +00:00
|
|
|
if FS_NQ07.GetCurrentStageID() >= 130
|
2021-10-05 22:15:58 +00:00
|
|
|
Disable()
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Message Property _00E_FS_NQ07_RepairDoorMSG Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
MiscObject Property _00E_FS_NQ07_MiscDoor Auto
|
|
|
|
ObjectReference Property _00E_FS_NQ07_AuroraDoorREF Auto
|
|
|
|
Quest Property FS_NQ07 Auto
|
2024-01-09 22:00:18 +00:00
|
|
|
GlobalVariable Property _00E_FS_NQ07_DoorRepaired Auto
|