I have this script, which currently teleports a player to a marker and moves a different marker to the player's previous location, but it doesn't do anything else. I can't find any way to set a variable that can send the player back to the other marker, which is the intended goal. A simultaneous Mark+Recall spell that switches function with every other use.
The script I have so far is:
Scriptname PDTeleportScript extends activemagiceffect ObjectReference property DestinationMarker autoObjectReference property ReturnMarker autoEvent OnEffectFinish(Actor target, Actor caster) ReturnMarker.MoveTo(target) target.MoveTo(DestinationMarker)EndEvent
If this were Oblivion, it would ideally be something along the lines of:
if PlayerAtDestination = 0 ReturnMarker.MoveTo player player.MoveTo DestinationMarker set PlayerAtDestination to 1else player.MoveTo ReturnMarker set PlayerAtDestination to 0endif
I just can't figure out how to translate that to Papyrus.
The overall intended function is still not as elegant as I'd like, which would preferably prevent indoor use and spawn a physical portal activator/door/thing. But I have no idea what I'm doing, so baby steps come first.
First person to help gets a picture of Adrien Brody or something.
