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.
149 lines
22 KiB
JavaScript
149 lines
22 KiB
JavaScript
function nameGen() {
|
|
var names1 = ["mammal", "aquatic mammal", "amphibian", "reptile", "fish", "invertebrate", "bird", "mammal"];
|
|
var names2a = ["two arms and ", "four arms and ", "six arms and ", "two arms and ", "two arms and ", "four arms and ", "two arms and "];
|
|
var names2b = ["two legs, ", "four legs, ", "six legs, ", "four legs, ", "two legs, ", "two legs, "];
|
|
var names2c = ["with a long, thin tail", "with a long, thick tail", "with a short, thin tail", "with a short, thick tail", "with remnants of what was once a tail", "but they have no tail", "with a long, strong and agile tail", "with a short, strong tail", "with a long, strong tail", "with a short, muscular tail", "with a long, muscular tail", "with a long, weak tail", "with a short, weak tail", "with a long, useless tail", "with a short, useless tail", "with a short, stubby tail"];
|
|
var names3 = ["two eyes", "four eyes", "six eyes", "two eyes", "four eyes", "two eyes"];
|
|
var names4 = ["deep", "narrowly", "buried", "far", "rooted", "well", "low", "high", "sunken", "lightly", "thightly", "graciously", "concealed", "delicately", "elegantly", "gracefully"];
|
|
var names5 = ["friendly", "angry", "arrogant", "reserved", "serene", "composed", "distant", "modest", "restrained", "cautious", "gentle", "withdrawn", "annoyed", "nervous", "agitated", "bold", "excited", "troubled", "upset", "formal", "evil", "trustworthy", "untrustworthy", "sly", "honest", "dishonest", "slick", "elusive", "calculating", "intelligent"];
|
|
var names6 = ["excellent", "fairly good", "quite good", "not the best", "amazing", "astonishing", "a bit poor", "great at distances", "not too great at distances", "impressive", "average", "not that great", "among the best", "almost among the best", "perhaps the best of all species"];
|
|
var names7a = ["wide mouths", "small mouths", "long mouths", "huge mouths", "thin mouths", "narrow mouths", "enormous mouths"];
|
|
var names7b = [" and huge noses", " and small noses", " and wide noses", " and long noses", " and enormous noses", " and thin noses", " and almost hidden noses", " and lack of a visible nose", " and tiny noses", " and narrow noses"];
|
|
var names8 = ["almost invisible", "long and pointy", "small", "huge", "large", "long", "quite long", "a bit small", "wide and long", "long and narrow", "will hidden", "small and pointy", "wide and large", "long and hanging", "small and stubby"];
|
|
var names9 = ["They also have two horns on their heads.", "They also have three horns on their heads.", "They also have four horns on their heads.", "They also have horns covering their face.", "They also have horns running across their backs.", "They also have small horns on their hands.", "They also have small horns on their hands, arms and legs.", "They also have two small horns on their elbows.", "They also have two horns on their heels.", "They also have small horns on their feet.", "They also have small horns on their hands and feet.", "They also have small horns across their chests.", "They also have small horns across their body.", "They also have small horns across their chests and backs.", "They also have one long horn on their head.", "", "", "", "", ""];
|
|
var names10 = ["very thick and rough.", "smooth and thin.", "thin, but strong.", "thin and fairly weak.", "very thick and very strong.", "very strong, but not very thick.", "course, thick and strong.", "smooth, yet strong.", "smooth, elastic and quite strong.", "elastic and strong."];
|
|
var names11 = ["It's covered in thick fur.", "It's covered lightly in small hairs.", "It's covered lightly in long, coarse hairs.", "It's covered in thick, course fur.", "It's covered long, wavy hairs.", "It's covered short hairs.", "It's covered short, curly hairs.", "It's covered in nothing but a few hairs on their hands.", "It's covered in nothing but hair on their heads, arms and legs.", "It's covered in nothing, except for hair on their heads.", "It's covered in nothing, except for hairs on their heads, chests, arms and legs.", "It's covered in nothing but a few hairs on their heads.", "It's covered lightly in tiny hairs.", "It's covered in thick, short hairs.", "It's covered in soft, short hairs."];
|
|
var names11a = "Their skin ";
|
|
var names12a = ["black", "blue", "green", "bronze", "brown", "gold", "grey", "orange", "pink", "purple", "red", "silver", "white", "yellow", "dark blue", "dark bronze", "dark brown", "dark gold", "dark grey", "dark orange", "dark green", "dark pink", "dark purple", "dark red", "dark silver", "dark yellow", "light blue", "light bronze", "light brown", "light gold", "light grey", "light orange", "light pink", "light purple", "light green", "light red", "light silver", "light yellow"];
|
|
var names12b = [", black", ", blue", ", bronze", ", brown", ", gold", ", green", ", grey", ", orange", ", pink", ", purple", ", red", ", silver", ", white", ", yellow", ", dark blue", ", dark bronze", ", dark brown", ", dark gold", ", dark grey", ", dark green", ", dark orange", ", dark pink", ", dark purple", ", dark red", ", dark silver", ", dark yellow", ", light blue", ", light bronze", ", light brown", ", light gold", ", light green", ", light grey", ", light orange", ", light pink", ", light purple", ", light red", ", light silver", ", light yellow", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
|
|
var names12c = [", black", ", green", ", blue", ", bronze", ", brown", ", gold", ", grey", ", orange", ", pink", ", purple", ", red", ", silver", ", white", ", yellow", ", dark blue", ", dark bronze", ", dark brown", ", dark gold", ", dark green", ", dark grey", ", dark orange", ", dark pink", ", dark purple", ", dark red", ", dark silver", ", dark yellow", ", light blue", ", light bronze", ", light brown", ", light gold", ", light green", ", light grey", ", light orange", ", light pink", ", light purple", ", light red", ", light silver", ", light yellow", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
|
|
var names12d = [" and black", " and blue", " and bronze", " and green", " and brown", " and gold", " and grey", " and orange", " and pink", " and purple", " and red", " and silver", " and white", " and yellow", " and dark blue", " and dark bronze", " and dark brown", " and dark gold", " and dark grey", " and dark orange", " and dark pink", " and dark purple", " and dark red", " and dark silver", " and dark yellow", " and light blue", " and light bronze", " and light brown", " and light gold", " and light grey", " and light orange", " and light pink", " and light purple", " and light red", " and light silver", " and light yellow"];
|
|
var names13 = ["darker", "lighter", "dull", "dim", "pale", "faded"];
|
|
var names14 = ["more arrogant", "bigger", "bossier", "braver", "bulkier", "faster", "friendlier", "heavier", "lazier", "more adventurous", "more confident", "more cunning", "more dependable", "more emotional", "more gracious", "more helpful", "more honorable", "more humble", "more impulsive", "more independent", "more obedient", "more obnoxious", "more optimistic", "more self-centered", "more self-reliant", "more vulgar", "smarter", "sneakier", "stronger", "taller"];
|
|
var names15 = ["more vibrant", "less vibrant", "more varied", "less varied", "darker", "lighter"];
|
|
var random1 = parseInt(Math.floor((Math.random() * names1.length)));
|
|
if (random1 === 1) {
|
|
names2a = ["a huge, powerful tail and small anal fin, ", "a huge, muscular tail and small anal fin, ", "a large, muscular tail and small anal fin, ", "a large, powerful tail and small anal fin, ", "a short, muscular tail and small anal fin, ", "a long, powerful tail and small anal fin, ", "a short, powerful tail and small anal fin, ", "a long, muscular tail and small anal fin, ", "a huge, powerful tail and small anal fin, ", "a huge, muscular tail and long anal fin, ", "a large, muscular tail and long anal fin, ", "a large, powerful tail and long anal fin, ", "a short, muscular tail and long anal fin, ", "a long, powerful tail and long anal fin, ", "a short, powerful tail and long anal fin, ", "a long, muscular tail and long anal fin, "];
|
|
names2b = ["two arms and ", "four arms and ", "two strong side fins and ", "four strong side fins and ", "six strong side fins and ", "two side fins and ", "four side fins and ", "six side fins and ", "two large side fins and ", "four large side fins and ", "six large side fins and ", "two powerful arms and ", "four powerful arms and ", "two powerful side fins and ", "four powerful sidefins and ", "two huge side fins and ", "four huge side fins and "];
|
|
names2c = ["a huge dorsal fin", "a small dorsal fin", "a thick, long dorsal fin", "a thin, long dorsal fin", "a wide, sail-like dorsal fin", "a ribbon-like dorsal fin", "a long, ribbon-like dorsal fin", "a short, ribbon-like dorsal fin", "a huge, sail-like dorsal fin", "a short, strong dorsal fin", "a long, strong dorsal fin", "a short, pointy dorsal fin", "a long, pointy dorsal fin", "a long, streamlined dorsal fin", "a short, streamlined dorsal fin"];
|
|
names9 = ["They also have two horns on their heads.", "They also have three horns on their heads.", "They also have four horns on their heads.", "They also have horns running across their backs.", "They also have one long horn on their head.", "", "", "", "", ""];
|
|
names11 = [""];
|
|
} else if (random1 === 2) {
|
|
names2c = ["but they have no tail", "with a huge, powerful tail", "with a long, muscular tail", "with a long, powerful tail", "with a long, strong and agile tail", "with a long, strong tail", "with a long, thick tail", "with a long, thin tail", "with a long, useless tail", "with a long, weak tail", "with a short, muscular tail", "with a short, powerful tail", "with a short, strong tail", "with a short, stubby tail", "with a short, thick tail", "with a short, thin tail", "with a short, useless tail", "with a short, weak tail", "with a thick, powerful tail", "with remnants of what was once a tail"];
|
|
names11 = ["It's covered in a thin layer of mucous.", "It's covered in a thick layer of mucous.", "It's covered in a very thin layer of mucous.", "It's covered in a very thick layer of mucous.", "It's covered lightly in mucous."];
|
|
} else if (random1 === 3) {
|
|
names2a = ["two arms and two legs, ", "two arms and four legs, ", "two arms and six legs, ", "four arms and two legs, ", "four arms and four legs, ", "four arms and six legs, ", "six arms and two legs, ", "six arms and four legs, ", "two arms, but no legs, like a snake with arms, ", "four arms, but no legs, like a snake with arms, ", "six arms, but no legs, like a snake with arms, "];
|
|
names2b = [""];
|
|
names2c = ["with a long, thin tail", "with a long, thick tail", "with a short, thin tail", "with a short, thick tail", "with remnants of what was once a tail", "but they have no tail", "with a long, strong and agile tail", "with a short, strong tail", "with a long, strong tail", "with a short, muscular tail", "with a long, muscular tail", "with a long, weak tail", "with a short, weak tail", "with a long, useless tail", "with a short, useless tail", "with a short, stubby tail"];
|
|
names11 = ["It's covered in thin, coarse scales.", "It's covered in large, coarse scales.", "It's covered in large, smooth scales.", "It's covered in large, strong scales.", "It's covered in small, coarse scales.", "It's covered in small, smooth scales.", "It's covered in small, strong scales.", "It's covered in strong, hard scales.", "It's covered in thick, coarse scales.", "It's covered in thick, strong scales."];
|
|
names11a = "Their scale ";
|
|
} else if (random1 === 4) {
|
|
names2a = ["a huge, powerful tail and small anal fin, ", "a huge, muscular tail and small anal fin, ", "a large, muscular tail and small anal fin, ", "a large, powerful tail and small anal fin, ", "a short, muscular tail and small anal fin, ", "a long, powerful tail and small anal fin, ", "a short, powerful tail and small anal fin, ", "a long, muscular tail and small anal fin, ", "a huge, powerful tail and small anal fin, ", "a huge, muscular tail and long anal fin, ", "a large, muscular tail and long anal fin, ", "a large, powerful tail and long anal fin, ", "a short, muscular tail and long anal fin, ", "a long, powerful tail and long anal fin, ", "a short, powerful tail and long anal fin, ", "a long, muscular tail and long anal fin, "];
|
|
names2b = ["two strong side fins and ", "four strong side fins and ", "six strong side fins and ", "two side fins and ", "four side fins and ", "six side fins and ", "two large side fins and ", "four large side fins and ", "six large side fins and ", "two powerful side fins and ", "four powerful sidefins and ", "two huge side fins and ", "four huge side fins and "];
|
|
names2c = ["a huge dorsal fin", "a small dorsal fin", "a thick, long dorsal fin", "a thin, long dorsal fin", "a wide, sail-like dorsal fin", "a ribbon-like dorsal fin", "a long, ribbon-like dorsal fin", "a short, ribbon-like dorsal fin", "a huge, sail-like dorsal fin", "a short, strong dorsal fin", "a long, strong dorsal fin", "a short, pointy dorsal fin", "a long, pointy dorsal fin", "a long, streamlined dorsal fin", "a short, streamlined dorsal fin"];
|
|
names7b = [" and small noses", " and wide noses", " and long noses", " and thin noses", " and almost hidden noses", " and lack of a visible nose", " and tiny noses", " and narrow noses"];
|
|
names8 = ["almost invisible", "small", "will hidden", "small and pointy", "small and stubby"];
|
|
names11 = ["It's covered in thin, coarse scales.", "It's covered in large, coarse scales.", "It's covered in large, smooth scales.", "It's covered in large, strong scales.", "It's covered in small, coarse scales.", "It's covered in small, smooth scales.", "It's covered in small, strong scales.", "It's covered in strong, hard scales.", "It's covered in thick, coarse scales.", "It's covered in thick, strong scales."];
|
|
names11a = "Their scale ";
|
|
} else if (random1 === 5) {
|
|
names2a = ["two arms and ", "four arms and ", "six arms and ", "four winged arms and ", "two winged arms and ", "six winged arms and ", "two clawed arms and ", "four clawed arms and ", "two wings, two arms and ", "four wings, two arms and ", "two wings, four arms and ", "four wings, four arms and ", "two wings, six arms and ", "two wings, two clawed arms and ", "two clawed arms, two normal arms and "];
|
|
names2b = ["two legs, ", "four legs, ", "six legs, ", "four legs, ", "two legs, "];
|
|
names2c = ["but they have no tail", "with a huge, powerful tail", "with a long, muscular tail", "with a long, powerful tail", "with a long, strong and agile tail", "with a long, strong tail", "with a long, thick tail", "with a long, thin tail", "with a long, useless tail", "with a long, weak tail", "with a short, muscular tail", "with a short, powerful tail", "with a short, strong tail", "with a short, stubby tail", "with a short, thick tail", "with a short, thin tail", "with a short, useless tail", "with a short, weak tail", "with a thick, powerful tail", "with remnants of what was once a tail"];
|
|
} else if (random1 === 6) {
|
|
names2a = ["two huge wings and ", "four huge wings and ", "two huge, powerful wings and ", "four huge, powerful wings and ", "two huge and two smaller wings and ", "two enormous wings and ", "four enormous wings and ", "two large and four smaller wings and ", "four smaller wings and ", "two smaller wings and "];
|
|
names2b = ["two strong, clawed legs, ", "two small, clawed legs, ", "four strong, clawed legs, ", "four small, clawed legs, ", "two strong legs, ", "four strong legs, ", "two small legs, ", "four small legs, ", "two thin, long legs, ", "two long, strong legs, "];
|
|
names2c = ["with a huge tail", "with a huge, wide tail", "with a huge, powerful tail", "with a long, powerful tail", "with a long, elegant tail", "with a short, elegant tail", "with a short, powerful tail", "with a wide, powerful tail", "with a wide, elegant tail", "with a short tail"];
|
|
names7a = ["long beaks", "sharp beaks", "thin beaks", "short beaks", "huge beaks", "enormous beaks", "wide beaks", "thin, sharp beaks", "long, sharp beaks", "long, pointy beaks", "short, pointy beaks", "huge, pointy beaks", "huge, sharp beaks", "short, sharp beaks", "thin, pointy beaks"];
|
|
names7b = [""];
|
|
names8 = ["almost invisible", "small", "will hidden", "small and pointy", "small and stubby", "hidden behind their feathers"];
|
|
names9 = [""];
|
|
names11 = ["It's covered in large feathers.", "It's covered in large, thin feathers.", "It's covered in large, wide feathers.", "It's covered in long, thin feathers.", "It's covered in long, wide feathers.", "It's covered in short, thin feathers.", "It's covered in short, wide feathers.", "It's covered in small feathers.", "It's covered in small, thin feathers.", "It's covered in small, wide feathers."];
|
|
names11a = "Their feather ";
|
|
}
|
|
var random2a = parseInt(Math.floor((Math.random() * names2a.length)));
|
|
var random2b = parseInt(Math.floor((Math.random() * names2b.length)));
|
|
var random2c = parseInt(Math.floor((Math.random() * names2c.length)));
|
|
var random3 = parseInt(Math.floor((Math.random() * names3.length)));
|
|
var random4 = parseInt(Math.floor((Math.random() * names4.length)));
|
|
var random5a = parseInt(Math.floor((Math.random() * names5.length)));
|
|
var random5b = parseInt(Math.floor((Math.random() * names5.length)));
|
|
while (random5b === random5a) {
|
|
random5b = parseInt(Math.floor((Math.random() * names5.length)));
|
|
}
|
|
var random6a = parseInt(Math.floor((Math.random() * names6.length)));
|
|
var random6b = parseInt(Math.floor((Math.random() * names6.length)));
|
|
while (random6b === random6a) {
|
|
random6b = parseInt(Math.floor((Math.random() * names6.length)));
|
|
}
|
|
var random7a = parseInt(Math.floor((Math.random() * names7a.length)));
|
|
var random7b = parseInt(Math.floor((Math.random() * names7b.length)));
|
|
var random8 = parseInt(Math.floor((Math.random() * names8.length)));
|
|
var random9 = parseInt(Math.floor((Math.random() * names9.length)));
|
|
var random10 = parseInt(Math.floor((Math.random() * names10.length)));
|
|
var random11 = parseInt(Math.floor((Math.random() * names11.length)));
|
|
var random12a = parseInt(Math.floor((Math.random() * names12a.length)));
|
|
var random12b = parseInt(Math.floor((Math.random() * names12b.length)));
|
|
while (random12b === random12a) {
|
|
random12b = parseInt(Math.floor((Math.random() * names12b.length)));
|
|
}
|
|
var random12c = parseInt(Math.floor((Math.random() * names12c.length)));
|
|
while (random12c === random12a || random12c === random12b) {
|
|
random12c = parseInt(Math.floor((Math.random() * names12c.length)));
|
|
}
|
|
var random12d = parseInt(Math.floor((Math.random() * names12c.length)));
|
|
while (random12d === random12a || random12d === random12b || random12d === random12c) {
|
|
random12d = parseInt(Math.floor((Math.random() * names12c.length)));
|
|
}
|
|
var random12e = parseInt(Math.floor((Math.random() * names12d.length)));
|
|
while (random12e === random12a || random12e === random12b || random12e === random12c || random12e === random12d) {
|
|
random12e = parseInt(Math.floor((Math.random() * names12d.length)));
|
|
}
|
|
var random13 = parseInt(Math.floor((Math.random() * names13.length)));
|
|
var random14a = parseInt(Math.floor((Math.random() * names14.length)));
|
|
var random14b = parseInt(Math.floor((Math.random() * names14.length)));
|
|
while (random14b === random14a) {
|
|
random14b = parseInt(Math.floor((Math.random() * names14.length)));
|
|
}
|
|
var random15 = parseInt(Math.floor((Math.random() * names15.length)));
|
|
var name = "These aliens are a type of " + names1[random1] + ". They have " + names2a[random2a] + names2b[random2b] + names2c[random2c] + ".";
|
|
var name2 = "They have " + names3[random3] + " which sit " + names4[random4] + " in their sockets and can often make them appear to be " + names5[random5a] + ". Their eyesight is " + names6[random6a] + ".";
|
|
var name3 = "Their " + names7a[random7a] + names7b[random7b] + " often make these aliens appear to be " + names5[random5b] + ", but looks can be deceiving.";
|
|
var name4 = "Their ears are " + names8[random8] + " and their hearing is " + names6[random6b] + ". " + names9[random9];
|
|
var name5 = "Their skin is " + names10[random10] + " " + names11[random11];
|
|
var name6 = names11a + " colors are mostly " + names12a[random12a] + names12b[random12b] + names12c[random12c] + names12c[random12d] + names12d[random12e] + ", which tend to become " + names13[random13] + " as they age.";
|
|
var name7 = "The males are usually " + names14[random14a] + " than their female counter part and their colors are " + names15[random15] + ". The females, however, are usually " + names14[random14b] + ".";
|
|
var br = document.createElement('br');
|
|
var br2 = document.createElement('br');
|
|
var br3 = document.createElement('br');
|
|
var br4 = document.createElement('br');
|
|
var br5 = document.createElement('br');
|
|
var br6 = document.createElement('br');
|
|
var br7 = document.createElement('br');
|
|
var br8 = document.createElement('br');
|
|
var br9 = document.createElement('br');
|
|
var br10 = 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(br4);
|
|
element.appendChild(document.createTextNode(name3));
|
|
element.appendChild(br5);
|
|
element.appendChild(document.createTextNode(name4));
|
|
element.appendChild(br6);
|
|
element.appendChild(br7);
|
|
element.appendChild(document.createTextNode(name5));
|
|
element.appendChild(br8);
|
|
element.appendChild(document.createTextNode(name6));
|
|
element.appendChild(br9);
|
|
element.appendChild(br10);
|
|
element.appendChild(document.createTextNode(name7));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|