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

magicalDiseases.js (2688B)


      1 function nameGen() {
      2     var nm1 = ["Aether", "Aethereal", "Alacadabra", "Angelic", "Arcane", "Astral", "Aura", "Banishing", "Banshee", "Basilisk", "Bog", "Celestial", "Centaur", "Chakra", "Changeling", "Chaos", "Charm", "Charmed", "Chimera", "Cipher", "Clairvoyance", "Clairvoyant", "Conjuring", "Coven", "Crystal", "Demon", "Diabolical", "Divine", "Djinni", "Dowsing", "Dragon", "Dryad", "Echo", "Ecto", "Ectoplasm", "Eerie", "Elemental", "Enchanted", "Enigma", "Ethereal", "Evocation", "Fairy", "Familiar", "Fire", "Flashing", "Flux", "Flying", "Fortune", "Giant's", "Glamour", "Goblin", "Griffin", "Grimoire", "Harpy", "Haunted", "Hellion", "Hex", "Hexing", "Hocuspocus", "Horror", "Hypnosis", "Hypnotic", "Illusion", "Infernal", "Invisible", "Juju", "Kelpie", "Lamia", "Levitation", "Lich", "Lucifer", "Magician's", "Magnetic", "Malediction", "Menace", "Miracle", "Mojo", "Morphing", "Mutant", "Mystic", "Nether", "Ogre", "Omen", "Oracle", "Ouija", "Pandora", "Paragon", "Paranormal", "Pendulum", "Pentacle", "Phantom", "Phoenix", "Pixie", "Prophecy", "Prowess", "Psi", "Psionic", "Psychic", "Pyro", "Qi", "Rune", "Scale", "Scrying", "Seance", "Shade", "Shadow", "Sigil", "Siren", "Skeleton", "Sorcerous", "Specter", "Spectral", "Spirit", "Tantra", "Titan", "Totem", "Totemic", "Transmutation", "Treant", "Troll", "Undine", "Vampire", "Vanishing", "Void", "Voodoo", "Warlock", "Werewolf", "Witcher", "Witches'", "Wither", "Wizard", "Wyvern", "Zombie"];
      3     var nm2 = ["Ache", "Aches", "Affliction", "Amnesia", "Anemia", "Blight", "Blindness", "Blisters", "Blood", "Breakdown", "Burn", "Chills", "Cold", "Cough", "Cramps", "Curse", "Death", "Decay", "Delirium", "Delusion", "Dementia", "Disease", "Disorder", "Doom", "Drip", "Fatigue", "Fever", "Flu", "Gut", "Haze", "Infection", "Insanity", "Limb", "Madness", "Malady", "Mark", "Plague", "Pox", "Puffs", "Rage", "Rash", "Rot", "Shakes", "Sickness", "Sores", "Spasm", "Spasms", "Syndrome", "Thirst", "Vapors", "Virus", "Warts"];
      4     var br = "";
      5     var element = document.createElement("div");
      6     element.setAttribute("id", "result");
      7     for (i = 0; i < 10; i++) {
      8         rnd = Math.floor(Math.random() * nm1.length);
      9         rnd2 = Math.floor(Math.random() * nm2.length);
     10         names = nm1[rnd] + " " + nm2[rnd2];
     11         nm1.splice(rnd, 1);
     12         nm2.splice(rnd2, 1);
     13         br = document.createElement('br');
     14         element.appendChild(document.createTextNode(names));
     15         element.appendChild(br);
     16     }
     17     if (document.getElementById("result")) {
     18         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     19     }
     20     document.getElementById("placeholder").appendChild(element);
     21 }