offline-fantasy-name-generators

Offline version of www.fantasynamegenerators.com
git clone https://git.neptards.moe/neptards/offline-fantasy-name-generators.git
Log | Files | Refs | README

mgtEldrazi.js (5592B)


      1 var nm1 = ["c", "d", "g", "k", "m", "n", "r", "t", "v", "z"];
      2 var nm2 = ["a", "e", "i", "o", "u"];
      3 var nm3 = ["j", "k", "l", "lm", "ln", "lr", "ll", "ld", "m", "mr", "ml", "mk", "mr", "md", "mm", "mn", "n", "ng", "nd", "nl", "nk", "nr", "nn", "rl", "rn", "rm", "rz", "rr", "r", "s", "sl", "sr", "z", "zg", "zr"];
      4 var nm4 = ["c", "d", "g", "k", "l", "m", "n", "r", "t"];
      5 var nm5 = ["d", "g", "l", "k"];
      6 var nm6 = ["Abandoned", "Acidic", "Advanced", "Aged", "Aggressive", "Anguished", "Arid", "Barrage", "Bitter", "Bleak", "Blight", "Blind", "Blinding", "Broken", "Brood", "Bulky", "Bumpy", "Careless", "Catacomb", "Chittering", "Colossal", "Corrupt", "Corrupted", "Crypt", "Cryptic", "Culling", "Deaf", "Deathless", "Defiant", "Delirious", "Dimensional", "Disfigured", "Distended", "Dread", "Dreary", "Droopy", "Dust", "Elder", "Endless", "Energetic", "Essence", "Eternal", "Eyeless", "Fathom", "Fibrous", "Fickle", "Forked", "Forsaken", "Fragrant", "Gaseous", "Glistening", "Gloomy", "Glossy", "Grave", "Gravity", "Great", "Grim", "Grubby", "Gruesome", "Haunting", "Havoc", "Hidden", "Hideous", "Hollow", "Howling", "Hungry", "Icky", "Impish", "Incubator", "Juicy", "Lone", "Lumpy", "Matter", "Measly", "Mind", "Mindless", "Mist", "Monstrous", "Murk", "Mushy", "Nest", "Nettle", "Nightmare", "Noxious", "Oblivion", "Pale", "Paltry", "Parched", "Prickly", "Prie", "Pungent", "Puny", "Putrid", "Ragged", "Reckless", "Repulsive", "Robust", "Rotten", "Ruin", "Ruination", "Salvage", "Scrawny", "Silent", "Sinuous", "Sky", "Slaughter", "Sludge", "Smothering", "Squiggly", "Stalking", "Swift", "Thought", "Tide", "Tomb", "Vexing", "Vicious", "Vile", "Violent", "Void", "Warped", "Wicked", "Wrathful", "Wretched", "Writhing"];
      7 var nm7 = ["Abolisher", "Abomination", "Aggregate", "Attendant", "Bane", "Behemoth", "Breaker", "Butcher", "Carver", "Conduit", "Crawler", "Cruiser", "Crusher", "Defiler", "Depleter", "Despoiler", "Devastator", "Displacer", "Drifter", "Drone", "Eldrazi", "Entangler", "Feeder", "Fiend", "Forerunner", "Grafter", "Gryff", "Harvester", "Hatcher", "Herald", "Herder", "Host", "Hulk", "Hunter", "Immobilizer", "Infiltrator", "Intruder", "Invader", "Lurker", "Marauder", "Maw", "Mimic", "Monitor", "Monster", "Negator", "Oracle", "Pathfinder", "Predator", "Prophet", "Rager", "Raker", "Razer", "Reclaimer", "Redeemer", "Reshaper", "Sage", "Scion", "Scourer", "Scourge", "Scout", "Scuttler", "Seer", "Sentinel", "Shaper", "Shrieker", "Sifter", "Skimmer", "Skitterer", "Smasher", "Sower", "Spawn", "Spawner", "Stalker", "Strangler", "Strider", "Summoner", "Titan", "Twin", "Tyrant", "Walker", "Warden", "Watcher", "Winnower"];
      8 var nm8 = ["Anarchy", "Armies", "Atrophy", "Barbarism", "Blitz", "Blood", "Bloodbaths", "Bloodshed", "Bones", "Butchery", "Carnage", "Chaos", "Death", "Decay", "Demolition", "Depravity", "Destruction", "Devastation", "Discord", "Dismay", "Dread", "Entropy", "Extermination", "Extinction", "Fear", "Flesh", "Gore", "Havoc", "Horror", "Legions", "Malice", "Massacres", "Nightmares", "Plasma", "Ruin", "Ruination", "Sadism", "Savagery", "Silence", "Sinew", "Skulls", "Slaughter", "Spite", "Subjugation", "Terror", "Torment", "Turmoil", "Venom", "Voids", "Wreckages", "the End", "the Hollow", "the Void", "the Wastes"];
      9 var br = "";
     10 
     11 function nameGen() {
     12     $('#placeholder').css('textTransform', 'capitalize');
     13     var element = document.createElement("div");
     14     element.setAttribute("id", "result");
     15     for (i = 0; i < 10; i++) {
     16         if (i < 6) {
     17             if (i % 2 === 0) {
     18                 rnd = Math.random() * nm6.length | 0;
     19                 rnd2 = Math.random() * nm7.length | 0;
     20                 lName = nm6[rnd] + " " + nm7[rnd2];
     21             } else {
     22                 rnd = Math.random() * nm7.length | 0;
     23                 rnd2 = Math.random() * nm8.length | 0;
     24                 lName = nm7[rnd] + " of " + nm8[rnd2];
     25             }
     26             rnd = Math.random() * nm1.length | 0;
     27             rnd2 = Math.random() * nm2.length | 0;
     28             rnd3 = Math.random() * nm3.length | 0;
     29             rnd4 = Math.random() * nm2.length | 0;
     30             rnd5 = Math.random() * nm5.length | 0;
     31             while (nm3[rnd3] === nm1[rnd]) {
     32                 rnd = Math.random() * nm1.length | 0;
     33             }
     34             while (nm3[rnd3] === nm5[rnd5]) {
     35                 rnd5 = Math.random() * nm5.length | 0;
     36             }
     37             if (i < 3) {
     38                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm5[rnd5] + ", " + lName;
     39             } else {
     40                 rnd6 = Math.random() * nm4.length | 0;
     41                 rnd7 = Math.random() * nm2.length | 0;
     42                 while (nm4[rnd6] === nm5[rnd5]) {
     43                     rnd6 = Math.random() * nm4.length | 0;
     44                 }
     45                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd6] + nm2[rnd7] + nm5[rnd5] + ", " + lName;
     46             }
     47         } else if (i < 8) {
     48             rnd = Math.random() * nm6.length | 0;
     49             rnd2 = Math.random() * nm7.length | 0;
     50             names = nm6[rnd] + " " + nm7[rnd2];
     51         } else {
     52             rnd = Math.random() * nm7.length | 0;
     53             rnd2 = Math.random() * nm8.length | 0;
     54             names = nm7[rnd] + " of " + nm8[rnd2];
     55         }
     56         br = document.createElement('br');
     57         element.appendChild(document.createTextNode(names));
     58         element.appendChild(br);
     59     }
     60     if (document.getElementById("result")) {
     61         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     62     }
     63     document.getElementById("placeholder").appendChild(element);
     64 }