4
Fork 0

Working Shadow Dancer: if a weak enemy is killed under the Psychosis effect, it's reanimated to fight on player's side for 60 seconds

master
Eddoursul 2 years ago
parent b13efe44df
commit 7843a8b161
  1. BIN
      Shadow Dancer fix.esp
  2. BIN
      scripts/_00E_ShadowDancerReviveEffect.pex
  3. 42
      source/scripts/_00E_ShadowDancerReviveEffect.psc

Binary file not shown.

@ -0,0 +1,42 @@
Scriptname _00E_ShadowDancerReviveEffect extends ObjectReference
auto state Init
event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
GotoState("DoNothing")
if ! akNewContainer
Disable()
Delete()
return
endif
akNewContainer.RemoveItem(_00E_SE_ShadowDancerTokenItem, akNewContainer.GetItemCount(_00E_SE_ShadowDancerTokenItem), true)
Actor aTarget = akNewContainer as Actor
if ! aTarget || aTarget == PlayerRef
return
endif
Utility.wait(2.2)
_00E_SE_ShadowDancerReviveSpell.Cast(PlayerRef, aTarget)
aTarget.SetActorValue("Variable05", 77)
aTarget.SetActorValue("Aggression", 0)
aTarget.SetRelationshipRank(PlayerRef, 3)
endevent
endstate
state DoNothing
endstate
Spell Property _00E_SE_ShadowDancerReviveSpell Auto
Actor Property PlayerRef Auto
MiscObject Property _00E_SE_ShadowDancerTokenItem Auto
Loading…
Cancel
Save