enderalse/source/scripts/_00e_fs_spectralchestsc.psc

57 lines
1.6 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_SpectralChestSC extends ActiveMagicEffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(Actor akTarget, Actor akCaster)
If PlayerREF.GetParentCell() == MQ05Jail
_00E_FS_SpectralChestNotHere.Show()
ElseIf PlayerREF.IsInCombat()
_00E_FS_SpectralChestNotInCombat.Show()
Else
2024-02-12 18:13:45 +00:00
if SKSE.GetVersion()
fMagnitude = GetMagnitude()
endif
2024-02-12 18:13:45 +00:00
Float newCarryWeight = fMagnitude + PlayerREF.GetActorValue("Alteration")
2023-12-08 02:45:53 +00:00
_00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight)
_00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True)
Utility.Wait(0.1)
2024-02-12 18:13:45 +00:00
if SKSE.GetVersion()
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
endif
_00E_FS_SpectralChestActorREF.OpenInventory()
DRScTreasureOpen.Play(PlayerREF)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
2024-02-12 18:13:45 +00:00
float Property fMagnitude = 30.0 Auto
Actor Property PlayerREF Auto
Actor Property _00E_FS_SpectralChestActorREF Auto
Sound Property DRScTreasureOpen Auto
Message Property _00E_FS_SpectralChestNotHere Auto
Message Property _00E_FS_SpectralChestNotInCombat Auto
Message Property _00E_FS_SpectralChestCapacity Auto
Cell Property MQ05Jail Auto