2021-10-05 22:15:58 +00:00
|
|
|
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
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-02-12 18:13:45 +00:00
|
|
|
Float newCarryWeight = fMagnitude + PlayerREF.GetActorValue("Alteration")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2023-12-08 02:45:53 +00:00
|
|
|
_00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
_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
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_FS_SpectralChestActorREF.OpenInventory()
|
|
|
|
DRScTreasureOpen.Play(PlayerREF)
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
2024-02-12 18:13:45 +00:00
|
|
|
float Property fMagnitude = 30.0 Auto
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|