Block object activation with a perk in FS_NQ03
This commit is contained in:
parent
2a51d12219
commit
38bad6c50e
BIN
Perk prevent looting in FSNQ03.esp
Normal file
BIN
Perk prevent looting in FSNQ03.esp
Normal file
Binary file not shown.
BIN
scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.pex
Normal file
BIN
scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.pex
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
18
source/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.psc
Normal file
18
source/scripts/PRKF__00E_FS_NQ03_PreventLoo_0300146D.psc
Normal file
@ -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
|
@ -82,6 +82,7 @@ Function StartMemory1()
|
|||||||
Game.SetHUDCartMode(True)
|
Game.SetHUDCartMode(True)
|
||||||
_00E_FS_NQ03_WordOfTheDeadFLoatIMOD.Apply()
|
_00E_FS_NQ03_WordOfTheDeadFLoatIMOD.Apply()
|
||||||
_00E_FS_NQ03_SpiritActorREF.SplineTranslateToRef(FS_NQ03_WordOfTheDeadSummonMarkerREF, 35.0, 35.0, 2000.0)
|
_00E_FS_NQ03_SpiritActorREF.SplineTranslateToRef(FS_NQ03_WordOfTheDeadSummonMarkerREF, 35.0, 35.0, 2000.0)
|
||||||
|
PlayerREF.AddPerk(_00E_FS_NQ03_PreventLooting)
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
@ -415,6 +416,7 @@ Function TeleportBack()
|
|||||||
_00E_MQ07a_VisionStartM.Play(PlayerREF)
|
_00E_MQ07a_VisionStartM.Play(PlayerREF)
|
||||||
FS_NQ03_SC22_Epilog.ForceStart()
|
FS_NQ03_SC22_Epilog.ForceStart()
|
||||||
Game.ShowFirstPersonGeometry(true)
|
Game.ShowFirstPersonGeometry(true)
|
||||||
|
PlayerREF.RemovePerk(_00E_FS_NQ03_PreventLooting)
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
@ -575,4 +577,6 @@ Sound Property _00E_MQ07a_VisionStartM Auto
|
|||||||
Sound Property MAGVampireSunlight Auto
|
Sound Property MAGVampireSunlight Auto
|
||||||
Sound Property UIHealthHeartbeatALP Auto
|
Sound Property UIHealthHeartbeatALP Auto
|
||||||
Sound Property NPCKillSlashMarker Auto
|
Sound Property NPCKillSlashMarker Auto
|
||||||
Sound Property _00E_MAGEldritchFireM Auto
|
Sound Property _00E_MAGEldritchFireM Auto
|
||||||
|
|
||||||
|
Perk Property _00E_FS_NQ03_PreventLooting Auto
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
Scriptname _00E_FS_NQ03_NoLootScr extends ObjectReference
|
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
|
Message Property _00E_MQ07a_sNotLootable Auto
|
||||||
|
|
||||||
Actor Property PlayerREF Auto
|
Actor Property PlayerREF Auto
|
||||||
|
Loading…
Reference in New Issue
Block a user