Jump to content

Ship Player House-Travel System


PCDug

Recommended Posts

Hi everyone.I'm coming close to finishing a personal project (A player house on a coastline Fjord on the border between Skyrim and High Rock,in a custom worldspace).What I want to Implement is a Player owned ship with an interior cell that can be used as a transportation between the Port cities of Skyrim and my Player Home.What I need help with is the creation of a travel system for the ship.Something like an activator in the interior cell wihch brings up a menu that lets me choose a destination.Once the destination Is chosen Time passes and the interior door is switched for one teleporting to another reference of the ship exterior in one of the ports.Of course all the exterior components of the ship(s) would be linked to different x marker parents so that the only enabled XMarker is the one in the port I travelled to and the ship appears in that port and disappears from the others.

The question is can anyone create a script that does this or does anyone know a mod that does something similar so that I can try to Imitate the system or ask for help from the mod author?

Link to comment
Share on other sites

I imagine you want to utilize Messages for the menu. Specifically, the Show() function. You will probably want to do the meat of your work within the choice logic. I imagine you want to disable your current exterior references (or move them if you decided to just reuse the ship and move the location, might take some more marker setup if you decide to utilize it that way), enable your future exterior reference (or have your reference moved as mentioned earlier), lock the door or whatever you want to do for the player to wait before they can exit the ship, and register for a single update either in game time or real time. You will also want to keep track internally what choice was performed for your update event.

 

I would probably move that functionality into a function so you can call the function with the correct parameters (the current references, your future references, and the door in use currently) instead of rewriting the logic multiple times. In your update, you will want to check for the choice. Within this choice logic, you will want to enable the door to your new exterior that the player has arrived at. You might want to display a message to allude to the ship arriving.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...