diff --git a/Perk prevent looting in FSNQ03.esp b/Perk prevent looting in FSNQ03.esp new file mode 100644 index 00000000..50da9555 Binary files /dev/null and b/Perk prevent looting in FSNQ03.esp differ diff --git a/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.pex b/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.pex new file mode 100644 index 00000000..e347b67d Binary files /dev/null and b/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.pex differ diff --git a/scripts/_00e_fs_nq03_functions.pex b/scripts/_00e_fs_nq03_functions.pex index 653fe982..89824410 100644 Binary files a/scripts/_00e_fs_nq03_functions.pex and b/scripts/_00e_fs_nq03_functions.pex differ diff --git a/scripts/_00e_fs_nq03_nolootscr.pex b/scripts/_00e_fs_nq03_nolootscr.pex index 7e0b94bd..ef5b6e58 100644 Binary files a/scripts/_00e_fs_nq03_nolootscr.pex and b/scripts/_00e_fs_nq03_nolootscr.pex differ diff --git a/source/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.psc b/source/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.psc new file mode 100644 index 00000000..be5c007e --- /dev/null +++ b/source/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.psc @@ -0,0 +1,18 @@ +;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment +;NEXT FRAGMENT INDEX 1 +Scriptname PRKF__00E_FS_NQ03_PreventLoo_0300146D Extends Perk Hidden + +;BEGIN FRAGMENT Fragment_0 +Function Fragment_0(ObjectReference akTargetRef, Actor akActor) +;BEGIN CODE +_00E_MQ07a_sNotLootable.Show() +_00E_A2_Ghostwalk_TeleportDoneSound.Play(akActor) +;END CODE +EndFunction +;END FRAGMENT + +;END FRAGMENT CODE - Do not edit anything between this and the begin comment + +Message Property _00E_MQ07a_sNotLootable Auto + +Sound Property _00E_A2_Ghostwalk_TeleportDoneSound Auto diff --git a/source/scripts/_00e_fs_nq03_functions.psc b/source/scripts/_00e_fs_nq03_functions.psc index 1f9e723a..447abdeb 100644 --- a/source/scripts/_00e_fs_nq03_functions.psc +++ b/source/scripts/_00e_fs_nq03_functions.psc @@ -82,6 +82,7 @@ Function StartMemory1() Game.SetHUDCartMode(True) _00E_FS_NQ03_WordOfTheDeadFLoatIMOD.Apply() _00E_FS_NQ03_SpiritActorREF.SplineTranslateToRef(FS_NQ03_WordOfTheDeadSummonMarkerREF, 35.0, 35.0, 2000.0) + PlayerREF.AddPerk(_00E_FS_NQ03_PreventLooting) EndFunction @@ -415,6 +416,7 @@ Function TeleportBack() _00E_MQ07a_VisionStartM.Play(PlayerREF) FS_NQ03_SC22_Epilog.ForceStart() Game.ShowFirstPersonGeometry(true) + PlayerREF.RemovePerk(_00E_FS_NQ03_PreventLooting) EndFunction @@ -575,4 +577,6 @@ Sound Property _00E_MQ07a_VisionStartM Auto Sound Property MAGVampireSunlight Auto Sound Property UIHealthHeartbeatALP Auto Sound Property NPCKillSlashMarker Auto -Sound Property _00E_MAGEldritchFireM Auto \ No newline at end of file +Sound Property _00E_MAGEldritchFireM Auto + +Perk Property _00E_FS_NQ03_PreventLooting Auto diff --git a/source/scripts/_00e_fs_nq03_nolootscr.psc b/source/scripts/_00e_fs_nq03_nolootscr.psc index e56b897a..dc6ec008 100644 --- a/source/scripts/_00e_fs_nq03_nolootscr.psc +++ b/source/scripts/_00e_fs_nq03_nolootscr.psc @@ -1,20 +1,5 @@ Scriptname _00E_FS_NQ03_NoLootScr extends ObjectReference -Event OnInit() - - Self.BlockActivation(True) - -EndEvent - -Event OnActivate(ObjectReference akActionRef) - - If akActionRef == PlayerREF - _00E_MQ07a_sNotLootable.Show() - _00E_A2_Ghostwalk_TeleportDoneSound.Play(PlayerREF) - EndIf - -EndEvent - Message Property _00E_MQ07a_sNotLootable Auto Actor Property PlayerREF Auto