|
|
@ -7,7 +7,14 @@ Scriptname _00E_TeleportationMEScript extends activemagiceffect |
|
|
|
|
|
|
|
|
|
|
|
Event OnEffectStart (Actor akTarket, Actor akCaster) |
|
|
|
Event OnEffectStart (Actor akTarket, Actor akCaster) |
|
|
|
|
|
|
|
|
|
|
|
If (_00E_TeleportGlobal.GetValueInt() == 1) || (PlayerREF.GetWorldSpace() == Akropolis) |
|
|
|
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) || (PlayerREF.GetWorldSpace() == Akropolis) |
|
|
|
_00E_Teleport_sTeleportNotPossible.Show() |
|
|
|
_00E_Teleport_sTeleportNotPossible.Show() |
|
|
|
MAGVampireSunlight.Play(PlayerREF) |
|
|
|
MAGVampireSunlight.Play(PlayerREF) |
|
|
|
MagicEffect CastedMGEF = Self.GetBaseObject() |
|
|
|
MagicEffect CastedMGEF = Self.GetBaseObject() |
|
|
@ -48,6 +55,7 @@ Cell Property ability_container Auto |
|
|
|
|
|
|
|
|
|
|
|
Formlist Property _00E_TeleportScroll_List Auto |
|
|
|
Formlist Property _00E_TeleportScroll_List Auto |
|
|
|
Formlist Property _00E_TeleportScrollMGEF_List Auto |
|
|
|
Formlist Property _00E_TeleportScrollMGEF_List Auto |
|
|
|
|
|
|
|
Formlist Property NoTeleportCompanions Auto |
|
|
|
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto |
|
|
|
Actor Property PlayerREF Auto |
|
|
|
|
|
|
|
|
|
|
|