43 lines
904 B
Plaintext
43 lines
904 B
Plaintext
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
|