Docking in Design Philosophy
|
|
I have an interesting ship system. There is an inside of the ship. How would I make it so that the ships insides would be created at run-time. Also, how could I use the block command so when I approach a station the entire inside would be moved to a docking port and it would be connected. The insides are about 5 by 5. There are multiple ports and multiple ships. Also I am using Sapphiremagus's system for vehicles.
I am also mystified by the block command. Would that command make it possible to create entire ships and move those ships to the docking area.
here is a sample ship with the station. The ation is on a different z level and so is the ship. In overview there is the one tile ship and a 3 by 3 station. depending on where you press dock on the station you will dock in one of the three docks in the area depending on whether one is in use. Tell me if you need a better description.
|
You can do it, but I would recommend using objs or specialized movable atoms instead of turfs for the ship interior. Using turfs, you would have to create new ship turfs inside the docking bay when the ship is docked, then replace them with the standard station turfs when it leaves. Using objs or movable atoms, you can just move the existing ship interior into place.
I know this doesn't apply to your specifications, but you could even make it so that the collection of atoms that make up the ship travel as a unit carrying mobs inside along with them. Mobs inside could be allowed to see the interior of the ship, while mobs outside would only see the spiffy extrerior. :)
block() just returns a list of all the turfs within a rectangular block of space. Once you have the list, you could replicate the turfs to the interior of the station, but as I listed above, that would be pretty inefficient.
That's a fine description. It's very possible to do exactly what you are talking about. I've even considered doing it. ;)