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

mgtAngels.js (4634B)


      1 var nm1 = ["", "", "", "", "", "b", "br", "d", "g", "h", "j", "k", "l", "m", "n", "r", "s", "t"];
      2 var nm2 = ["a", "e", "i", "o", "u", "a", "e", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "a", "e", "i", "au", "ia", "ie", "io", "aa"];
      3 var nm3 = ["br", "c", "dr", "g", "k", "kr", "kn", "l", "ll", "ln", "lm", "m", "my", "n", "nv", "ny", "r", "rr", "s", "v", "y", "z"];
      4 var nm4 = ["c", "l", "ll", "m", "n", "nr", "ndr", "r", "rd", "rn", "rl", "s", "ss", "sn", "t", "th", "z"];
      5 var nm5 = ["", "", "", "", "", "", "", "h", "l", "n"];
      6 var nm6 = ["Angel", "Cerberus", "Champion", "Curator", "Guardian", "Herald", "Keeper", "Magister", "Reaper", "Sentinel", "Seraph", "Shepherd", "Shield", "Voice"];
      7 var nm7 = ["All", "Authority", "Balance", "Battle", "Blood", "Bones", "Carnage", "Chains", "Chance", "Change", "Dawn", "Death", "Deliverance", "Desire", "Despair", "Destruction", "Discovery", "Dread", "Dusk", "Duty", "Existence", "Finality", "Fury", "Grace", "Guidance", "Harmony", "Health", "Invention", "Iron", "Jubilation", "Justice", "Knowledge", "Law", "Light", "Memories", "Mercy", "Pleasure", "Power", "Punishment", "Purpose", "Regret", "Reason", "Renewal", "Retribution", "Scales", "Serenity", "Servitude", "Shades", "Shadows", "Silence", "Silver", "Smoke", "Solitude", "Sustenance", "Thrills", "Time", "Twilight", "War", "Wealth", "Worth", "Wrath", "the Blade", "the Crown", "the Feast", "the Flame", "the Flock", "the Inferno", "the Light", "the Masses", "the Morning", "the Nether", "the Provinces", "the Realm", "the Shield", "the Sword", "the Wild"];
      8 var nm8 = ["Adept", "Aged", "Agile", "Ancient", "Austere", "Battle", "Belated", "Bitter", "Blood", "Bone", "Brilliant", "Careless", "Chain", "Colossal", "Cruel", "Deathless", "Defiant", "Delirious", "Deserted", "Desire", "Desolation", "Devoted", "Diligent", "Dread", "Elegant", "Emancipation", "Enormous", "Enraged", "Exalted", "Fallen", "Flame", "Flawless", "Forsaken", "Gargantuan", "Giant", "Gleaming", "Glorious", "Golden", "Graceful", "Gracious", "Grand", "Grim", "Guardian", "Harmonious", "Hidden", "Hollow", "Illustrious", "Impure", "Infernal", "Infinite", "Juvenile", "Light", "Livid", "Lone", "Lonely", "Luminous", "Lustrous", "Magnificent", "Majestic", "Merciless", "Mindless", "Monstrous", "Mysterious", "Prime", "Radiant", "Serene", "Shady", "Silent", "Silver", "Skeletal", "Storm", "Twilight", "Twin", "Unknown", "Vengeful", "Vigilant", "Violent", "Watchful", "Whirlwind", "Wicked", "Wrathful", "Wretched"];
      9 var nm9 = ["Angel", "Cerberus", "Champion", "Curator", "Guardian", "Herald", "Keeper", "Reaper", "Sentinel", "Seraph"];
     10 var br = "";
     11 
     12 function nameGen() {
     13     $('#placeholder').css('textTransform', 'capitalize');
     14     var element = document.createElement("div");
     15     element.setAttribute("id", "result");
     16     for (i = 0; i < 10; i++) {
     17         if (i < 6) {
     18             rnd = Math.floor(Math.random() * nm1.length);
     19             rnd2 = Math.floor(Math.random() * nm2.length);
     20             rnd3 = Math.floor(Math.random() * nm3.length);
     21             rnd4 = Math.floor(Math.random() * nm2.length);
     22             rnd5 = Math.floor(Math.random() * nm5.length);
     23             rnd6 = Math.floor(Math.random() * nm6.length);
     24             rnd7 = Math.floor(Math.random() * nm7.length);
     25             if (i < 3) {
     26                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm5[rnd5] + ", " + nm6[rnd6] + " of " + nm7[rnd7];
     27             } else {
     28                 rnd8 = Math.floor(Math.random() * nm4.length);
     29                 rnd9 = Math.floor(Math.random() * nm2.length);
     30                 while (nm4[rnd8] === nm3[rnd3]) {
     31                     rnd8 = Math.floor(Math.random() * nm4.length);
     32                 }
     33                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd8] + nm2[rnd9] + nm5[rnd5] + ", " + nm6[rnd6] + " of " + nm7[rnd7];
     34             }
     35         } else if (i < 8) {
     36             rnd = Math.floor(Math.random() * nm6.length);
     37             rnd2 = Math.floor(Math.random() * nm7.length);
     38             names = nm6[rnd] + " of " + nm7[rnd2];
     39         } else {
     40             rnd = Math.floor(Math.random() * nm8.length);
     41             rnd2 = Math.floor(Math.random() * nm9.length);
     42             names = nm8[rnd] + " " + nm9[rnd2];
     43         }
     44         br = document.createElement('br');
     45         element.appendChild(document.createTextNode(names));
     46         element.appendChild(br);
     47     }
     48     if (document.getElementById("result")) {
     49         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     50     }
     51     document.getElementById("placeholder").appendChild(element);
     52 }