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

haloSanShyuumNames.js (3572B)


      1 var nm1 = ["", "", "", "", "", "", "", "b", "c", "d", "f", "h", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "z"];
      2 var nm2 = ["o", "a", "u"];
      3 var nm3 = ["b", "c", "d", "g", "k", "p", "t", "rd", "rb", "rc", "rd", "rg", "rk", "rp", "rt"];
      4 var nm4 = ["b", "br", "c", "cr", "d", "dr", "f", "fr", "h", "k", "l", "m", "n", "p", "pr", "r", "s", "sr", "t", "tr", "v", "vr", "w", "z", "mr", "kr"];
      5 var nm5 = ["b", "bt", "c", "ct", "d", "f", "ft", "h", "k", "kt", "l", "m", "mnt", "mt", "n", "nb", "nc", "nct", "nd", "nf", "nft", "nst", "nt", "p", "pt", "r", "rc", "rnt", "rt", "s", "sc", "st", "t", "w", "wt", "z", "zc", "zt"];
      6 var nm6 = ["o", "a", "u", "", ""];
      7 var nm7 = ["Prophet", "Minister", "High Prophet"];
      8 var nm8 = ["Absolution", "Analysis", "Atonement", "Attrition", "Audacity", "Aversion", "Boldness", "Bravery", "Candor", "Caution", "Censure", "Charity", "Civility", "Clemency", "Commitment", "Compassion", "Confidence", "Conscience", "Conservancy", "Constraint", "Contrition", "Control", "Conviction", "Courage", "Courtesy", "Creed", "Decency", "Defiance", "Dignity", "Disdain", "Doubt", "Duty", "Elegance", "Empathy", "Endurance", "Esteem", "Etiology", "Fairness", "Favor", "Fervor", "Forbearance", "Fortitude", "Gallantry", "Generosity", "Goodwill", "Grace", "Honesty", "Honor", "Inhibition", "Inquisition", "Insolence", "Integrity", "Interrogation", "Intrepidity", "Investigation", "Kindness", "Legitimacy", "Lenience", "Mercy", "Moderation", "Nobility", "Objection", "Obligation", "Patience", "Penance", "Penitence", "Pity", "Principles", "Protection", "Protest", "Prowess", "Qualm", "Recognition", "Regret", "Reliance", "Remorse", "Repentance", "Resilience", "Resistance", "Restraint", "Restriction", "Reverence", "Salvation", "Saving", "Silence", "Sincerity", "Sorrow", "Stewardship", "Strength", "Suffering", "Supposition", "Sympathy", "Tenacity", "Tolerance", "Trust", "Truth", "Valiance", "Veracity", "Vigor", "Virtue"];
      9 
     10 function nameGen() {
     11     $('#placeholder').css('textTransform', 'capitalize');
     12     var br = "";
     13     var element = document.createElement("div");
     14     element.setAttribute("id", "result");
     15     for (i = 0; i < 10; i++) {
     16         if (i < 5) {
     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             if (rnd < 7) {
     21                 while (rnd3 < 7) {
     22                     rnd3 = Math.floor(Math.random() * nm3.length);
     23                 }
     24             }
     25             if (rnd > 6) {
     26                 while (rnd3 < 6) {
     27                     rnd3 = Math.floor(Math.random() * nm3.length);
     28                 }
     29             }
     30             rnd4 = Math.floor(Math.random() * nm4.length);
     31             rnd5 = Math.floor(Math.random() * nm2.length);
     32             rnd6 = Math.floor(Math.random() * nm5.length);
     33             rnd7 = Math.floor(Math.random() * nm6.length);
     34             names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + " " + nm4[rnd4] + nm2[rnd5] + nm5[rnd6] + nm6[rnd7];
     35         } else {
     36             rnd = Math.floor(Math.random() * nm7.length);
     37             rnd2 = Math.floor(Math.random() * nm8.length);
     38             names = nm7[rnd] + " of " + nm8[rnd2];
     39         }
     40         br = document.createElement('br');
     41         element.appendChild(document.createTextNode(names));
     42         element.appendChild(br);
     43     }
     44     if (document.getElementById("result")) {
     45         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     46     }
     47     document.getElementById("placeholder").appendChild(element);
     48 }