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

councilNames.js (4169B)


      1 function nameGen() {
      2     var nm1 = ["Abandoned", "Adamant", "Aegis", "Ageless", "All-Knowing", "Ancient", "Angelic", "Arachnid", "Arch", "Austere", "Balance", "Blind", "Brilliant", "Bronze", "Champion", "Chief", "Climate", "Cloud", "Clover", "Creation", "Crimson", "Crown", "Dark", "Diamond", "Dire", "Dream", "Dual", "Earth", "Earthen", "Ebon", "Elated", "Elderly", "Elite", "Ember", "Empath", "Enchanted", "Enlightened", "Eternal", "Ethereal", "Exalted", "Fearless", "Flame", "Forsaken", "Garden", "Ghost", "Golden", "Grand", "Granite", "Hallowed", "Harmonious", "Harmony", "Heavenly", "High", "Ice", "Infernal", "Infinite", "Infinity", "Iris", "Iron", "Ivory", "Jade", "Judgment", "Justice", "Last", "Legion", "Liberty", "Light", "Living", "Lone", "Lunar", "Mad", "Marked", "Masked", "Memory", "Mercy", "Midnight", "Moon", "Mute", "Mystery", "Nightmare", "Obsidian", "Omen", "Onyx", "Oracle", "Oval", "Paradox", "Parallel", "Phantom", "Portal", "Primal", "Prime", "Private", "Prism", "Radiant", "Round", "Royal", "Sanguine", "Serpent", "Shadow", "Silent", "Silver", "Skeletal", "Skeleton", "Snow", "Solar", "Spirit", "Storm", "Sun", "Supreme", "Thunder", "Tranquil", "Tree", "Twilight", "Twin", "Union", "Unity", "Velvet", "Vessel", "Voiceless", "War", "Wicked", "Wisdom", "Wise", "Zephyr"];
      3     var nm2 = ["Council", "Board", "Convocation", "Congregation", "Conclave", "Council", "Council", "Council", "Council", "Council", "Board"];
      4     var nm3 = ["Advice", "Ancients", "Angels", "Averages", "Balance", "Beginnings", "Birth", "Bliss", "Blood", "Borders", "Brilliance", "Candles", "Chains", "Champions", "Chaos", "Clarity", "Corruption", "Darkness", "Death", "Defiance", "Dreams", "Dust", "Duty", "Eternity", "Evil", "Experience", "Faith", "Fate", "Fertility", "Ghosts", "Glass", "Glory", "God", "Gods", "Grace", "Harmony", "Heaven", "Hell", "Honor", "Hope", "Ice", "Independence", "Infinity", "Iron", "Justice", "Knowledge", "Life", "Light", "Lights", "Memories", "Mercy", "Minds", "Mithril", "Nightmares", "Omens", "Opportunity", "Peace", "Phantoms", "Protection", "Reality", "Rebels", "Redemption", "Reflection", "Riddles", "Shadows", "Solitude", "Spirits", "Statues", "Time", "Tomorrow", "Trade", "Tranquility", "Truth", "Twilight", "Unity", "Victors", "Voices", "War", "Whispers", "Widows", "Wisdom", "the Abandoned", "the Afterlife", "the Ages", "the Ancient", "the Blind", "the Brave", "the Chosen", "the Chosen One", "the Clouds", "the Colossus", "the Corrupt", "the Crown", "the Dark", "the Dead", "the Defiant", "the Enchanted", "the End", "the Enigma", "the Enlightened", "the Eternal", "the Exalted", "the Father", "the Few", "the Flawed", "the Flawless", "the Flock", "the Forest", "the Forgotten", "the Forsaken", "the Free", "the Gifted", "the God", "the Gods", "the Grim", "the Hallowed", "the Hive", "the Hollow", "the Honored", "the Infinite", "the Lake", "the Light", "the Living", "the Many", "the Mind", "the Mother", "the Mountain", "the Next Realm", "the Night", "the Nocturnal", "the Ocean", "the Oracle", "the Owl", "the People", "the Primal", "the Prime", "the Radiant", "the Rebellion", "the River", "the Ruins", "the Serene", "the Storm", "the Supreme", "the Tempest", "the Underworld", "the Union", "the Wolf"];
      5     var br = "";
      6     var element = document.createElement("div");
      7     element.setAttribute("id", "result");
      8     for (i = 0; i < 10; i++) {
      9         rnd2 = Math.floor(Math.random() * nm2.length);
     10         if (i < 5) {
     11             rnd = Math.floor(Math.random() * nm1.length);
     12             names = "The " + nm1[rnd] + " " + nm2[rnd2];
     13             nm1.splice(rnd, 1);
     14         } else {
     15             rnd = Math.floor(Math.random() * nm3.length);
     16             names = "The " + nm2[rnd2] + " of " + nm3[rnd];
     17             nm3.splice(rnd, 1);
     18         }
     19         nm2.splice(rnd2, 1);
     20         br = document.createElement('br');
     21         element.appendChild(document.createTextNode(names));
     22         element.appendChild(br);
     23     }
     24     if (document.getElementById("result")) {
     25         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     26     }
     27     document.getElementById("placeholder").appendChild(element);
     28 }