enderalse/scripts/source/_00e_phasmalist_apparationtoplayer.psc

20 lines
856 B
Plaintext
Raw Normal View History

Scriptname _00E_Phasmalist_ApparationToPlayer extends activemagiceffect
_FS_Phasmalist_ControlQuest Property controlQuest auto
Message Property _00E_Phasmalist_Tutorial_Teleport Auto
Message Property _00E_Phasmalist_NoApparitionCurrentlySummoned Auto
GlobalVariable Property _00E_Phasmalist_TeleportTutorialShown Auto
GlobalVariable Property _00E_DisableSkillTutorials Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
if _00E_Phasmalist_TeleportTutorialShown.GetValueInt() == 0 && _00E_DisableSkillTutorials.GetValueInt() == 0
_00E_Phasmalist_TeleportTutorialShown.SetValueInt(1)
_00E_Phasmalist_Tutorial_Teleport.ShowAsHelpMessage("Jump", 5, 1, 1)
endif
If controlQuest.apparationAlias.getReference() != None
controlQuest.apparationAlias.teleportToPlayer()
Else
_00E_Phasmalist_NoApparitionCurrentlySummoned.Show()
EndIf
Endevent