Reworked Mesmerize to work without SKSE
This commit is contained in:
parent
23831ed3da
commit
589285c5da
BIN
Mezmerize update.esp
Normal file
BIN
Mezmerize update.esp
Normal file
Binary file not shown.
Binary file not shown.
@ -19,14 +19,14 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
|
||||
Else
|
||||
|
||||
PlayerREF.AddPerk(_00E_FS_MesmerizePerk)
|
||||
|
||||
if SKSE.GetVersion()
|
||||
float fBuff = ((PlayerREF.GetActorValue("Illusion")/6 as Int) + Self.GetMagnitude())/100
|
||||
|
||||
_00E_FS_MesmerizePerk.SetNthEntryValue(0, 0, (1.0-fBuff))
|
||||
_00E_FS_MesmerizePerk.SetNthEntryValue(1, 0, (1.0+fBuff))
|
||||
endIf
|
||||
fMagnitude = GetMagnitude()
|
||||
endif
|
||||
|
||||
float fBuff = ((PlayerREF.GetActorValue("Illusion") / 6 as Int) + fMagnitude) / 100
|
||||
PlayerREF.SetActorValue(sActorValue, fBuff)
|
||||
|
||||
PlayerREF.AddPerk(_00E_FS_MesmerizePerk)
|
||||
|
||||
EndIf
|
||||
|
||||
@ -35,6 +35,7 @@ EndEvent
|
||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
|
||||
PlayerREF.RemovePerk(_00E_FS_MesmerizePerk)
|
||||
PlayerREF.SetActorValue(sActorValue, 0.0)
|
||||
|
||||
EndEvent
|
||||
|
||||
@ -42,8 +43,11 @@ EndEvent
|
||||
; PROPERTIES
|
||||
;=====================================================================================
|
||||
|
||||
Float Property fMagnitude = 7.0 Auto
|
||||
String Property sActorValue = "Variable07" Auto
|
||||
|
||||
Actor Property PlayerREF Auto
|
||||
|
||||
Perk Property _00E_FS_MesmerizePerk Auto
|
||||
|
||||
Message Property _00E_FS_MesmerizeDetected Auto
|
||||
Message Property _00E_FS_MesmerizeDetected Auto
|
||||
|
Loading…
Reference in New Issue
Block a user