You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
15 KiB
JavaScript

function nameGen() {
var nm1 = ["deepest waters", "unforgiving depths", "ruthless depths", "abysmal waters", "abyssal waters", "deep waters", "nethermost waters", "sunken depths", "heartless waters", "remorseless waters", "relative shallows", "warm shallows", "superficial waters", "peaceful waters"];
var nm2 = ["dark", "somber", "black", "lightless", "dim", "grim", "bleak", "harsh", "morose", "sullen"];
var nm3 = ["ominous", "cheerless", "joyless", "foreboding", "murky", "gloomy", "sinister", "icy", "crabby", "mournful"];
var nm4 = ["gentle", "mild", "serene", "quiet", "temperate", "placid", "tranquil", "mellow", "steady", "forgotten part of the", "lost part of the"];
var nm5 = ["sea", "ocean"];
var nm6 = ["the wreckage", "what remains", "the wreck"];
var nm7 = ["Adelaide", "Aglaia", "Argosy", "Ausonia", "Celebes", "Cordelia", "Deloraine", "Eclair", "Enchantress", "Freya", "Good Fortune", "Medora", "Moselle", "Myrtle", "Nyaden", "Nymphe", "Ocelot", "Serapis", "Starling", "Syrtis"];
var nm8 = ["once used as a trading vessel", "with an unknown history dating back", "who once belonged to pirates", "once part of a larger fleet of navy ships", "once the proud possession of a rich merchant", "who had last been reported as stolen", "without any known records dating back", "once part of a large armada of ships", "who was once the prized possession of an up-and-coming trader", "once a trading ship turned into a pirate ship", "potentially lost during a fight with pirates", "potentially lost during a freak storm", "long sought after by all sorts of people", "who may have been sunk on purpose", "who, based on what we know today, shouldn't have been here"];
var nm9 = ["She's still in great condition", "She's in a fairly good shape", "She's in a respectable condition", "She's in good shape all things considered", "She's in excellent shape", "She's in a rough, but decent shape", "She's in a slightly roughened condition", "She's obviously seen better days, but still in decent condition", "She has stood the test of time quite well", "She has seen a little damage at the hands of various creatures", "She's in a roughened condition for sure", "She's not in the best of shapes to say the least", "She hasn't stood the test of time well", "She's in a rough shape", "She's not in what you'd call a good shape", "She's in awful condition", "She's barely a ship anymore", "She's falling into more and more pieces", "She's slowly crumbling into nothingness", "She's more broken than whole"];
var nm10 = [", with the exception of the large hole in her port-side hull", ", except for the large crack in her starboard hull", ", at least if you ignore the gaping hole in the center of her hull", ", that is if you look passed the big gap that caused her demise", ", with the exception of a couple of holes here and there", ", but bigger and bigger holes do start to appear", ", but cracks continue to grow and expand", ", although the wood is starting to suffer from rot", ", but the damage already done continues to expand as it rots", ", although damage at the hands of the sea starts to appear more and more", "; there are giant cracks and broken beams are everywhere", "; a broken mast and shattered planks litter the main deck", "; shattered windows, cracked planks and pieces of mast can be seen across the sandy floor", "; rust is everywhere and broken windows are more numerous than non-broken ones", "; there are gaping holes all along the hull", "; she's in two main pieces and there's far more damage than that", "; various pieces have come loose and more will soon follow", "; the mast has broken and caused more damage on the way down", "; pieces are missing and the top deck has collapsed", "; parts are scattered all across the sandy floor"];
var nm11 = ["The cold waters help preserve what remains of her", "The barren depths aid in her preservation", "It's a quiet, watery grave", "She's dead silent and eerily calm", "She seems entirely abandoned and lifeless", "She'll continue to deteriorate over time", "Time will continue to claim her piece by piece", "The salty, cold waters are harsh on her", "She's no longer home to a crew", "She belongs to the salty waters now and they're far from kind"];
var nm12 = ["a few animals keep her company and use her as a welcome shelter", "she's in the company of various aquatic beings who see her as their home now", "a few large, aquatic creatures see her as their new home", "passing creatures visit her once in a while", "large, aquatic beings search for food around her every now and then, while small creatures use her as shelter", "various fish keep her company even if to them she's merely a safe harbor for their young", "she's now the home of a wide range of aquatic creatures big and small", ", for better or worse, a wide range of corals adorn her. In turn, many small creatures live among and around the corals", "a plethora of lifeforms use her for housing, hunting grounds and more", "there are creatures who enjoy the vast opportunities she has to offer them"];
var nm13 = ["They often hide behind wooden beams and in shadowed corners", "They're usually out in the open and easily spotted", "It can be difficult to spot them all as they hide at the slightest movement", "They're a calm bunch in the safety of her waters", "She seems to have a calming effect on them", "They're a wild and excited bunch", "They often change positions as they change their minds on which spot is best", "She's the perfect home to grow in and around", "She has a lot to offer those willing to stick around", "Her past or true purpose is irrelevant to the new inhabitants"];
var nm14 = ["Each one of them is in no rush to claim the entire ship as their own", "They all seem content enough to share this abandoned vessel as a group like a family of sorts", "They're a new crew ready to take her on new adventures, but she won't move an inch", "They've given her a new purpose without even meaning to, which adds a certain beauty to her fate", "They're new inhabitants of a home lost to the tides and time", "They're all eager to take advantage of every opportunity, and wish to claim all of what she has to offer for themselves", "She's become a prime location for those who have found her, and they're not willing to share with new arrivals", "The new inhabitants will guard their homes against new arrivals as well as try to claim more for their own when given the chance", "She's become prime real estate and many are eager to claim it all for themselves at any given chance", "These new inhabitants aren't eager to share, neither with newcomers nor each other"];
var nm15 = ["is an eerie sight from afar, like a ghost-ship without a crew", "can look a little creepy from a distance, like a haunted ship ready to haunt the seven seas", "isn't the most pretty sight from a distance with her rugged features and dark interior", "makes for a sad sight from afar, like a discarded toy nobody looks twice at", "is quite a sight from afar, a dramatic scene captured in time until the moment time destroys her further", "doesn't make for the prettiest of sights from a distance, she seems more like a scar on the otherwise pristine, sandy floors", "doesn't make for a pretty sight, especially not from further away. Like discarded waste, she seems to not belong in these waters", "makes for an impressive sight, even more so far afar. Like a monument lost to time, she's a memory of a time nobody remembers", "is an unsettling sight from a distance, like a dead animal slowly rotting and eaten by maggots", "makes for quite an off-putting sight, especially from a distance. Like a grim reminder of the chaotic state of life", "makes for a sorrowful sight, especially from a distance. Like a caged animal unable to live the life they were meant to", "makes for an impressive sight, like a show of defiance against the chaotic nature of life", "is a most macabre sight from afar, like a wound unwilling and unable to heal", "isn't a pretty sight, but that's to be expected after so many years of neglect", "makes for quite an unsettling sight, a stark contrast of the natural world and that which isn't supposed to be here"];
var nm16 = ["She's barely standing upright", "She still stands upright for the most part", "She's slanted to one side", "She hangs slightly to one side", "She hangs heavily to one side", "She's almost entirely on one side", "She has fallen over on one side", "She's in an odd, angled position"];
var nm17 = ["her remaining sails swing in the gentle currents", "ropes dangle back and forth in the ocean currents", "you can almost hear the sounds of wood were it not for her watery grave", "her remaining sails hang motionless in place", "her absent pieces leave a gloomy absence of what was meant to be", "the absence of a crew leaves a deafening silence", "the scattered belongings make for a pitiful sight of broken dreams", "the weakest of materials have perished to leave an even emptier vessel", "the paint of where her name used to be had all but faded to nothingness ", "not much remained of the little details that once made her stand out", "the paintjob that once made her look impeccable was now full of scratches", "little dents cover much of her exposed hull"];
var nm18 = ["Crates, chests and barrels", "A couple of chests and leftover barrels", "A few crates and barrels", "A couple of boxes and containers", "A cage, a few chests and a couple of crates", "A rusty cannon, a few crates and a single chest", "Various personal belongings, crates and chests", "A whole bunch of crates and containers of various sizes", "A wide range of possessions and many different crates", "A whole bunch of crates"];
var nm19 = ["mark her true story up to her demise", "could reveal the details of her final journey", "may hold what could be her last secrets from before her demise", "could provide answers to who her crew was and what the purpose of her final journey was", "leave possibly personal reminders of the crew now lost to time", "are scattered across the floor and half buried under sand", "are covered in a thin layer of sand and oceanic waste", "are scattered across great lengths of the sandy floors", "are expected remains of an interrupted journey", "leave the remnants of a shipment that will never be delivered"];
var nm20 = ["None have cracked open on their way down", "Only a few have cracked open and nothing remains inside", "Nothing's inside those that have broken open", "Mundane items and trade-goods are all that can be seen through cracks and gaps in the wood", "Glistening items can be seen through dark cracks in the wood", "Twisted bars and rusty chains can be seen in some of the broken ones", "Bones of some sort can be seen in one of the broken ones", "Whatever contents were inside some of them have long been claimed by ocean creatures as all broken containers are empty", "They will need to be opened though as all of them are intact", "Their contents still unknown and untouched"];
var nm21 = ["There are no human remains", "Fortunately there are no human remains to be seen", "No bones or other human remains can be found", "Fortunately human remains are not part of this wreckage site", "There's no sight of any human remains", "There are fleshy remains around the ship", "Fleshy remains and various bones are scattered around the ship", "A few bones can be seen here and there", "A handful of bones are scattered around the scene", "There are a few bones scattered around the ship", "There are many bones around the ship", "Various bones stick out of the sand here and there"];
var nm22 = ["perhaps because they made it out alive or perhaps because they've been claimed by the sea too long ago", "hopefully because they made it out safe and sound at the time of whatever caused the ship to sink", "most likely because they made it out in one piece, but it's possible the waters took them elsewhere too", "you could assume they made it out alive, but the watery domain may have claimed them a long time ago", "but it unfortunately doesn't mean they made it out alive", "but fortunately they belong to a dead whale and not to whoever the crew of this ship was", "fortunately they're not human, but likely the remains of a recent fallen prey", "but they're all remnants of a recent feeding frenzy, none of them are human remains", "fortunately they're all remains of ocean creatures still waiting to be eaten by scavengers", "looks like the crew didn't make it out in one piece either", "they're a grim reminder it wasn't just the ship that was lost on the day of her demise", "it's a grim, pitiless grave for a crew of people now long forgotten", "a macabre sight of a crew who deserved better than this dark, watery grave", "they likely belong to the crew, but it's impossible to tell without investigating"];
var rnd1 = Math.random() * nm1.length | 0;
var rnd2 = Math.random() * nm2.length | 0;
var rnd3 = Math.random() * nm3.length | 0;
var rnd4 = Math.random() * nm4.length | 0;
var rnd5 = Math.random() * nm5.length | 0;
var rnd6 = Math.random() * nm6.length | 0;
var rnd7 = Math.random() * nm7.length | 0;
var rnd8 = Math.random() * nm8.length | 0;
var rnd9 = Math.random() * nm9.length | 0;
var rnd10 = Math.random() * 5 | 0;
if (rnd9 > 4 && rnd9 < 10) {
rnd10 += 5;
} else if (rnd9 > 9 && rnd9 < 15) {
rnd10 += 10;
} else if (rnd9 > 14) {
rnd10 += 15;
}
var rnd11 = Math.random() * nm11.length | 0;
var rnd12 = Math.random() * nm12.length | 0;
var rnd13 = Math.random() * nm13.length | 0;
var rnd14 = Math.random() * nm14.length | 0;
var rnd15 = Math.random() * nm15.length | 0;
var rnd16 = Math.random() * nm16.length | 0;
var rnd17 = Math.random() * nm17.length | 0;
var rnd18 = Math.random() * nm18.length | 0;
var rnd19 = Math.random() * nm19.length | 0;
var rnd20 = Math.random() * nm20.length | 0;
var rnd21 = Math.random() * nm21.length | 0;
var rnd22 = Math.random() * nm22.length | 0;
if (rnd21 < 5) {
while (rnd22 > 4) {
rnd22 = Math.random() * nm22.length | 0;
}
} else {
while (rnd22 < 5) {
rnd22 = Math.random() * nm22.length | 0;
}
}
if (rnd1 < 10) {
rn1 = nm2[rnd2] + ", " + nm3[rnd3];
} else {
rn1 = nm4[rnd4];
}
name = "In the " + nm1[rnd1] + " of a " + rn1 + " " + nm5[rnd5] + " lies " + nm6[rnd6] + " of the " + nm7[rnd7] + ", a ship " + nm8[rnd8] + " hundreds of years ago. " + nm9[rnd9] + nm10[rnd10] + ". " + nm11[rnd11] + ", but " + nm12[rnd12] + ". " + nm13[rnd13] + ". " + nm14[rnd14] + ".";
name2 = "The " + nm7[rnd7] + " " + nm15[rnd15] + ". " + nm16[rnd16] + " and " + nm17[rnd17] + ". " + nm18[rnd18] + " " + nm19[rnd19] + ". " + nm20[rnd20] + "."
name3 = nm21[rnd21] + ", " + nm22[rnd22] + ".";
var br = document.createElement('br');
var br2 = document.createElement('br');
var br3 = document.createElement('br');
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
var element = document.createElement("div");
element.setAttribute("id", "result");
element.appendChild(document.createTextNode(name));
element.appendChild(br);
element.appendChild(br2);
element.appendChild(document.createTextNode(name2));
element.appendChild(br3);
element.appendChild(document.createTextNode(name3));
document.getElementById("placeholder").appendChild(element);
}