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.

127 lines
13 KiB
JavaScript

function nameGen() {
var nm1 = ["Angry", "Bright", "Calm", "Dark", "Enormous", "Fierce", "Gentle", "Large", "Narrow", "Piercing", "Restless", "Savage", "Small", "Tranquil", "Wide"];
var nm2 = ["amber", "azure", "blazing", "cerulean", "cobalt", "crimson", "ebony", "emerald", "fiery", "flaming", "ivory", "jade", "obsidian", "onyx", "pearly", "ruby", "sapphire", "scarlet", "umber", "viridian"];
var nm3 = ["deep", "narrowly", "buried", "far", "rooted", "well", "low", "high", "sunken", "lightly", "thightly", "graciously", "concealed", "delicately", "elegantly", "gracefully", "dreadfully", "wickedly"];
var nm4 = ["angular", "bony", "hard", "thorny", "narrow", "horned", "long", "scaled", "rounded", "soft"];
var nm5 = ["rather menacing", "menacing", "terrifying", "fierce", "frightening", "very ominous", "rather intimidating", "vicious", "threatening", "savage", "rather gentle", "fairly mellow", "mild", "disciplined", "rather peaceful", "sympathetic", "fairly kind", "considerate", "rather docile", "merciful"];
var nm6 = ["Two enormous horns", "Two small horns", "Two horns", "Several enormous horns", "Several small horns", "Several horns", "One enormous central horn", "One small central horn", "One central horn", "Several enormous central horns", "Several small central horns", "Several central horns", "Several large tendrils", "Several small tendrils", "Several tendrils", "Two crystal growths", "Two enormous crystal growths", "Two small crystal growths", "Several crystal growths", "Several enormous crystal growths", "Several small crystal growths"];
var nm7 = ["small", "large", "enormous", "tiny", "narrow", "wide", "thick", "thin", "long", "short"];
var nm8 = ["pointy", "round", "cat-like", "dog-like", "angular", "curved", "warped"];
var nm9 = ["A row of small horns", "A row of small tendrils", "A row of small crystal growths", "A row of crystal growths", "A row of horns", "A row of tendrils", "Several rows of small horns", "Several rows of small tendrils", "Several rows of small crystal growths", "Several rows of crystal growths", "Several rows of horns", "Several rows of tendrils", "Large fan-like skin and bone structures", "Small fan-like skin and bone structures", "Several large fan-like skin and bone structures", "Several small fan-like skin and bone structures"];
var nm10 = ["pointy", "round", "wide", "thick", "thing", "long", "short", "stubby", "flat", "large", "small"];
var nm11 = ["rounded", "curved", "slitted", "pointy", "angular", "warped", "oval"];
var nm12 = ["there's a small horn", "there's a small crystal growth", "there's a small tendril", "there are small horns", "there are small crystal growths", "there are small tendrils", "there's a horn", "there's a crystal growth", "there's a tendril", "there are horns", "there are crystal growths", "there are tendrils"];
var nm13 = ["A few sharp teeth", "Rows of sharp teeth", "Two huge teeth", "Several huge teeth", "Several sharp teeth", "Several rows of sharp teeth", "Rows of large teeth", "A few large teeth", "Several rows of large teeth", "Four large teeth"];
var nm14 = ["reveal only a fraction of", "give a slight hint at", "show a glimpse of", "give a preview of"];
var nm15 = ["short", "thick", "muscular", "long", "wide", "huge", "thin", "broad", "strong", "lean"];
var nm16 = ["massive", "huge", "slim", "slender", "long", "short", "bulky", "colossal", "narrow", "snake-like", "muscular"];
var nm17 = ["massive scales", "small scales", "thick scales", "narrow scales", "wide scales", "rounded scales", "curved scales", "warped scales", "smooth skin", "coarse skin", "thick skin", "radiant skin", "crystal-like skin", "reptilian skin", "stone-like scales", "scale-like skin"];
var nm18 = ["a row of spikes", "rows of spikes", "a row of thick armor plating", "rows of thick armor plating", "a row of small spikes", "rows of small spikes", "a row of armor plating", "rows of armor plating", "a row of crystal growths", "rows of crystal growths", "a row of fan-like growths", "rows of fan-like growths", "a row of small crystal growths", "rows of small crystal growths", "a row of small fan-like growths", "rows of small fan-like growths", "a row of tendrils", "a row of small tendrils", "rows of tendrils", "rows of small tendrils", "a crystal ridge", "an armored ridge", "a fan-like growth"];
var nm19 = ["much lighter", "slightly lighter", "lighter", "darker", "slightly darker", "much darker", "differently"];
var nm20 = ["Four", "Six", "Two", "Four", "Two", "Four"];
var nm21 = ["huge", "muscular", "slim", "slender", "bulky", "thick", "long", "massive", "powerful", "mighty"];
var nm22 = ["graceful", "proud", "tall", "sturdy", "elegantly", "poised", "noble", "illustrious", "dignified", "imposing", "intimidating", "towering", "mighty", "elevated", "arrogantly"];
var nm23 = ["3", "4", "5", "6"];
var nm24 = ["sharp", "thick", "strong", "long", "narrow", "massive", "huge", "pointy", "barbed", "keen", "spiny", "thorny"];
var nm25 = ["claws", "talons", "nails"];
var nm26 = ["bone", "obsidian", "onyx", "crystal", "stone"];
var nm27 = ["Enormous", "Massive", "Gigantic", "Huge", "Colossal", "Monstrous", "Giant", "Humongous", "Magnificent", "Freakish", "Terrifying", "Horrendous", "Graceful", "Delicate", "Slender"];
var nm28 = ["its shoulders", "just below its shoulders", "just above its shoulders", "its shoulders"];
var nm29 = ["all the way down at its pelvis", "at the middle of its back", "at the lower end of its back", "at the end of its shoulder blades", "at its hips", "just passed its shoulder blades"];
var nm30 = ["angular", "rounded", "curved", "bat-like", "somewhat triangular", "scythe-shaped", "bladed in structure", "almost butterfly-like", "almost angel-like", "almost demonic"];
var nm31 = ["bone structures are clearly visible through the thin layer of skin", "a specialized layer of skin is all that's visible inside", "the inside is almost entirely see-through, especially when viewed from a distance", "thick skin and eerie bone structures make up most of the wing", "a specialized layer of seeminly color-changing skin makes up most of the wing", "the edges of the skin inside the wings are tattered and damaged", "the inner sides of the wing are full of minor holes", "the insides of the wing seem to be made of thin crystals", "the skin of the wings seems to glow as if made from fire itself"];
var nm32 = ["curved talons grow from each ending like giant scythes", "sharp hooks grow from the endings of each bone", "long tendril-like growths grow from many parts of the bottom sides of each wing", "armor-like scales grow on top of the wing's primary bones", "small, sharp tips grow from each ending like massive spears", "each bone structures ends in a curved, yet blunt tip", "sharp, spiky scales cover the top of each visible bone", "jagged edges at the bottom almost give it a feathered look"];
var nm33 = ["long", "massive", "elegant", "fairly short", "graceful", "barbed", "spiky", "simple", "thick", "narrow", "wide", "flat"];
var nm34 = ["sharp tip", "curved talon", "single tendril", "seemingly fluffy tip", "mace-like growth", "sword-like edge", "sharp, arrowhead shaped tip", "gentle point", "scythe-like blade", "hammer-like growth", "curled tip", "fan-like tip"];
var rnd1 = parseInt(Math.floor(Math.random() * nm1.length));
var rnd2 = parseInt(Math.floor(Math.random() * nm2.length));
var rnd3 = parseInt(Math.floor(Math.random() * nm3.length));
var rnd4a = parseInt(Math.floor(Math.random() * nm4.length));
var rnd4b = parseInt(Math.floor(Math.random() * nm4.length));
if (rnd4a < 8) {
while (rnd4b > 7) {
rnd4b = parseInt(Math.floor(Math.random() * nm4.length));
while (rnd4a === rnd4b) {
rnd4b = parseInt(Math.floor(Math.random() * nm4.length));
}
}
}
var rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
if (rnd4a < 5 || rnd4b < 5) {
while (rnd5 > 9) {
rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
}
}
var rnd6 = parseInt(Math.floor(Math.random() * nm6.length));
var rnd7 = parseInt(Math.floor(Math.random() * nm7.length));
var rnd7b = parseInt(Math.floor(Math.random() * nm7.length));
var rnd8 = parseInt(Math.floor(Math.random() * nm8.length));
var rnd9 = parseInt(Math.floor(Math.random() * nm9.length));
var rnd10 = parseInt(Math.floor(Math.random() * nm10.length));
var rnd11 = parseInt(Math.floor(Math.random() * nm11.length));
var rnd12 = parseInt(Math.floor(Math.random() * nm12.length));
var rnd13 = parseInt(Math.floor(Math.random() * nm13.length));
var rnd14 = parseInt(Math.floor(Math.random() * nm14.length));
var rnd15 = parseInt(Math.floor(Math.random() * nm15.length));
var rnd16 = parseInt(Math.floor(Math.random() * nm16.length));
var rnd17 = parseInt(Math.floor(Math.random() * nm17.length));
var rnd17a = parseInt(Math.floor(Math.random() * nm17.length));
while (rnd17 === rnd17a) {
rnd17a = parseInt(Math.floor(Math.random() * nm17.length));
}
var rnd18 = parseInt(Math.floor(Math.random() * nm18.length));
var rnd19 = parseInt(Math.floor(Math.random() * nm19.length));
var rnd20 = parseInt(Math.floor(Math.random() * nm20.length));
var rnd21 = parseInt(Math.floor(Math.random() * nm21.length));
var rnd22 = parseInt(Math.floor(Math.random() * nm22.length));
var rnd22a = parseInt(Math.floor(Math.random() * nm22.length));
var rnd23 = parseInt(Math.floor(Math.random() * nm23.length));
var rnd24 = parseInt(Math.floor(Math.random() * nm24.length));
var rnd25 = parseInt(Math.floor(Math.random() * nm25.length));
var rnd26 = parseInt(Math.floor(Math.random() * nm26.length));
var rnd27 = parseInt(Math.floor(Math.random() * nm27.length));
var rnd28 = parseInt(Math.floor(Math.random() * nm28.length));
var rnd29 = parseInt(Math.floor(Math.random() * nm29.length));
var rnd30 = parseInt(Math.floor(Math.random() * nm30.length));
var rnd31 = parseInt(Math.floor(Math.random() * nm31.length));
var rnd32 = parseInt(Math.floor(Math.random() * nm32.length));
var rnd33 = parseInt(Math.floor(Math.random() * nm33.length));
var rnd34 = parseInt(Math.floor(Math.random() * nm34.length));
var name = nm1[rnd1] + " " + nm2[rnd2] + " eyes sit " + nm3[rnd3] + " within the creature's " + nm4[rnd4a] + ", " + nm4[rnd4b] + " skull, which gives the creature a " + nm5[rnd5] + " looking appearance.";
var name2 = nm6[rnd6] + " sit atop its head, just above its " + nm7[rnd7] + ", " + nm8[rnd8] + " ears. " + nm9[rnd9] + " runs down the sides of each of its jaw lines.";
var name3 = "Its nose is " + nm10[rnd10] + " and has two " + nm7[rnd7b] + ", " + nm11[rnd11] + " nostrils and " + nm12[rnd12] + " on its chin. " + nm13[rnd13] + " poke out from the side of its mouth and " + nm14[rnd14] + " the terror hiding inside.";
var name4 = "A " + nm15[rnd15] + " neck runs down from its head and into a " + nm16[rnd16] + " body. The top is covered in " + nm17[rnd17] + " and " + nm18[rnd18] + " runs down its spine.";
var name5 = "Its bottom is covered in " + nm17[rnd17a] + " and is colored " + nm19[rnd19] + " than the rest of its body. ";
var name6 = nm20[rnd20] + " " + nm21[rnd21] + " limbs carry its body and allow the creature to stand " + nm22[rnd22] + " and " + nm22[rnd22a] + ". Each limb has " + nm23[rnd23] + " digits, each of which end in " + nm24[rnd24] + " " + nm25[rnd25] + " seemingly made of " + nm26[rnd26] + ".";
var name7 = nm27[rnd27] + " wings grow starting from " + nm28[rnd28] + " and end " + nm29[rnd29] + ". The wings are " + nm30[rnd30] + ", " + nm31[rnd31] + " and " + nm32[rnd32] + ".";
var name8 = "Its " + nm33[rnd33] + " tail ends in a " + nm34[rnd34] + " and is covered in the same " + nm17[rnd17] + " as its body.";
var br = [];
for (i = 0; i < 12; i++) {
br[i] = 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[0]);
element.appendChild(document.createTextNode(name2));
element.appendChild(br[1]);
element.appendChild(document.createTextNode(name3));
element.appendChild(br[2]);
element.appendChild(br[3]);
element.appendChild(document.createTextNode(name4));
element.appendChild(br[4]);
element.appendChild(document.createTextNode(name5));
element.appendChild(document.createTextNode(name6));
element.appendChild(br[6]);
element.appendChild(br[7]);
element.appendChild(document.createTextNode(name7));
element.appendChild(br[8]);
element.appendChild(br[9]);
element.appendChild(document.createTextNode(name8));
element.appendChild(br[10]);
document.getElementById("placeholder").appendChild(element);
}