enderalse/scripts/source/_00e_fs_nq07_doorrepairscript.psc

35 lines
987 B
Plaintext

Scriptname _00E_FS_NQ07_DoorRepairScript extends ObjectReference
Import _00E_QuestFunctions
Event OnActivate(ObjectReference akActionRef)
if (FS_NQ07.GetStage() >= 115 && akActionRef == PlayerREF && PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor) >= 1)
PlayerREF.RemoveItem(_00E_FS_NQ07_MiscDoor, PlayerREF.GetItemCount(_00E_FS_NQ07_MiscDoor))
Levelsystem.FadeToBlack()
_00E_FS_NQ07_AuroraDoorREF.Enable()
Levelsystem.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.GetStage() >= 130
Disable()
EndIf
EndEvent
Message Property _00E_FS_NQ07_RepairDoorMSG Auto
Actor Property PlayerREF Auto
_00E_QuestFunctions Property Levelsystem 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