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

dndLizardfolkNames.js (5892B)


      1 var nm1 = ["", "", "", "", "", "b", "d", "g", "jh", "k", "l", "m", "n", "r", "s", "sh", "t", "tr", "th", "thr", "v"];
      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", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "aa", "ae", "ao", "au"];
      3 var nm3 = ["ch", "d", "dr", "dh", "g", "gr", "gh", "gg", "l", "ll", "lt", "lth", "lr", "p", "r", "rg", "rht", "rk", "rt", "rd", "rth", "sh", "sk", "shr", "sh", "sl", "t", "th", "tr", "thr"];
      4 var nm4 = ["a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "y", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "ea", "ua", "ae", "ia", "aa", "ao"];
      5 var nm5 = ["c", "g", "gr", "gn", "k", "kh", "kr", "r", "rr", "s", "ss", "sr", "st", "str", "t", "th", "tr"];
      6 var nm6 = ["", "", "", "", "", "", "", "ch", "k", "n", "nd", "nk", "nt", "r", "rd", "rk", "rt", "rth", "s", "ss", "sh", "sj", "sk", "t", "th", "v", "x"];
      7 var br = "";
      8 
      9 function nameGen(type) {
     10     var tp = type;
     11     $('#placeholder').css('textTransform', 'capitalize');
     12     var element = document.createElement("div");
     13     element.setAttribute("id", "result");
     14     var nm7 = ["Achiever", "Advantage", "Adventure", "Air", "Alarm", "Ambition", "Anger", "Animal", "Answer", "Anxiety", "Armor", "Art", "Artist", "Author", "Axe", "Badge", "Bait", "Balance", "Ball", "Bank", "Battle", "Beach", "Bead", "Beam", "Bean", "Bear", "Beast", "Beetle", "Beginning", "Bell", "Belt", "Bird", "Bite", "Bitter", "Black", "Blade", "Blood", "Board", "Bone", "Book", "Boot", "Border", "Bother", "Bowl", "Brain", "Brass", "Brave", "Bravery", "Bread", "Breath", "Burn", "Button", "Camp", "Cart", "Cash", "Catch", "Cave", "Cell", "Chain", "Chalk", "Challenge", "Champion", "Chance", "Change", "Chaos", "Chest", "Choice", "Clever", "Cloud", "Clue", "Comfort", "Courage", "Creative", "Crimson", "Crown", "Cub", "Curiosity", "Dance", "Danger", "Dark", "Demon", "Desire", "Dexterity", "Diamond", "Direction", "Dirt", "Double", "Dragon", "Dream", "Earth", "Edge", "Effect", "Elegance", "Emerald", "Emotion", "Emphasis", "Envy", "Error", "Eternity", "Eye", "Faith", "Fall", "Family", "Fang", "Farm", "Fear", "Feast", "Fight", "Final", "Fire", "Flame", "Flight", "Flower", "Fluke", "Force", "Forever", "Fortune", "Freedom", "Friend", "Gem", "Generous", "Ghost", "Gold", "Good", "Green", "Guide", "Habit", "Half", "Hammer", "Happiness", "Happy", "Harmony", "Hate", "Heart", "Hearth", "Home", "Honor", "Horn", "Ice", "Icicle", "Imagination", "Impulse", "Ink", "Insect", "Intelligent", "Iron", "Journey", "Judgement", "Justice", "Kind", "Kindness", "Knowledge", "Lesson", "Liberty", "Lie", "Life", "Light", "Limit", "Locket", "Love", "Many", "Marble", "Mark", "Mask", "Match", "Memory", "Mercy", "Middle", "Midnight", "Might", "Miracle", "Misery", "Mist", "Moment", "Moon", "Mountain", "Muscle", "Nerve", "Night", "Nobody", "Nothing", "Omen", "Orange", "Paint", "Paste", "Patch", "Patience", "Patient", "Piece", "Pitch", "Pleasure", "Plenty", "Pocket", "Power", "Pride", "Promise", "Prompt", "Push", "Question", "Quick", "Rabbit", "Rain", "Rainstorm", "Range", "Reason", "Red", "Relief", "Reserve", "Respect", "Rest", "Riches", "Riddle", "Ring", "Risk", "Rose", "Rumor", "Sanguine", "Scent", "Scratch", "Secret", "Sense", "Serene", "Shade", "Shadow", "Shell", "Shock", "Shot", "Sign", "Signal", "Silver", "Single", "Skill", "Sky", "Sleep", "Slice", "Slide", "Small", "Smart", "Smash", "Smile", "Smoke", "Snow", "Snowflake", "Song", "Sorrow", "Spark", "Sparkle", "Spell", "Spider", "Spirit", "Spite", "Split", "Steel", "Stick", "Stitch", "Stock", "Storm", "Strength", "Strike", "Struggle", "Tackle", "Talent", "Tell", "Temper", "Theory", "Thicket", "Thing", "Thrill", "Thunder", "Tired", "Tolerance", "Tool", "Travel", "Trick", "Trust", "Truth", "Tune", "Twist", "Victory", "Village", "Visitor", "Voice", "Voyage", "Walk", "War", "Watch", "Wave", "Wealth", "Welcome", "Whole", "Will", "Wisdom", "Wish", "Wistle", "Wonder", "Wrath"];
     15     for (i = 0; i < 10; i++) {
     16         if (tp === 1) {
     17             rnd = Math.random() * nm7.length | 0;
     18             nMs = nm7[rnd];
     19             nm7.splice(rnd, 1);
     20         } else {
     21             nameMas();
     22             while (nMs === "") {
     23                 nameMas();
     24             }
     25         }
     26         br = document.createElement('br');
     27         element.appendChild(document.createTextNode(nMs));
     28         element.appendChild(br);
     29     }
     30     if (document.getElementById("result")) {
     31         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     32     }
     33     document.getElementById("placeholder").appendChild(element);
     34 }
     35 
     36 function nameMas() {
     37     rnd = Math.random() * nm1.length | 0;
     38     rnd2 = Math.random() * nm2.length | 0;
     39     rnd3 = Math.random() * nm6.length | 0;
     40     if (i < 2) {
     41         if (rnd < 5) {
     42             while (nm6[rnd3] === nm1[rnd]) {
     43                 rnd3 = Math.random() * nm6.length | 0;
     44             }
     45         }
     46         nMs = nm1[rnd] + nm2[rnd2] + nm6[rnd3];
     47     } else {
     48         rnd4 = Math.random() * nm3.length | 0;
     49         rnd5 = Math.random() * nm4.length | 0;
     50         while (nm3[rnd4] === nm1[rnd] || nm3[rnd4] === nm6[rnd3]) {
     51             rnd4 = Math.random() * nm3.length | 0;
     52         }
     53         if (i < 7) {
     54             nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm6[rnd3];
     55         } else {
     56             rnd6 = Math.random() * nm2.length | 0;
     57             rnd7 = Math.random() * nm5.length | 0;
     58             while (nm5[rnd7] === nm3[rnd4] || nm5[rnd7] === nm6[rnd3]) {
     59                 rnd7 = Math.random() * nm5.length | 0;
     60             }
     61             nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm2[rnd6] + nm5[rnd7] + nm4[rnd5] + nm6[rnd3];
     62         }
     63     }
     64     testSwear(nMs);
     65 }