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

falmerNames.js (2904B)


      1 var names3 = ["An", "Ag", "Agar", "Bin", "Berel", "Cryn", "Caer", "Den", "Dane", "Ere", "Eme", "Fin", "For", "Gran", "Gan", "Hene", "Har", "Irel", "Ise", "Kran", "Kor", "Lene", "Lore", "Mas", "Mine", "Nor", "Nara", "Or", "Ore", "Pan", "Pris", "Ran", "Rone", "Shan", "Sin", "Tor", "Tin", "Ure", "Unar", "Vran", "Vor", "Wan", "Was", "Yre", "Yren", "Zon", "Zar"];
      2 var names4 = ["bath", "borin", "dwen", "dras", "faroth", "ferys", "garwen", "goth", "horith", "han", "krath", "kelor", "len", "loth", "meloth", "myn", "naris", "noth", "paris", "parwen", "rawyn", "renoth", "saroth", "saris", "taroth", "tan", "vryn", "varys", "wenoth", "wen", "yloth", "yrwen", "zras", "zoth"];
      3 
      4 function nameGen(type) {
      5     var tp = type;
      6     if (tp === 1) {
      7         var names1 = ["Ari", "Aith", "Bel", "Bire", "Cele", "Cen", "El", "Elle", "En", "Fae", "Fai", "Gis", "Gwen", "Haer", "Hele", "Inhe", "Ime", "Je", "Jes", "Kir", "Kine", "Les", "Lyn", "Mel", "Min", "Nira", "Nythe", "Pes", "Prys", "Rine", "Ryn", "Shi", "Sina", "Tera", "Ter", "Unhel", "Uve", "Ven", "Vyr", "Wae", "Wina", "Ynhe", "Ys", "Zhar", "Zida"];
      8         var names2 = ["bora", "bysh", "dhora", "denyse", "fani", "feah", "geth", "greah", "her", "hish", "kharise", "kyre", "lenor", "lori", "mhes", "meril", "neris", "nyish", "pireth", "path", "rae", "rish", "reno", "ren", "shan", "selin", "thune", "tys", "vhis", "vena", "wihn", "wen", "yane", "yis", "zhina", "zis"];
      9     } else {
     10         var names1 = ["Are", "Ath", "Bal", "Bir", "Cele", "Cen", "Ed", "Edhel", "En", "Fa", "Fai", "Gir", "Glen", "Har", "Here", "Idhe", "Ire", "Ja", "Jed", "Kar", "Kida", "Lat", "Lyr", "Men", "Mir", "Niri", "Nyr", "Pare", "Pryn", "Red", "Ryn", "Si", "Sida", "Tere", "Tor", "Udhel", "Ure", "Var", "Vyr", "Wai", "Wiri", "Ydhe", "Yr", "Zar", "Zida"];
     11         var names2 = ["bor", "bys", "dhor", "danyis", "faris", "fiath", "groth", "griath", "hur", "his", "karis", "kir", "lebor", "lor", "mhor", "mitil", "naris", "nyis", "prith", "piroth", "re", "riath", "rilor", "ring", "sur", "sebir", "thur", "til", "vhur", "vus", "with", "we", "yaris", "yor", "zhor", "zius"];
     12     }
     13     var br = "";
     14     var element = document.createElement("div");
     15     element.setAttribute("id", "result");
     16     for (i = 0; i < 10; i++) {
     17         rnd0 = Math.floor(Math.random() * names1.length);
     18         rnd1 = Math.floor(Math.random() * names2.length);
     19         rnd2 = Math.floor(Math.random() * names3.length);
     20         rnd3 = Math.floor(Math.random() * names4.length);
     21         names = names1[rnd0] + names2[rnd1] + " " + names3[rnd2] + names4[rnd3];
     22         br = document.createElement('br');
     23         element.appendChild(document.createTextNode(names));
     24         element.appendChild(br);
     25     }
     26     if (document.getElementById("result")) {
     27         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     28     }
     29     document.getElementById("placeholder").appendChild(element);
     30 }