4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.6 KiB

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
if SKSE.GetVersion()
fMagnitude = GetMagnitude()
endif
Float newCarryWeight = fMagnitude + PlayerREF.GetActorValue("Alteration")
_00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight)
_00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True)
Utility.Wait(0.1)
if SKSE.GetVersion()
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
endif
_00E_FS_SpectralChestActorREF.OpenInventory()
DRScTreasureOpen.Play(PlayerREF)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
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