In a mod I am working on, I would like to script dream sequences where the player sleeps, they have a 'dream' where they are transported to a new cell, and when they 'wake', they are transported back to their original position in their original cell.
I think I can handle the coordinate part of the script using local variables and SetPos commands.
The main issue is: how can I record the player's original cell (where they are when they fall asleep) and send them back there when they 'wake up' from the dream cell? The PositionCell command requires the specific cell to be specified in the script, as far as I'm aware.
I have a sneaking suspicion what I'm trying to do is impossible without MWSE, but I'm happy to be proved wrong!