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.

75 lines
10 KiB
JavaScript

function nameGen() {
var nm1 = ["admirable", "beautiful", "charming", "common", "decent", "elegant", "excellent", "exceptional", "fine", "first-rate", "intricate", "magnificent", "marvelous", "masterfully crafted", "nifty", "ornate", "pleasant", "popular", "rare", "skillfully created", "solid", "superior", "uncommon", "well designed", "well-made"];
var nm2 = ["recurve bow", "reflex bow", "self bow", "longbow", "flatbow", "composite bow", "compound bow", "shortbow", "recurve crossbow", "compound crossbow", "repeating crossbow", "pistol crossbow", "rifle crossbow", "recurve crossbow", "compound crossbow"];
var nm3 = ["adeptly", "admirably", "appropriately", "carefully", "cleverly", "delicately", "efficiently", "expertly", "extremely well", "flawlessly", "masterfully", "properly", "reliably", "remarkably", "rigorously", "skillfully", "solidly", "superbly", "well", "wonderfully"];
var nm4 = ["a fine sample of", "a rare sample of", "amazingly strong", "common", "decent", "durable", "excellent", "exceptional", "exquisite", "extraordinary", "great", "heavy-duty", "long-lasting", "magnificent", "only the finest", "powerful", "reinforced", "sturdy", "uncommon", "valuable"];
var nm5 = ["adamantium", "aluminum", "ash wood", "bamboo", "blackwood", "carbon fiber", "cedar wood", "dragon bone", "dwarven steel", "fiberglass", "firewood", "hickory", "ipe wood", "iron", "ironoak", "ironwood", "juniper wood", "maple", "mithril", "obsidian", "onyx", "osage", "poplar wood", "red elm", "red oak wood", "rosewood", "steel", "walnut wood", "willow", "yew wood"];
var nm6 = ["decent quality", "deluxe", "excellent quality", "exceptional", "favorable", "fine", "first-class", "first-rate", "good quality", "great quality", "prime", "pristine", "splendid", "superior", "valuable"];
var nm6b = ["bear gut", "bear hide", "bear sinew", "boar gut", "boar hide", "boar sinew", "cotton", "dacron", "deer hide", "deer sinew", "dragon sinew", "grass fiber", "hemp", "hide", "horsehair", "linen", "polyester", "silk", "wolf hide", "wolf sinew"];
var nm7 = ["a fairly uncommon", "an uncommon", "a rare", "a very rare", "a common", "a fairly rare", "an extremely rare", "a very uncommon", "a fairly common", "a very common"];
var nm8 = ["a razorsharp edge", "a seemingly glowing thread", "a thin layer of leather", "animal bones", "animal scales", "armored plating", "bat-wing like extensions", "bird feathers", "blade-like attachments", "carefully wrapped leather", "crafted eyes", "curved talon-like spikes", "ebony details", "flower petals", "gilded details", "golden rings", "intricate carve work", "intricate steel designs", "ivory details", "large animal horns", "large wood carvings", "magical runes", "many small spikes", "masterful paintworks", "ornate golden details", "pieces of obsidian", "rows of gems", "rows of large teeth", "rows of small teeth", "rune-like symbols", "seemingly glowing runes", "several large spikes", "several long spikes", "silken ribbons", "small animal horns", "small sigils", "tribal paintings", "wing-like constructions", "wrapped silk ribbons", "wrapped vines"];
var nm9 = ["curves", "slight curves", "rounded curves", "long points", "points", "narrow points"];
var nm10 = ["shaped like snake heads", "shaped like wings", "shaped like dragon heads", "shaped like talons", "shaped like tusks", "shaped like blades", "shaped like axe heads", "shaped like scythes", "shaped like branches", "shaped like delicate ribbons", "ornamented with small skulls", "ornamented with thin glowing ribbons", "ornamented with feathers", "ornamented with crafted wings", "ornamented with spikes", "ornamented with sharp blades", "ornamented with various gems", "ornamented with teeth", "ornamented with flowers", "ornamented with gilded details", "ornamented with arrow heads", "ornamented with crafted talons", "ornamented with tusks", "ornamented with wrapped leather", "ornamented with axe heads", "ornamented with long spikes", "ornamented with dragon bone", "ornamented with magic runes", "ornamented with animal scales", "ornamented with gilded details", "ornamented with large barbs", "ornamented with curved claws", "ornamented with intricate carvings", "ornamented with carved decorations", "ornamented with crafted leaves", "ornamented with delicate decorations", "ornamented with sharp edges", "ornamented with small sigils", "ornamented with spear heads", "ornamented with obsidian tips"];
var nm11 = ["cloth", "coarse hide", "dark leather", "ebon", "fur", "hide", "ivory", "leaves", "light leather", "linen", "obsidian", "rare hide", "rare leather", "rare silk", "reptilian skin", "soft hide", "soft silk", "thick leather"];
var nm12 = ["carved woodworks", "feathers", "gilded decorations", "gilded linings", "glowing threads", "intricate thread work", "leaves", "magic runes", "ominous carvings", "painted decorations", "rune-like symbols", "sigil decorations", "small gems", "symbolic writing", "tribal paintings"];
var nm13 = ["a skilled archer", "any archer", "a master archer", "an expert archer", "anybody", "a trained archer", "a novice archer"];
var nm14 = parseInt(Math.floor(Math.random() * 200)) + 100;
var nm15 = "handle";
var nm16 = ["broad", "bulky", "large", "long", "modest", "narrow", "sizable", "small", "wide"];
var nm17 = ["a hollowed out tree trunk", "coarse hide", "common fur and hide", "common hide", "dark leather", "hollowed out bamboo", "light leather", "rare fur and hide", "rare hide", "rare leather", "reptilian skin", "soft hide", "thick leather", "woven fabric", "woven leaves", "woven natural fibres", "woven vines"];
var nm18 = ["back", "belt"];
var nm19 = ["a furry animal tail", "a seemingly glowing thread", "animal bones", "animal horns", "animal scales", "armored plating", "bird feathers", "carefully wrapped leather", "crafted eyes", "curved talon-like spikes", "ebony details", "feathers", "flower petals", "gilded decorations", "gilded details", "gilded linings", "glowing threads", "golden rings", "intricate thread work", "ivory animal parts", "ivory details", "leaves", "magic runes", "magical runes", "many small spikes", "masterful paintworks", "ominous symbols", "ornate golden details", "painted decorations", "painted on eyes", "patterns of fabric", "pieces of obsidian", "rows and rows of different arrow heads", "rows of gems", "rows of large teeth", "rows of small teeth", "rune-like symbols", "seemingly glowing runes", "seemingly growing vines", "several small furry animal tails", "sigil decorations", "silken ribbons", "small animal horns", "small antlers", "small gems", "small sigils", "symbolic writing", "tribal paintings", "wrapped silk ribbons", "wrapped vines"];
var nm20 = ["seems to mean a lot to the archer", "don't seem to have a particular meaning", "likely have a significant meaning to the archer", "may be purely decorational or might have a meaning", "may be related to previous victories", "could very well be done in a significant way for the archer", "are probably just a means of showing off", "likely are meant purely to make the archer stand out", "at least make it look more special than normal quivers", "don't seem to have any function other than decoration", "probably costed a fair bit of money", "may have been added by the archer on a lazy day", "must be there for more than just decoration", "may be of greater significance to the archer than to others", "although seemingly random does have some reason behind it"];
var rnd = parseInt(Math.floor(Math.random() * nm1.length));
var rnd2 = parseInt(Math.floor(Math.random() * nm2.length));
if (rnd2 > 7) {
nm14 -= 100;
nm15 = "stock"
}
var rnd3 = parseInt(Math.floor(Math.random() * nm3.length));
var rnd4 = parseInt(Math.floor(Math.random() * nm4.length));
var rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
var rnd6 = parseInt(Math.floor(Math.random() * nm6.length));
var rnd6b = parseInt(Math.floor(Math.random() * nm6b.length));
var rnd7 = 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 rnd16 = parseInt(Math.floor(Math.random() * nm16.length));
var rnd17 = 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 name = "This " + nm1[rnd] + " " + nm2[rnd2] + " has been " + nm3[rnd3] + " constructed of " + nm4[rnd4] + " " + nm5[rnd5] + ". ";
var name2 = "Its string is made from " + nm6[rnd6] + " " + nm6b[rnd6b] + ", it's " + nm7[rnd7] + " material around these parts of the world.";
var name3 = "The limbs have been decorated with " + nm8[rnd8] + " and end in " + nm9[rnd9] + " " + nm10[rnd10] + ". ";
var name4 = "The " + nm15 + " is wrapped in " + nm11[rnd11] + " and decorated with " + nm12[rnd12] + ".";
var name6 = "The " + nm16[rnd16] + " quiver is made from " + nm17[rnd17] + " and is supposed to be worn around the archer's " + nm18[rnd18] + ". The outer side has been decorated with " + nm19[rnd19] + ", which " + nm20[rnd20] + ".";
var name5 = "In the hands of " + nm13[rnd13] + " this bow is capable of firing arrows up to " + nm14 + " meters while still retaining lethal power.";
var br = [];
for (i = 0; i < 7; 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(document.createTextNode(name2));
element.appendChild(br[1]);
element.appendChild(br[2]);
element.appendChild(document.createTextNode(name3));
element.appendChild(document.createTextNode(name4));
element.appendChild(br[3]);
element.appendChild(br[4]);
element.appendChild(document.createTextNode(name6));
element.appendChild(br[5]);
element.appendChild(br[6]);
element.appendChild(document.createTextNode(name5));
document.getElementById("placeholder").appendChild(element);
}