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

dndDragonCopper.js (8093B)


      1 var nm1 = ["", "", "ch", "d", "g", "h", "m", "n", "r", "th", "z"];
      2 var nm2 = ["aa", "ae", "au", "a", "a", "e", "i", "o", "a", "a", "e", "i", "o", "a", "a", "e", "i", "o", "a", "a", "e", "i", "o", "a", "a", "e", "i", "o"];
      3 var nm3 = ["d", "g", "l", "lh", "m", "n", "r", "rh", "t", "th", "v", "z"];
      4 var nm4 = ["ae", "a", "o", "u", "a", "o", "u", "i", "e", "a", "o", "u", "a", "o", "u", "i", "e"];
      5 var nm5 = ["b", "d", "l", "ll", "m", "n", "nn", "r", "rl", "rn", "rr", "th", "thl", "thn", "z", "zm", "zn", "zr"];
      6 var nm6 = ["ae", "io", "a", "a", "e", "i", "o", "o", "a", "a", "e", "i", "o", "o", "a", "a", "e", "i", "o", "o"];
      7 var nm7 = ["", "", "d", "l", "n", "r", "s", "t", "th"];
      8 var nm8 = ["", "", "b", "d", "g", "h", "l", "m", "n", "r", "t", "v"];
      9 var nm9 = ["ia", "aa", "au", "y", "a", "a", "e", "i", "i", "y", "a", "a", "e", "i", "i", "y", "a", "a", "e", "i", "i", "y", "a", "a", "e", "i", "i"];
     10 var nm10 = ["d", "dr", "h", "l", "ll", "ln", "lr", "lz", "n", "nd", "nn", "r", "rl", "rn", "rr", "t", "th", "thm", "v", "z", "zm"];
     11 var nm11 = ["au", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u"];
     12 var nm12 = ["d", "k", "l", "ll", "ln", "lr", "n", "ng", "nt", "r", "rh", "rr", "rt", "rz", "s", "sh", "sth", "st", "zh"];
     13 var nm13 = ["y", "a", "a", "e", "i", "o", "u", "u"];
     14 var nm14 = ["", "", "h", "l", "n", "r", "s"];
     15 var nm20 = ["Alder", "Arrow", "Bad", "Bane", "Battle", "Big", "Blaze", "Blind", "Bold", "Bone", "Boulder", "Bright", "Broad", "Bull", "Burn", "Burning", "Cloud", "Cold", "Dark", "Dawn", "Dead", "Death", "Doom", "Dread", "Dream", "Dull", "Dusk", "Elder", "Even", "Far", "Fate", "Fear", "Fierce", "Fire", "Flame", "Free", "Frost", "Fury", "Ghost", "Gloom", "Glow", "Gnaw", "Grand", "Grave", "Great", "Grim", "Half", "Hallow", "Hollow", "Hypno", "Iron", "Keen", "Last", "Light", "Little", "Lone", "Long", "Mad", "Marble", "Master", "Mighty", "Mind", "Moon", "Night", "Nimble", "Odd", "Old", "Pale", "Phantom", "Power", "Prey", "Primal", "Prime", "Rage", "Ragged", "Rapid", "Rash", "Razor", "Rumble", "Shade", "Shadow", "Sheep", "Shiver", "Silent", "Silver", "Smug", "Somber", "Steel", "Stone", "Storm", "Stout", "Strong", "Sun", "Swift", "Terror", "Thunder", "Twin", "Whirl", "Wicked", "Wild"];
     16 var nm21 = ["back", "beast", "belly", "brand", "breaker", "breath", "bringer", "brow", "claw", "claws", "cutter", "eye", "eyes", "fang", "fangs", "flayer", "flight", "fly", "forge", "forger", "glide", "grip", "hunter", "jaw", "mind", "mover", "reader", "ripper", "roar", "sight", "speaker", "striker", "tail", "teeth", "tooth", "watcher", "wing", "wings"];
     17 var nm22 = ["Abandonded", "Actor", "Adept", "Admired", "Adored", "Aggressor", "Agile", "Alert", "Ambitious", "Ancient", "Anguished", "Anxious", "Architect", "Assassin", "Awful", "Beautiful", "Behemoth", "Bewitched", "Bitter", "Blind", "Bold", "Bright", "Brilliant", "Brilliant Mind", "Bringer of Death", "Broken", "Brute", "Butcher", "Calm", "Careful", "Careless", "Cautious", "Celebrated", "Champion", "Charming", "Clever", "Conjurer", "Corrupt", "Corrupted", "Corruptor", "Cruel", "Cunning", "Cursed", "Damned", "Dangerous", "Dark", "Dead", "Defiant", "Delirious", "Deserter", "Destroyer", "Disguised", "Enchanted", "Enchanting", "Enigma", "Enormous", "Eternal", "Exalted", "Executioner", "False", "Fearless", "Fierce", "Forsaken", "Fury", "Generous", "Gentle", "Giant", "Gifted", "Glorious", "Grand", "Grave", "Great", "Greedy", "Grim", "Hollow", "Hungry", "Hunter", "Ill Tempered", "Illustrious", "Immortal", "Infinite", "Innocent", "Judge", "Last", "Lost", "Lost Mind", "Mad", "Majestic", "Mammoth", "Maneater", "Maniac", "Manslayer", "Marked", "Massive", "Master", "Menace", "Mighty", "Nocturnal", "Oracle", "Paragon", "Patient", "Powerful", "Prophet", "Proud", "Quiet", "Razor", "Rich", "Rotten", "Serpent", "Silent", "Stalker", "Swift", "Terrible", "Tyrant", "Vengeful", "Vicious", "Victorious", "Vigilant", "Violent", "Voiceless One", "Warmonger", "Warrior", "Watcher", "Whisperer", "Wicked", "Wild", "Wise", "Wrathful", "Wretched"];
     18 var br = "";
     19 
     20 function nameGen(type) {
     21     $('#placeholder').css('textTransform', 'capitalize');
     22     var tp = type;
     23     var element = document.createElement("div");
     24     element.setAttribute("id", "result");
     25     for (i = 0; i < 10; i++) {
     26         if (i < 6) {
     27             if (tp === 1) {
     28                 nameFem();
     29                 while (nMs === "") {
     30                     nameFem();
     31                 }
     32             } else {
     33                 nameMas();
     34                 while (nMs === "") {
     35                     nameMas();
     36                 }
     37             }
     38         } else {
     39             np = Math.random() * 2 | 0;
     40             if (np === 0) {
     41                 rnd = Math.random() * nm22.length | 0;
     42                 nMs = "The " + nm22[rnd];
     43             } else {
     44                 rnd = Math.random() * nm20.length | 0;
     45                 rnd2 = Math.random() * nm21.length | 0;
     46                 nMs = nm20[rnd] + nm21[rnd2];
     47             }
     48         }
     49         br = document.createElement('br');
     50         element.appendChild(document.createTextNode(nMs));
     51         element.appendChild(br);
     52     }
     53     if (document.getElementById("result")) {
     54         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     55     }
     56     document.getElementById("placeholder").appendChild(element);
     57 }
     58 
     59 function nameFem() {
     60     nTp = Math.random() * 8 | 0;
     61     rnd = Math.random() * nm8.length | 0;
     62     rnd2 = Math.random() * nm9.length | 0;
     63     rnd3 = Math.random() * nm14.length | 0;
     64     rnd4 = Math.random() * nm10.length | 0;
     65     rnd5 = Math.random() * nm11.length | 0;
     66     rnd6 = Math.random() * nm12.length | 0;
     67     rnd7 = Math.random() * nm13.length | 0;
     68     while (nm10[rnd4] === nm12[rnd6] || nm12[rnd6] === nm14[rnd3]) {
     69         rnd6 = Math.random() * 9 | 0;
     70     }
     71     while (rnd2 < 3 && rnd5 === 0) {
     72         rnd5 = Math.random() * nm11.length | 0;
     73     }
     74     if (nTp < 6) {
     75         nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd6] + nm13[rnd7] + nm14[rnd3];
     76     } else {
     77         rnd8 = Math.random() * nm12.length | 0;
     78         rnd9 = Math.random() * nm13.length | 0;
     79         while (nm12[rnd6] === nm12[rnd8]) {
     80             rnd6 = Math.random() * nm12.length | 0;
     81         }
     82         if (nTp == 6) {
     83             nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd6] + nm13[rnd9] + nm12[rnd8] + nm13[rnd7] + nm14[rnd3];
     84         } else {
     85             nMs = nm8[rnd] + nm9[rnd2] + nm10[rnd4] + nm11[rnd5] + nm12[rnd8] + nm13[rnd9] + nm12[rnd6] + nm13[rnd7] + nm14[rnd3];
     86         }
     87     }
     88     testSwear(nMs);
     89 }
     90 
     91 function nameMas() {
     92     nTp = Math.random() * 8 | 0;
     93     rnd = Math.random() * nm1.length | 0;
     94     rnd2 = Math.random() * nm2.length | 0;
     95     rnd3 = Math.random() * nm7.length | 0;
     96     rnd4 = Math.random() * nm3.length | 0;
     97     rnd5 = Math.random() * nm4.length | 0;
     98     rnd6 = Math.random() * nm5.length | 0;
     99     rnd7 = Math.random() * nm6.length | 0;
    100     while (rnd2 < 3 && rnd5 === 0) {
    101         rnd2 = Math.random() * nm2.length | 0;
    102     }
    103     while (rnd7 < 2 && rnd5 === 0) {
    104         rnd7 = Math.random() * nm6.length | 0;
    105     }
    106     while (nm3[rnd4] === nm1[rnd] || nm3[rnd4] === nm5[rnd6]) {
    107         rnd4 = Math.random() * nm3.length | 0;
    108     }
    109     while (nm3[rnd4] === nm5[rnd6] || nm5[rnd6] === nm7[rnd3]) {
    110         rnd6 = Math.random() * nm5.length | 0;
    111     }
    112     if (nTp < 6) {
    113         nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6] + nm6[rnd7] + nm7[rnd3];
    114     } else {
    115         rnd8 = Math.random() * nm5.length | 0;
    116         rnd9 = Math.random() * nm6.length | 0;
    117         while (nm5[rnd6] === nm5[rnd8]) {
    118             rnd6 = Math.random() * nm5.length | 0;
    119         }
    120         while (rnd7 < 2 && rnd9 < 2) {
    121             rnd7 = Math.random() * nm6.length | 0;
    122         }
    123         if (nTp === 6) {
    124             nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6] + nm6[rnd9] + nm5[rnd8] + nm6[rnd7] + nm7[rnd3];
    125         } else {
    126             nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm5[rnd8] + nm6[rnd9] + nm5[rnd6] + nm6[rnd7] + nm7[rnd3];
    127         }
    128     }
    129     testSwear(nMs);
    130 }