Is there any way to record which cell the player is in?

Post » Sun Oct 26, 2014 1:06 am

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!

User avatar
Andrew Tarango
 
Posts: 3454
Joined: Wed Oct 17, 2007 10:07 am

Post » Sat Oct 25, 2014 9:43 pm

Morrowind scripting cannot store string values so you cannot get which cell the player is in. You need MWSE for that.

There was a recent discussion on saving cell name the PC was present for a multimark mod. Better check those out. http://www.gamesas.com/topic/1505353-teleport-andor-multiple-location-markrecall-spell-mods/ http://www.gamesas.com/topic/1507200-making-a-marker-object-to-use-for-teleportation/

User avatar
Mashystar
 
Posts: 3460
Joined: Mon Jul 16, 2007 6:35 am


Return to III - Morrowind