Spectral chest no SKSE update

This commit is contained in:
Eddoursul 2024-02-12 19:13:45 +01:00
parent 106de1e3dc
commit bb5e04f338
3 changed files with 12 additions and 2 deletions

BIN
Spectral chest update.esp Normal file

Binary file not shown.

Binary file not shown.

View File

@ -15,14 +15,22 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
_00E_FS_SpectralChestNotInCombat.Show() _00E_FS_SpectralChestNotInCombat.Show()
Else Else
if SKSE.GetVersion()
fMagnitude = GetMagnitude()
endif
Float newCarryWeight = Self.GetMagnitude() + PlayerREF.GetActorValue("Alteration") Float newCarryWeight = fMagnitude + PlayerREF.GetActorValue("Alteration")
_00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight) _00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight)
_00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True) _00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True)
Utility.Wait(0.1) Utility.Wait(0.1)
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
if SKSE.GetVersion()
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
endif
_00E_FS_SpectralChestActorREF.OpenInventory() _00E_FS_SpectralChestActorREF.OpenInventory()
DRScTreasureOpen.Play(PlayerREF) DRScTreasureOpen.Play(PlayerREF)
@ -34,6 +42,8 @@ EndEvent
; PROPERTIES ; PROPERTIES
;===================================================================================== ;=====================================================================================
float Property fMagnitude = 30.0 Auto
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
Actor Property _00E_FS_SpectralChestActorREF Auto Actor Property _00E_FS_SpectralChestActorREF Auto