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.
139 lines
9.1 KiB
JavaScript
139 lines
9.1 KiB
JavaScript
var nm1 = ["", "", "", "", "b", "bl", "c", "ch", "cr", "d", "dr", "f", "g", "gr", "h", "k", "kl", "l", "m", "p", "phl", "q", "r", "rh", "s", "sh", "tch", "th", "v"];
|
|
var nm2 = ["oo", "au", "y", "a", "e", "i", "o", "a", "e", "i", "o", "u"];
|
|
var nm3 = ["d", "d", "d", "dr", "g", "gl", "gr", "h", "h", "l", "l", "l", "lc", "m", "m", "m", "mb", "mdr", "mv", "n", "n", "n", "nd", "ph", "r", "r", "r", "rg", "rgh", "rgr", "rkr", "rm", "rr", "rv", "sh", "shc", "shr", "th", "z", "zz"];
|
|
var nm4 = ["ae", "au", "ai", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o"];
|
|
var nm5 = ["c", "d", "g", "kk", "l", "ll", "m", "mm", "n", "r", "rh", "s", "t", "th", "x", "dr", "gr", "nd", "ndr", "ngr", "rd", "rhr", "rn", "rt", "sn", "st", "tn", "tr", "thr"];
|
|
var nm6 = ["ia", "aa", "au", "eo", "a", "e", "i", "o", "o", "u", "a", "e", "i", "o", "o", "u", "a", "e", "i", "o", "o", "u", "a", "e", "i", "o", "o", "u", "a", "e", "i", "o", "o", "u"];
|
|
var nm7 = ["", "", "", "", "c", "d", "g", "k", "kk", "m", "n", "n", "r", "rh", "rk", "s", "s", "th", "th", "x", "z", "zz"];
|
|
var nm8 = ["", "", "", "f", "h", "l", "m", "n", "r", "s", "sc", "sh", "th", "thr", "v", "z"];
|
|
var nm9 = ["y", "a", "e", "i", "o", "a", "e", "i", "o"];
|
|
var nm10 = ["b", "d", "dr", "g", "gr", "l", "lv", "m", "n", "nd", "ng", "r", "rl", "rlg", "rm", "rs", "st", "thr", "x", "z"];
|
|
var nm11 = ["oa", "aa", "au", "ea", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o", "a", "e", "i", "o"];
|
|
var nm12 = ["g", "hl", "hn", "k", "l", "p", "m", "n", "nn", "r", "x", "z", "cl", "dn", "dr", "fl", "fr", "nd", "nt", "ntr", "rd", "rg", "rgl", "rl", "sl", "sr", "thn", "thr"];
|
|
var nm13 = ["y", "a", "e", "i", "o", "a", "e", "i", "o"];
|
|
var nm14 = ["", "", "", "n", "r", "s", "th", "s", "th", "x"];
|
|
var nm20 = ["Alder", "Arrow", "Bad", "Bane", "Battle", "Big", "Blaze", "Blind", "Bold", "Bone", "Boulder", "Bright", "Broad", "Bull", "Burn", "Burning", "Cloud", "Cold", "Dark", "Dawn", "Dead", "Death", "Doom", "Dread", "Dream", "Dull", "Dusk", "Elder", "Even", "Far", "Fate", "Fear", "Fierce", "Fire", "Flame", "Free", "Frost", "Fury", "Ghost", "Gloom", "Glow", "Gnaw", "Grand", "Grave", "Great", "Grim", "Half", "Hallow", "Hollow", "Hypno", "Iron", "Keen", "Last", "Light", "Little", "Lone", "Long", "Mad", "Marble", "Master", "Mighty", "Mind", "Moon", "Night", "Nimble", "Odd", "Old", "Pale", "Phantom", "Power", "Prey", "Primal", "Prime", "Rage", "Ragged", "Rapid", "Rash", "Razor", "Rumble", "Shade", "Shadow", "Sheep", "Shiver", "Silent", "Silver", "Smug", "Somber", "Steel", "Stone", "Storm", "Stout", "Strong", "Sun", "Swift", "Terror", "Thunder", "Twin", "Whirl", "Wicked", "Wild"];
|
|
var nm21 = ["back", "beast", "belly", "brand", "breaker", "breath", "bringer", "brow", "claw", "claws", "cutter", "eye", "eyes", "fang", "fangs", "flayer", "flight", "fly", "forge", "forger", "glide", "grip", "hunter", "jaw", "mind", "mover", "reader", "ripper", "roar", "sight", "speaker", "striker", "tail", "teeth", "tooth", "watcher", "wing", "wings"];
|
|
var nm22 = ["Abandonded", "Actor", "Adept", "Admired", "Adored", "Aggressor", "Agile", "Alert", "Ambitious", "Ancient", "Anguished", "Anxious", "Architect", "Assassin", "Awful", "Beautiful", "Behemoth", "Bewitched", "Bitter", "Blind", "Bold", "Bright", "Brilliant", "Brilliant Mind", "Bringer of Death", "Broken", "Brute", "Butcher", "Calm", "Careful", "Careless", "Cautious", "Celebrated", "Champion", "Charming", "Clever", "Conjurer", "Corrupt", "Corrupted", "Corruptor", "Cruel", "Cunning", "Cursed", "Damned", "Dangerous", "Dark", "Dead", "Defiant", "Delirious", "Deserter", "Destroyer", "Disguised", "Enchanted", "Enchanting", "Enigma", "Enormous", "Eternal", "Exalted", "Executioner", "False", "Fearless", "Fierce", "Forsaken", "Fury", "Generous", "Gentle", "Giant", "Gifted", "Glorious", "Grand", "Grave", "Great", "Greedy", "Grim", "Hollow", "Hungry", "Hunter", "Ill Tempered", "Illustrious", "Immortal", "Infinite", "Innocent", "Judge", "Last", "Lost", "Lost Mind", "Mad", "Majestic", "Mammoth", "Maneater", "Maniac", "Manslayer", "Marked", "Massive", "Master", "Menace", "Mighty", "Nocturnal", "Oracle", "Paragon", "Patient", "Powerful", "Prophet", "Proud", "Quiet", "Razor", "Rich", "Rotten", "Serpent", "Silent", "Stalker", "Swift", "Terrible", "Tyrant", "Vengeful", "Vicious", "Victorious", "Vigilant", "Violent", "Voiceless One", "Warmonger", "Warrior", "Watcher", "Whisperer", "Wicked", "Wild", "Wise", "Wrathful", "Wretched"];
|
|
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) {
|
|
if (tp === 1) {
|
|
nameFem();
|
|
while (nMs === "") {
|
|
nameFem();
|
|
}
|
|
} else {
|
|
nameMas();
|
|
while (nMs === "") {
|
|
nameMas();
|
|
}
|
|
}
|
|
} else {
|
|
np = Math.random() * 2 | 0;
|
|
if (np === 0) {
|
|
rnd = Math.random() * nm22.length | 0;
|
|
nMs = "The " + nm22[rnd];
|
|
} else {
|
|
rnd = Math.random() * nm20.length | 0;
|
|
rnd2 = Math.random() * nm21.length | 0;
|
|
nMs = nm20[rnd] + nm21[rnd2];
|
|
}
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(nMs));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
|
|
function nameFem() {
|
|
nTp = Math.random() * 6 | 0;
|
|
rnd = Math.random() * nm8.length | 0;
|
|
rnd2 = Math.random() * nm9.length | 0;
|
|
rnd3 = Math.random() * nm14.length | 0;
|
|
rnd4 = Math.random() * nm10.length | 0;
|
|
rnd5 = Math.random() * nm11.length | 0;
|
|
rnd6 = Math.random() * nm12.length | 0;
|
|
rnd7 = Math.random() * nm13.length | 0;
|
|
while (nm10[rnd4] === nm12[rnd6] || nm12[rnd6] === nm14[rnd3]) {
|
|
rnd6 = Math.random() * nm12.length | 0;
|
|
}
|
|
if (nTp < 3) {
|
|
nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd6] + nm13[rnd7] + nm14[rnd3];
|
|
} else {
|
|
rnd8 = Math.random() * 12 | 0;
|
|
rnd9 = Math.random() * nm13.length | 0;
|
|
while (nm12[rnd6] === nm12[rnd8]) {
|
|
rnd6 = Math.random() * nm12.length | 0;
|
|
}
|
|
if (nTp == 3) {
|
|
nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd6] + nm13[rnd9] + nm12[rnd8] + nm13[rnd7] + nm14[rnd3];
|
|
} else if (nTp === 4) {
|
|
nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd8] + nm13[rnd9] + nm12[rnd6] + nm13[rnd7] + nm14[rnd3];
|
|
} else {
|
|
rnd6 = Math.random() * 12 | 0;
|
|
rnd10 = Math.random() * 12 | 0;
|
|
rnd11 = Math.random() * nm13.length | 0;
|
|
while (rnd10 === rnd8) {
|
|
rnd10 = Math.random() * 12 | 0;
|
|
}
|
|
nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd8] + nm13[rnd9] + nm12[rnd6] + nm13[rnd7] + nm12[rnd10] + nm13[rnd11] + nm14[rnd3];
|
|
}
|
|
}
|
|
testSwear(nMs);
|
|
}
|
|
|
|
function nameMas() {
|
|
nTp = Math.random() * 10 | 0;
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
rnd3 = Math.random() * nm7.length | 0;
|
|
rnd4 = Math.random() * nm3.length | 0;
|
|
rnd5 = Math.random() * nm4.length | 0;
|
|
if (nTp < 3) {
|
|
while (nm3[rnd4] === nm1[rnd] || nm3[rnd4] === nm7[rnd3]) {
|
|
rnd4 = Math.random() * nm3.length | 0;
|
|
}
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm7[rnd3];
|
|
} else {
|
|
rnd6 = Math.random() * nm5.length | 0;
|
|
rnd7 = Math.random() * nm6.length | 0;
|
|
while (nm3[rnd4] === nm5[rnd6] || nm5[rnd6] === nm7[rnd3]) {
|
|
rnd6 = Math.random() * nm5.length | 0;
|
|
}
|
|
if (nTp < 7) {
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6] + nm6[rnd7] + nm7[rnd3];
|
|
} else {
|
|
rnd8 = Math.random() * 15 | 0;
|
|
rnd9 = Math.random() * nm4.length | 0;
|
|
while (nm5[rnd6] === nm5[rnd8]) {
|
|
rnd6 = Math.random() * nm5.length | 0;
|
|
}
|
|
if (nTp === 7) {
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6] + nm4[rnd9] + nm5[rnd8] + nm6[rnd7] + nm7[rnd3];
|
|
} else if (nTp === 8) {
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd8] + nm4[rnd9] + nm5[rnd6] + nm6[rnd7] + nm7[rnd3];
|
|
} else {
|
|
rnd6 = Math.random() * 15 | 0;
|
|
rnd10 = Math.random() * 15 | 0;
|
|
rnd11 = Math.random() * nm4.length | 0;
|
|
while (rnd10 === rnd8) {
|
|
rnd10 = Math.random() * 15 | 0;
|
|
}
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd8] + nm4[rnd9] + nm5[rnd6] + nm4[rnd11] + nm5[rnd10] + nm6[rnd7] + nm7[rnd3];
|
|
}
|
|
}
|
|
}
|
|
testSwear(nMs);
|
|
}
|