daedricNames.js (4346B)
1 var nm1 = ["b", "br", "c", "cr", "ch", "d", "dr", "g", "gr", "j", "k", "kr", "kn", "km", "p", "pr", "q", "qr", "r", "st", "str", "t", "tr", "v", "vr", "w", "wr", "x", "z", "zr", "", "", "", "", ""]; 2 var nm2 = ["a", "e", "i", "o", "u", "y", "au", "ou", "ei", "uy", "oe", "ua", "ue", "uo", "a", "e", "i", "o", "u", "y"]; 3 var nm3 = ["b", "c", "d", "g", "j", "k", "l", "m", "p", "q", "r", "s", "t", "v", "w", "x", "z", "br", "cr", "dr", "gr", "kr", "km", "pr", "qr", "st", "tr", "xx", "g", "q'", "k'", "rr", "r'", "t'", "tt", "vv", "v'", "x'", "z'", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]; 4 var nm4 = ["a", "e", "i", "o", "u", "", "", "", "", "", ""]; 5 var nm5 = ["ag", "ah", "al", "ala", "alag", "ath", "bal", "cath", "cius", "cus", "dea", "dia", "hala", "icus", "ina", "ine", "ira", "ite", "lag", "maeus", "mina", "nal", "nes", "oth", "rath", "roth", "unes", "ura", "us", "vus", "yite", ]; 6 var nm6 = ["b", "bl", "c", "cl", "ch", "d", "f", "fr", "fl", "g", "gl", "gn", "h", "kl", "kn", "m", "n", "p", "pl", "ph", "q", "ql", "s", "st", "sl", "t", "v", "vl", "w", "z", "", "", "", "", ""]; 7 var nm7 = ["a", "e", "i", "o", "u", "y", "ae", "ea", "eo", "oe", "ie", "ue", "ua", "a", "e", "i", "o", "u", "y"]; 8 var nm8 = ["b", "c", "f", "g", "h", "k", "l", "m", "n", "p", "q", "r", "s", "w", "bb", "bl", "ff", "fl", "gl", "gn", "hh", "hs", "hl", "hn", "hm", "ks", "ll", "lh", "kh", "bh", "ch", "dh", "lm", "ln", "lf", "mm", "mn", "ms", "nn", "ns", "p", "ph", "ps", "rf", "ss", "st", "sh", "th", "ts", "s'", "l'", "n'", "m'", "f'", "h'"]; 9 var nm9 = ["a", "e", "i", "o", "u", "y", "", "", "", "", "", ""]; 10 var nm10 = ["ag", "ah", "al", "ala", "alag", "ath", "bal", "cath", "cius", "cus", "dea", "dia", "hala", "icus", "ina", "ine", "ira", "ite", "lag", "maeus", "mina", "nal", "nes", "oth", "rath", "roth", "unes", "ura", "us", "vus", "yite"]; 11 var nm11 = ["Insomnia", "Lunacy", "Luna", "Mania", "Phobia", "Luna", "Solar", "Dementia", "Hysteria", "Delirium", "Pedigree", "Bane", "Anathema", "Grace", "Hope", "Malison", "Misery", "Blight", "Poison", "Venom", "Calamity", "Malificent", "Sinister", "Grim", "Gloom", "Dire", "Malign", "Malefic", "Joy", "Nova", "Misty", "Dusk", "Dawn", "Twilight", "Rogue", "Ominous", "Vile", "Nefarious", "Melancholy", "Saturnine", "Solemn", "Glum", "Austere", "Morose", "Surly", "Brusque", "Gruff", "Demise", "Necrosis", "Silence", "Enigma", "Virulence", "Spite", "Malign", "Storm", "Serene", "Harmony", "Strife", "Striker", "Sloth", "Drowsy", "Supine", "Laggard"]; 12 13 function nameGen() { 14 $('#placeholder').css('textTransform', 'capitalize'); 15 var br = ""; 16 var element = document.createElement("div"); 17 element.setAttribute("id", "result"); 18 for (i = 0; i < 10; i++) { 19 if (i < 4) { 20 rnd = Math.floor(Math.random() * nm1.length); 21 rnd2 = Math.floor(Math.random() * nm2.length); 22 rnd3 = Math.floor(Math.random() * nm3.length); 23 rnd4 = Math.floor(Math.random() * nm4.length); 24 if (rnd3 < 46) { 25 while (rnd4 > 5) { 26 rnd4 = parseInt(Math.floor((Math.random() * nm4.length))); 27 } 28 } 29 rnd5 = Math.floor(Math.random() * nm5.length); 30 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm5[rnd5]; 31 } else if (i < 8) { 32 rnd = Math.floor(Math.random() * nm6.length); 33 rnd2 = Math.floor(Math.random() * nm7.length); 34 rnd3 = Math.floor(Math.random() * nm8.length); 35 rnd4 = Math.floor(Math.random() * nm9.length); 36 if (rnd3 < 46) { 37 while (rnd4 > 5) { 38 rnd4 = parseInt(Math.floor((Math.random() * nm4.length))); 39 } 40 } 41 rnd5 = Math.floor(Math.random() * nm10.length); 42 names = nm6[rnd] + nm7[rnd2] + nm8[rnd3] + nm9[rnd4] + nm10[rnd5]; 43 } else { 44 rnd = Math.floor(Math.random() * nm11.length); 45 names = nm11[rnd]; 46 } 47 br = document.createElement('br'); 48 element.appendChild(document.createTextNode(names)); 49 element.appendChild(br); 50 } 51 if (document.getElementById("result")) { 52 document.getElementById("placeholder").removeChild(document.getElementById("result")); 53 } 54 document.getElementById("placeholder").appendChild(element); 55 }