Builder:Ships
From Wormhole Sci-Fi MUD Homepage
Ships are defined as a set of rooms, looking a lot like .wld (’world’) file. However, they also include a .zon-like set of information, and min_lev and values like a .obj file. Basically, you'd better know your off-line editing inside-out before you attempt to write your own ship.
Like every other kind of MUD file, a bug in a .shi will stop the game from rebooting. Unlike WLD, OBJ, MOB, ZON and SHP, there's no OLC for ships. Get used to reading and writing formatted text files - it's good for you!
Reproduced below is 12.shi, the file for a simple ship. This is the Millennium Falcon, as created by Chewie, some years ago:
#1200 millenium falcon ship~ the Millenium Falcon~ The Millenium Falcon is docked here.~ 111 1 0 100000 0 0 0 0 0 0 75 75 75 75 75 100000 30 2 R01 The Cockpit of the Millenium Falcon~ This place looks kinda, well... Dated. You'd think that any vehicle which boasted such speed ratings would look less like something from a 1970's sci-fi movie! There are two seats in this rather claustrophobic confine, one of which seems covered in some disturbingly long hairs. Who, or what, has been sitting there, you wonder?! ~ 12 0 0 D0 ~ ~ 0 0 02 S C R02 The Living Quarters of the Millenium Falcon~ You can see a chess board, with some holographic figures upon it, in one corner, and in another there is a small, spherical droid hovering about two metres in the air. There are some computers flush against the far wall, which you guess must be research databanks, or navigational instruments. Lying on a chair in front of one row of buttons is a helmet, with the blaster shield down. ~ 12 0 0 D2 ~ ~ 0 0 01 S Z M 0 5909 3 1 * Load Han Solo M 0 5908 2 1 * Load Chewbacca M 0 5910 2 2 * Load R2D2 O 0 14769 20 2 * Load a seat S E Falcon millenium ship~ It's a truly amazing craft, without doubt... Amazing that it can actually get off the ground, that is! Looking over the body of the ship, you can see small craters, obviously from the ships numerous journeys through asteroid belts, and long burn marks. It takes you a moment to realise where they could have come from, but then you realise... Sand people. No, wait, those blaster marks are too precise for sand people. It must have been the 'We always get our man' Stormtroopers! Hmm, maybe you should put as much distance between yourself and the owners of this ship as is possible. ~ W blaster quad~ quad blaster turrets~ 5 4 35 20 S #99999 $~ #
.SHI file archetype follows:
<vnum> <aliases>~ <name>~ <description>~ <level> <type> <flags> <cost> <value 1> <value 2> <value 3> <value 4> <value 5> <value 6> <shields> <speed> <agility> <hitroll> <damroll> <hitpoints> <repop lifespan> <repop type> R<ship room virtual number> <... Standard Room Structure ...> E <extradesc namelist>~ <Text you see when you look at the extradesc> ~ S C <--- Optional: makes preceding room a control room Z <... Standard zone reset Commands ...> S E <aliases for 'extradesc' when you look at the ship>~ <The 'extradesc' type entry. ~ W <weapon alias>~ <weapon name>~ <dam type> <num of dice> <size of dice> <dam add> S #99999 $~
And there you have it! (Thanks to Mejf for formatting the code extracts.) Any questions... 'discuss' this page.
