|
|
|
@ -6,7 +6,14 @@ Scriptname _00E_Teleport_SuntempleME extends activemagiceffect |
|
|
|
|
|
|
|
|
|
Event OnEffectStart (Actor akTarket, Actor akCaster) |
|
|
|
|
|
|
|
|
|
If (_00E_TeleportGlobal.GetValueInt() == 1 && !(MQ12b.IsRunning())) || PlayerREF.GetWorldSpace() == Akropolis || MQ03.GetCurrentStageID() < 30 |
|
|
|
|
bool bHasCompanion = false |
|
|
|
|
int i = NoTeleportCompanions.GetSize() |
|
|
|
|
while i > 0 && ! bHasCompanion |
|
|
|
|
i -= 1 |
|
|
|
|
bHasCompanion = (NoTeleportCompanions.GetAt(i) as Actor).IsPlayerTeammate() |
|
|
|
|
endwhile |
|
|
|
|
|
|
|
|
|
If bHasCompanion || (_00E_TeleportGlobal.GetValueInt() == 1 && ! MQ12b.IsRunning()) || PlayerREF.GetWorldSpace() == Akropolis || MQ03.GetCurrentStageID() < 30 |
|
|
|
|
_00E_Teleport_sTeleportNotPossible.Show() |
|
|
|
|
MAGVampireSunlight.Play(PlayerREF) |
|
|
|
|
PlayerREF.AddItem(_01E_TeleportrolleSonnentempel, 1) |
|
|
|
@ -40,3 +47,5 @@ ObjectReference Property _00E_TeleportMarker_Suntemple Auto |
|
|
|
|
Message Property _00E_Teleport_sTeleportNotPossible Auto |
|
|
|
|
|
|
|
|
|
Scroll Property _01E_TeleportrolleSonnentempel Auto |
|
|
|
|
|
|
|
|
|
Formlist Property NoTeleportCompanions Auto |
|
|
|
|