enderalse/source/scripts/_00e_fs_affinity_ghostblade_onattack.psc

25 lines
950 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_Affinity_Ghostblade_OnAttack extends activemagiceffect
2021-10-05 22:59:59 +00:00
_FS_Phasmalist_ControlQuest Property PhasmalistControlQuest Auto
Weapon Property _00E_FS_Affinity_Ghostblade_EtherealDagger Auto
Spell Property _00E_FakeArrowSP Auto
Spell Property _00E_FS_Ghostblade_FakeAttackSpellSP Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
2021-10-05 22:59:59 +00:00
Actor akApparition = PhasmalistControlQuest.GetApparitionFailsafeRef()
If akApparition
Int iEquippedItemType = akApparition.GetEquippedItemType(1)
If iEquippedItemType <= 6
akApparition.MoveTo(akTarget)
Debug.SendAnimationEvent(akApparition, "attackPowerStartInPlace")
Utility.Wait(1)
akApparition.RemoveItem(_00E_FS_Affinity_Ghostblade_EtherealDagger, 1)
ElseIf iEquippedItemType == 7
_00E_FakeArrowSP.Cast(akApparition, akTarget)
Else
2021-10-05 22:59:59 +00:00
_00E_FS_Ghostblade_FakeAttackSpellSP.Cast(akApparition, akTarget)
EndIf
2023-12-08 02:45:53 +00:00
akTarget.DamageActorValue("Health", 80)
2021-10-05 22:59:59 +00:00
EndIf
EndEvent