enderalse/scripts/source/_00e_teleport_mark.psc

48 lines
1.4 KiB
Plaintext

Scriptname _00E_Teleport_Mark extends ActiveMagicEffect
Event OnEffectStart (Actor akTarget, Actor akCaster)
Location currentLoc = PlayerREF.GetCurrentLocation()
If !PlayerREF.IsInInterior() && (PlayerREF.GetWorldSpace() == Vyn || currentLoc == CapitalCityLocation || currentLoc == _00E_SuntempleLocation)
int iButton = _00E_TeleportPlaceRuneMessagebox.Show()
if iButton == 0
_00E_TeleportLight.MoveTo(PlayerREF)
_00E_TeleportMarkerREF.MoveTo(PlayerREF)
_00E_Teleport_sTeleportRunePlaced.Show()
_00E_TeleportFire.MoveTo(PlayerRef, 120.0 * Math.Sin(PlayerRef.GetAngleZ()), 120.0 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() + 35.0)
_00E_TeleportFire.PlaceAtMe(_00E_NPCOorbayaTeleportExplosionBlue, 1)
ElseIf iButton == 1
Return
EndIf
Else
_00E_Teleport_sNeedsToBeOutside.Show()
EndIf
EndEvent
;String Property sNeedsToBeOutside Auto
;String Property sTeleportRunePlaced Auto
Location Property CapitalCityLocation Auto
Location Property _00E_SuntempleLocation Auto
WorldSpace Property Vyn Auto
Explosion Property _00E_NPCOorbayaTeleportExplosionBlue Auto
Actor Property PlayerREF Auto
ObjectReference Property _00E_TeleportMarkerREF Auto
ObjectReference Property _00E_TeleportFire Auto
ObjectReference Property _00E_TeleportLight Auto
Message Property _00E_TeleportPlaceRuneMessagebox Auto
Message Property _00E_Teleport_sNeedsToBeOutside Auto
Message Property _00E_Teleport_sTeleportRunePlaced Auto