enderalse/scripts/source/_00e_teleport_suntempleme.psc

44 lines
1.6 KiB
Plaintext

Scriptname _00E_Teleport_SuntempleME extends activemagiceffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart (Actor akTarket, Actor akCaster)
If (_00E_TeleportGlobal.GetValueInt() == 1 && !(MQ12b.IsRunning())) || PlayerREF.GetWorldSpace() == Akropolis || MQ03.GetStage() < 30
_00E_Teleport_sTeleportNotPossible.Show()
MAGVampireSunlight.Play(PlayerREF)
PlayerREF.AddItem(_01E_TeleportrolleSonnentempel, 1)
Elseif ((_00E_TeleportGlobal.GetValueInt() == 1) && (MQ12b.GetStage() == 115) ||(MQ12b.GetStage() == 120))
Levelsystem.TeleportPlayer(_00E_TeleportMarker_Suntemple)
ElseIf (_00E_TeleportGlobal.GetValueInt() == 0)
Levelsystem.TeleportPlayer(_00E_TeleportMarker_Suntemple)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
_00E_Questfunctions Property Levelsystem Auto
Worldspace Property Akropolis Auto
Actor Property PlayerREF Auto
Quest Property MQ12b Auto
Quest Property MQ03 Auto
GlobalVariable Property _00E_TeleportGlobal Auto
Sound Property MAGVampireSunlight Auto
ObjectReference Property _00E_TeleportMarker_Suntemple Auto
{Set this to be the XMarkerHeading where the player arrives}
Message Property _00E_Teleport_sTeleportNotPossible Auto
Scroll Property _01E_TeleportrolleSonnentempel Auto