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
|
Else
|
||||||
|
|
||||||
PlayerREF.AddPerk(_00E_FS_MesmerizePerk)
|
|
||||||
|
|
||||||
if SKSE.GetVersion()
|
if SKSE.GetVersion()
|
||||||
float fBuff = ((PlayerREF.GetActorValue("Illusion")/6 as Int) + Self.GetMagnitude())/100
|
fMagnitude = GetMagnitude()
|
||||||
|
endif
|
||||||
_00E_FS_MesmerizePerk.SetNthEntryValue(0, 0, (1.0-fBuff))
|
|
||||||
_00E_FS_MesmerizePerk.SetNthEntryValue(1, 0, (1.0+fBuff))
|
float fBuff = ((PlayerREF.GetActorValue("Illusion") / 6 as Int) + fMagnitude) / 100
|
||||||
endIf
|
PlayerREF.SetActorValue(sActorValue, fBuff)
|
||||||
|
|
||||||
|
PlayerREF.AddPerk(_00E_FS_MesmerizePerk)
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ EndEvent
|
|||||||
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||||
|
|
||||||
PlayerREF.RemovePerk(_00E_FS_MesmerizePerk)
|
PlayerREF.RemovePerk(_00E_FS_MesmerizePerk)
|
||||||
|
PlayerREF.SetActorValue(sActorValue, 0.0)
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
@ -42,8 +43,11 @@ EndEvent
|
|||||||
; PROPERTIES
|
; PROPERTIES
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
|
||||||
|
Float Property fMagnitude = 7.0 Auto
|
||||||
|
String Property sActorValue = "Variable07" Auto
|
||||||
|
|
||||||
Actor Property PlayerREF Auto
|
Actor Property PlayerREF Auto
|
||||||
|
|
||||||
Perk Property _00E_FS_MesmerizePerk 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