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.
68 lines
8.1 KiB
JavaScript
68 lines
8.1 KiB
JavaScript
function nameGen() {
|
|
var nm1 = ["very small", "small", "small", "fairy small", "fairly small", "average", "fairly large", "fairly large", "large", "large", "very large"];
|
|
var nm2 = ["pistol", "double-barreled pistol", "derringer", "pepperbox", "double-barreled derringer", "double-barreled pepperbox", "revolver", "semi-automatic pistol", "machine pistol", "revolver", "revolver", "pistol"];
|
|
var nm3 = ["a beloved choice", "a celebrated pick", "a common choice", "a famous model", "a favorable model", "a favored pick", "a leading choice", "a noteworthy choice", "a peculiar choice", "a pleasing choice", "a popular choice", "a preferred model", "a preferred option", "a prominent choice", "a sought after model", "a suitable choice", "a well-liked model", "an eccentric choice", "an exceptional choice", "an extraordinary model", "an in demand model", "an often promoted choice", "an uncommon pick"];
|
|
var nm4 = ["civilians looking for a little extra protection", "civilians looking to expand their existing collection", "civilians looking for their first firearm", "civilians who wish to feel a little safer at night", "civilians looking for a well rounded model", "civilians who need an effective way to protect themselves", "civilians who just want a nice extra piece for their collection", "civilians who need an easy to train with model", "civilians who need a more powerful model", "civilians who are looking for a fun model", "service people who require extra fire power", "service people who need a more reliable model", "service people looking for a well rounded secondary piece", "service people in need of an easy to hide model", "service people who just want more than the standard"];
|
|
var nm5 = ["light", "balanced", "fairly light", "decent", "stable", "counterbalanced", "delicate", "significant", "substantial", "average", "decent", "subtle"];
|
|
var nm6 = ["easy", "very easy", "fairly easy", "quite easy", "not too difficult", "simple", "straightforward", "not demanding", "not very demanding", "not hard"];
|
|
var nm7 = ["packs a punch", "packs a big bunch", "has a lot of power", "has a decent amount of firepower", "brings a lot of firepower", "brings a good amount of firepower", "has a fair amount of firepower", "has a great amount of firepower"];
|
|
var nm8 = ["with deadly precision", "with great accuracy", "with a nice accuracy", "with good precision", "with very good precision", "with excellent accuracy", "with extraordinary precision", "with tremendous precision", "with high precision", "with extreme accuracy"];
|
|
var nm9 = ["an expensive wooden grip", "an ivory grip", "a wooden grip", "a cheaper wooden grip", "a metal grip", "a plastic grip", "an expensive metal grip", "a cheaper metal grip"];
|
|
var nm10 = ["optional engravings at the bottom", "optional engravings at the top", "expensive decorations", "decorational gems", "decorational horns", "decorations made of horn", "decorations made of ivory", "ivory decorations", "no decorations added to it", "metalwork decorations", "gilded decorations"];
|
|
var nm11 = ["a standard", "a heavy duty", "a light duty", "an expensive metal", "a cheaper metal", "a medium duty"];
|
|
var nm12 = ["engraved", "gilded", "decorated", "inscribed", "ornamented", "etched"];
|
|
var nm13 = ["a gift", "a testing project", "an alternative version of another weapon", "a makeshift weapon", "a hobby", "secret technology project", "a cheaper alternative to another version", "a more basic version of another weapon", "a means to win a contest", "a result of a bet", "a test of the designer's abilities"];
|
|
var nm14 = ["became popular across the world", "became popular in many countries", "became famous across the world", "became infamous across the world", "turned into a popular weapon around the world", "turned into a new hype in many countries", "became a known name across the world", "turned into a huge mass production project", "became a household name among gun owners", "turned into a serious weapon with huge sales"];
|
|
var nm15 = ["many military forces", "a lot of civil protection forces", "many recreational gun owners", "many enthusiastic gun owners", "gangs and civil forces alike", "both civilians and the military", "many hunters around the world", "various civil protection forces", "various military branches", "many hired protection forces"];
|
|
var nm16 = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
var nm17 = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
|
|
var nm18 = ["Amigo", "Amnesia", "Blackout", "Comet", "Crimson", "Cruiser", "Dawn", "Deadeye", "Dominion", "Echo", "Eclipse", "Enigma", "Envy", "Frenzy", "Fury", "Justice", "Lightning", "Limbo", "Lockjaw", "Malice", "Midnight", "Nightmare", "Pendulum", "Popeye", "Scar", "Serenity"];
|
|
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 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 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 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 rnd16a = parseInt(Math.floor(Math.random() * nm16.length));
|
|
var rnd16b = parseInt(Math.floor(Math.random() * nm16.length));
|
|
var rnd17a = parseInt(Math.floor(Math.random() * nm17.length));
|
|
var rnd18 = parseInt(Math.floor(Math.random() * nm18.length));
|
|
var name = "This " + nm1[rnd1] + " " + nm2[rnd2] + " is " + nm3[rnd3] + " amongsts " + nm4[rnd4] + ".";
|
|
var name2 = "Its " + nm5[rnd5] + " weight makes it " + nm6[rnd6] + " to handle. It " + nm7[rnd7] + " " + nm8[rnd8] + ".";
|
|
var name3 = "This particular " + nm2[rnd2] + " comes with " + nm9[rnd9] + ", with " + nm10[rnd10] + " and " + nm11[rnd11] + " barrel, which could be " + nm12[rnd12] + " if so desired.";
|
|
var name4 = "This weapon was originally designed as " + nm13[rnd13] + ", but it soon " + nm14[rnd14] + " and is now in use by " + nm15[rnd15] + ".";
|
|
var name5 = "Its official name is the " + nm16[rnd16] + nm17[rnd17] + "-" + nm16[rnd16a] + nm16[rnd16b] + nm17[rnd17a] + ", but it generall goes by its unofficial name: " + nm18[rnd18] + ".";
|
|
var br = [];
|
|
for (i = 0; i < 6; 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(br[2]);
|
|
element.appendChild(document.createTextNode(name3));
|
|
element.appendChild(br[3]);
|
|
element.appendChild(br[4]);
|
|
element.appendChild(document.createTextNode(name4));
|
|
element.appendChild(br[5]);
|
|
element.appendChild(document.createTextNode(name5));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|