mgtOgre.js (5581B)
1 var nm1 = ["c", "g", "j", "k", "m", "n", "r", "t", "v", "y", "z"]; 2 var nm2 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "uo", "uu", "ua", "ou", "au", "aa"]; 3 var nm3 = ["d", "dd", "dg", "dr", "g", "gr", "gg", "gd", "gz", "gv", "k", "kk", "kd", "kz", "kv", "kr", "lk", "lg", "lkr", "lz", "ldr", "lg", "lgr", "ng", "ngr", "nd", "ndr", "nr", "r", "rd", "rb", "rk", "rz", "rg", "rgr", "rg", "rkr", "rn", "rz", "sg", "sgr", "z", "zc", "zcr", "zd", "zg", "zgr", "zk", "zkr"]; 4 var nm4 = ["c", "d", "k", "l", "m", "n", "s", "sh", "t", "th", "z"]; 5 var nm5 = ["c", "d", "g", "k", "n", "r", "t", "th"]; 6 var nm6 = ["c", "d", "g", "k", "n", "r", "s"]; 7 var nm7 = ["amber", "ash", "battle", "blaze", "blood", "bone", "boulder", "burn", "burning", "cinder", "dark", "dead", "death", "doom", "ember", "fire", "flame", "fuse", "gloom", "gore", "grim", "grizzly", "hell", "hollow", "molten", "mourn", "nether", "poison", "pyre", "rage", "rough", "rumble", "saur", "saw", "serpent", "shade", "shadow", "skull", "slate", "slaughter", "stone", "storm", "thunder", "titan", "twilight", "void", "war", "wild"]; 8 var nm8 = ["bane", "belly", "blade", "blaze", "blight", "blood", "bone", "breath", "chewer", "cleaver", "crest", "crusher", "curse", "doom", "eye", "eyes", "fall", "field", "fire", "flame", "flayer", "force", "forge", "fury", "gaze", "gazer", "gloom", "hell", "hole", "house", "howl", "lash", "limb", "mourn", "rage", "reaper", "reaver", "ripper", "roar", "scar", "stride", "tooth"]; 9 var nm9 = ["Aggressor", "Annihilator", "Arsonist", "Assassin", "Barbarian", "Battler", "Berserker", "Bleeder", "Bouncer", "Brawler", "Bruiser", "Brute", "Bully", "Champion", "Charmer", "Contender", "Destroyer", "Diabolist", "Dragger", "Enforcer", "Eradicator", "Fighter", "Flailer", "Freebooter", "Gatecrasher", "Gladiator", "Guardian", "Heavy", "Hireling", "Hulk", "Invader", "Maniac", "Marauder", "Mercenary", "Oaf", "Ogre", "Oozer", "Outlaw", "Pillager", "Pummeler", "Pyromaniac", "Rager", "Raider", "Renegade", "Savage", "Scrapper", "Sentry", "Shaman", "Slugger", "Slumlord", "Tanker", "Taskmaster", "Tyrant", "Vandal", "Warbrute", "Ward", "Warlord", "Warrior", "Wildcat", "Wrecker"]; 10 var nm10 = ["Aggravated", "Aggressive", "Agitated", "Angry", "Anguished", "Barrage", "Bitter", "Blissful", "Blood", "Bloodthirsty", "Bold", "Bossy", "Bruised", "Careless", "Colossal", "Corrupt", "Corrupted", "Crazed", "Crooked", "Cruel", "Crypt", "Defiant", "Delirious", "Drooling", "Energetic", "Enormous", "Enraged", "Exhausted", "Fearless", "Foolish", "Forsaken", "Frenzied", "Frightening", "Grave", "Greedy", "Grim", "Heartless", "Hulking", "Hungry", "Husky", "Idle", "Infernal", "Insane", "Jumbo", "Limping", "Livid", "Lone", "Mad", "Marsh", "Mausoleum", "Menacing", "Monstrous", "Noxious", "Rash", "Reckless", "Robust", "Savage", "Shady", "Tomb", "Tough", "Towering", "Treasonous", "Vengeful", "Vicious", "Villainous", "Vindictive", "Violent", "Wicked", "Wild", "Wrathful", "Wrecking", "Wretched"]; 11 var br = ""; 12 13 function nameGen() { 14 $('#placeholder').css('textTransform', 'capitalize'); 15 var element = document.createElement("div"); 16 element.setAttribute("id", "result"); 17 for (i = 0; i < 10; i++) { 18 if (i < 6) { 19 rnd6 = Math.floor(Math.random() * nm5.length); 20 rnd7 = Math.floor(Math.random() * nm2.length); 21 rnd8 = Math.floor(Math.random() * nm6.length); 22 if (i % 2 === 0) { 23 lName = nm5[rnd6] + nm2[rnd7] + nm6[rnd8]; 24 } else { 25 rnd9 = Math.floor(Math.random() * nm3.length); 26 rnd10 = Math.floor(Math.random() * nm2.length); 27 while (nm3[rnd9] === nm5[rnd6]) { 28 rnd9 = Math.floor(Math.random() * nm3.length); 29 } 30 lName = nm5[rnd6] + nm2[rnd7] + nm3[rnd9] + nm2[rnd10] + nm6[rnd8]; 31 } 32 rnd = Math.floor(Math.random() * nm1.length); 33 rnd2 = Math.floor(Math.random() * nm2.length); 34 rnd3 = Math.floor(Math.random() * nm4.length); 35 if (i < 3) { 36 names = nm1[rnd] + nm2[rnd2] + nm4[rnd3] + " " + lName; 37 } else { 38 rnd4 = Math.floor(Math.random() * nm3.length); 39 rnd5 = Math.floor(Math.random() * nm2.length); 40 while (nm3[rnd4] === nm1[rnd]) { 41 rnd4 = Math.floor(Math.random() * nm3.length); 42 } 43 names = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm2[rnd5] + nm4[rnd3] + " " + lName; 44 } 45 } else if (i < 8) { 46 rnd = Math.floor(Math.random() * nm7.length); 47 rnd2 = Math.floor(Math.random() * nm8.length); 48 while (nm7[rnd] === nm8[rnd2]) { 49 rnd2 = Math.floor(Math.random() * nm8.length); 50 } 51 rnd3 = Math.floor(Math.random() * nm9.length); 52 names = nm7[rnd] + nm8[rnd2] + " " + nm9[rnd3]; 53 } else { 54 rnd = Math.floor(Math.random() * nm10.length); 55 rnd2 = Math.floor(Math.random() * nm9.length); 56 names = nm10[rnd] + " " + nm9[rnd2]; 57 } 58 br = document.createElement('br'); 59 element.appendChild(document.createTextNode(names)); 60 element.appendChild(br); 61 } 62 if (document.getElementById("result")) { 63 document.getElementById("placeholder").removeChild(document.getElementById("result")); 64 } 65 document.getElementById("placeholder").appendChild(element); 66 }