1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.6 KiB

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