32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
Scriptname _00E_FS_NQ07_DoorRepairScript extends ObjectReference
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
if (FS_NQ07.GetCurrentStageID() >= 115 && akActionRef == PlayerREF && PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor) >= 1)
|
|
_00E_FadeToBlackControl FadeToBlackControl = _00E_PlayerFunctions.GetFadeToBlackControl()
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_MiscDoor, PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor))
|
|
FadeToBlackControl.FadeToBlack()
|
|
_00E_FS_NQ07_AuroraDoorREF.Enable()
|
|
FadeToBlackControl.FadeToBlackBack()
|
|
FS_NQ07.SetObjectiveCompleted(35)
|
|
_00E_FS_NQ07_DoorRepaired.SetValue(1)
|
|
Disable()
|
|
else
|
|
_00E_FS_NQ07_RepairDoorMSG.Show()
|
|
endif
|
|
|
|
|
|
EndEvent
|
|
|
|
Event OnUnload()
|
|
if FS_NQ07.GetCurrentStageID() >= 130
|
|
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
|
|
GlobalVariable Property _00E_FS_NQ07_DoorRepaired Auto
|