I have a spell setup to teleport me to a cell and then back, however once I teleport to the cell using the spell I can not leave!! If I cast the spell again to return, it ports me to the marker that I ported to in the cell when I first cast it. This doesn't make any sense to me at all, I'm sure I have it setup right. Perhaps someone could could a look?
scn XtMoveBegin ScriptEffectStartShort TeleportedIf Player.IsInCombat == 1 Message "You cannot teleport while in combat." ReturnElseIf Player.IsSwimming Message "You cannot teleport while swimming." ReturnElseIf Player.GetInCell ICArena || Player.GetInWorldSpace CamoranParadise || Player.GetInWorldSpace DreamWorld || Player.GetInWorldSpace MS14World Message "You cannot teleport in this location." ReturnEndIfIf emcPlaylistExists "XtyfeMusic" == 0 emcCreatePlaylist "XtyfeMusic" "Data\Music\Xtyfe\*.*"EndifEndBegin ScriptEffectFinishif Teleported == 0 set Teleported to 1 emcChangePlaylist "0" "XtyfeMusic" startquest XtMusicSaveQuest XtSpotMarker.moveto Player 0,0,20 Player.moveto XtHomeMarkerElseIf Teleported == 1 set Teleported to 0 emcRestoreDefaultPlaylist "0" stopquest XtMusicSaveQuest Player.moveto XtSpotMarkerEndifEnd