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.
54 lines
4.2 KiB
JavaScript
54 lines
4.2 KiB
JavaScript
var nm1 = ["", "", "", "", "", "b", "bh", "c", "d", "g", "g'k", "h", "m", "n", "p", "t", "t'", "th", "thw", "v", "y", "z"];
|
|
var nm2 = ["a", "a", "a", "a", "e", "i", "o", "u", "ua", "au", "ai"];
|
|
var nm3 = ["'dt", "'dq", "'s", "'st", "'stb", "'k", "'t", "'th", "'yt", "h'k", "n'dch", "'j", "hn'th", "n't", "ch", "d", "dt", "g", "ht", "hr", "k", "nk", "t", "th", "y"];
|
|
var nm4 = ["a", "a", "a", "a", "e", "i", "o", "u", "ea", "ei", "ou", "ui"];
|
|
var nm5 = ["d", "dh", "l", "n", "nd", "r", "t"];
|
|
var nm6 = ["", "", "", "", "", "", "b", "h", "ll", "n", "p", "th"];
|
|
var nm7 = ["a", "a", "a", "a", "e", "i", "o", "u"];
|
|
var nm8 = ["adapting", "advancing", "agile", "ancient", "angry", "attacking", "banishing", "barraging", "bellowing", "berserk", "black", "blinding", "blood", "bolstering", "brave", "bright", "brown", "carving", "cleaving", "cold", "commanding", "conquering", "corrupting", "crackling", "cruel", "cunning", "dark", "deadly", "defiant", "defiling", "destroying", "different", "disturbing", "dividing", "eager", "enraged", "fearless", "forging", "forsaken", "free", "gifted", "glorious", "grand", "grave", "hollow", "honor", "igniting", "impaling", "infernal", "lingering", "little", "lurking", "macabre", "mad", "marked", "menacing", "merging", "mourning", "night", "observing", "overpowering", "piercing", "prime", "prowling", "punishing", "radiant", "radiating", "ravaging", "reigning", "relentless", "rushing", "ruthless", "scorching", "screaming", "shadow", "shrieking", "silent", "sly", "sneaking", "stalking", "stark", "straight", "supreme", "surprising", "swift", "terrifying", "thundering", "thunderous", "vanishing", "vanquishing", "victorious", "void", "volatile", "wandering", "warped", "warping", "whispering", "wicked", "wild", "wrangling", "wrathful", "wretched"];
|
|
var nm9 = ["aspect", "assailant", "assassin", "band", "bayonet", "blade", "blood", "brass", "brawler", "brawn", "bruiser", "butcher", "chain", "chains", "champion", "chaser", "combatant", "courage", "cutter", "dagger", "death", "drive", "edge", "fight", "fighter", "flame", "force", "hawker", "hero", "hunter", "javelin", "knife", "machete", "mask", "mercenary", "might", "militant", "one", "pike", "pride", "purpose", "quill", "quiver", "requiem", "sabre", "scalpel", "spear", "stalker", "strength", "strike", "sword", "tanker", "thrill", "trapper", "trooper", "warlord", "warrior", "watch"];
|
|
var br = "";
|
|
|
|
function nameGen(type) {
|
|
$('#placeholder').css('textTransform', 'capitalize');
|
|
var tp = type;
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (i < 6) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
rnd3 = Math.random() * nm3.length | 0;
|
|
rnd4 = Math.random() * nm4.length | 0;
|
|
rnd5 = Math.random() * nm6.length | 0;
|
|
if (i < 2) {
|
|
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm6[rnd5];
|
|
} else if (i < 4) {
|
|
rnd6 = Math.random() * nm7.length | 0;
|
|
rnd7 = Math.random() * nm5.length | 0;
|
|
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm7[rnd6] + nm5[rnd7] + nm6[rnd5];
|
|
} else {
|
|
rnd6 = Math.random() * nm1.length | 0;
|
|
rnd7 = Math.random() * nm2.length | 0;
|
|
rnd8 = Math.random() * nm6.length | 0;
|
|
if (i < 5) {
|
|
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm6[rnd5] + "-" + nm1[rnd6] + nm2[rnd7] + nm6[rnd8];
|
|
} else {
|
|
names = nm1[rnd6] + nm2[rnd7] + nm6[rnd8] + "-" + nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm6[rnd5];
|
|
}
|
|
}
|
|
} else {
|
|
rnd = Math.random() * nm8.length | 0;
|
|
rnd2 = Math.random() * nm9.length | 0;
|
|
names = nm8[rnd] + " " + nm9[rnd2];
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(names));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|