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

mgtAvatars.js (4673B)


      1 var nm1 = ["c", "f", "g", "k", "n", "ph", "s", "th", "z"];
      2 var nm2 = ["a", "e", "o", "a", "e", "o", "a", "e", "o", "i", "i", "u"];
      3 var nm3 = ["d", "g", "h", "j", "n", "r", "s", "t", "y", "z"];
      4 var nm4 = ["d", "f", "h", "l", "m", "n", "r", "v"];
      5 var nm5 = ["Animus", "Avatar", "Child", "Daughter", "Deity", "Demigos", "Deus", "Divinity", "Dominus", "Essence", "Hand", "Heir", "Heiress", "Herald", "Keeper", "Nobilis", "Overbeing", "Oversoul", "Progeny", "Scion", "Soul"];
      6 var nm6 = ["Adjustment", "Advice", "Amusement", "Anger", "Autumn", "Awe", "Balance", "Battle", "Birth", "Blades", "Blood", "Brilliance", "Calamity", "Carnage", "Chaos", "Clarity", "Compassion", "Courage", "Death", "Deceit", "Dedication", "Delight", "Desire", "Despair", "Destruction", "Discord", "Dreams", "Elegance", "Envy", "Fascination", "Fealty", "Fear", "Frailty", "Freedom", "Fury", "Generosity", "Grace", "Grief", "Hate", "Hatred", "Havoc", "Honesty", "Honor", "Hope", "Humility", "Humor", "Insanity", "Intelligence", "Justice", "Knowledge", "Laughter", "Liberty", "Life", "Loss", "Loyalty", "Luck", "Memories", "Might", "Misery", "Omens", "Pain", "Perseverance", "Piety", "Power", "Pride", "Prophecies", "Redemption", "Revenge", "Sanity", "Shadows", "Slaughter", "Solitude", "Sorrow", "Spring", "Strength", "Summer", "Thrills", "Tolerance", "Tranquility", "Truth", "Uncertainty", "Vengeance", "Victory", "Wealth", "Will", "Winter", "Wisdom", "Wit", "Woe", "Wrath", "the Mighty", "the Resolute", "the Stout"];
      7 var nm7 = ["Abandoned", "Aethereal", "Aggravating", "Ancient", "Anguished", "Animated", "Arrogant", "Austere", "Bitter", "Blind", "Bright", "Brilliant", "Broken", "Careless", "Colossal", "Condemned", "Corrupt", "Crooked", "Cruel", "Defiant", "Delirious", "Deserted", "Devoted", "Diligent", "Dismal", "Divine", "Doubtless", "Ebon", "Elated", "Elegant", "Exalted", "False", "Fearless", "Fell", "Fickle", "Flawless", "Forlorn", "Forsaken", "Funereal", "Glorious", "Golden", "Gracious", "Grand", "Greedy", "Grim", "Guilty", "Hallowed", "Harmonious", "Heedless", "Hidden", "Hollow", "Humble", "Hungering", "Hungry", "Illustrious", "Impure", "Infernal", "Jaded", "Living", "Lone", "Lonely", "Luminate", "Misguided", "Molten", "Nameless", "Obsidian", "Prime", "Pristine", "Pure", "Reckless", "Revered", "Sanguine", "Scornful", "Selfish", "Sepulchral", "Serene", "Shameless", "Silent", "Swift", "Timeless", "Torn", "Transcendent", "Truthful", "Twin", "Unbreakable", "Undefeated", "Unseen", "Unwielding", "Venerated", "Vengeful", "Vigilant", "Warped", "Wicked", "Wise", "Wrathful", "Wretched"];
      8 var nm8 = ["Animus", "Avatar", "Champion", "Deity", "Demigod", "Deus", "Dominus", "God", "Herald", "Incarnation", "Keeper", "One", "Primordial", "Scion", "Shadow", "Shepherd", "Soul", "Spiritkeeper"];
      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             rnd = Math.floor(Math.random() * nm1.length);
     18             rnd2 = Math.floor(Math.random() * nm2.length);
     19             rnd3 = Math.floor(Math.random() * nm3.length);
     20             rnd4 = Math.floor(Math.random() * nm2.length);
     21             rnd6 = Math.floor(Math.random() * nm5.length);
     22             rnd7 = Math.floor(Math.random() * nm6.length);
     23             if (i < 3) {
     24                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + ", " + nm5[rnd6] + " of " + nm6[rnd7];
     25             } else {
     26                 rnd8 = Math.floor(Math.random() * nm4.length);
     27                 rnd9 = Math.floor(Math.random() * nm2.length);
     28                 while (nm4[rnd8] === nm3[rnd3]) {
     29                     rnd8 = Math.floor(Math.random() * nm4.length);
     30                 }
     31                 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd8] + nm2[rnd9] + ", " + nm5[rnd6] + " of " + nm6[rnd7];
     32             }
     33         } else if (i < 8) {
     34             rnd = Math.floor(Math.random() * nm5.length);
     35             rnd2 = Math.floor(Math.random() * nm6.length);
     36             names = nm5[rnd] + " of " + nm6[rnd2];
     37         } else {
     38             rnd = Math.floor(Math.random() * nm7.length);
     39             rnd2 = Math.floor(Math.random() * nm8.length);
     40             names = nm7[rnd] + " " + nm8[rnd2];
     41         }
     42         br = document.createElement('br');
     43         element.appendChild(document.createTextNode(names));
     44         element.appendChild(br);
     45     }
     46     if (document.getElementById("result")) {
     47         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     48     }
     49     document.getElementById("placeholder").appendChild(element);
     50 }