You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
4.0 KiB
JavaScript

var nm1 = ["Abandoned", "Aberrant", "Adamant", "Ancient", "Banded", "Berserk", "Bitter", "Blind", "Blood", "Boundless", "Brave", "Brooding", "Ceaseless", "Courageous", "Craven", "Death", "Defiant", "Depraved", "Deserted", "Discrete", "Draconian", "Enchanted", "Eternal", "Ethereal", "Evanescent", "Exalted", "Fearless", "Flawless", "Forsaken", "Ghastly", "Ghostly", "Gifted", "Glorious", "Golden", "Graceful", "Grand", "Great", "Grim", "Hallowed", "Hellfire", "Hidden", "Hollow", "Immortal", "Infinite", "Invincible", "Invisible", "Last", "Lone", "Lost", "Loyal", "Mad", "Marked", "Merciful", "Nebulous", "Nimble", "Painted", "Pale", "Primal", "Prime", "Putrid", "Rabid", "Radiant", "Ragged", "Rapid", "Rebel", "Reckless", "Reigning", "Righteous", "Ruthless", "Shallow", "Silent", "Silver", "Skeletal", "Stark", "Superior", "Supreme", "Swift", "Timeless", "True", "Unfortunate", "Unsung", "Unwritten", "Vagabond", "Venerated", "Vengeful", "Vicious", "Vigilant", "Voiceless", "Volatile", "Wandering", "Whispering", "Wicked", "Worn", "Wrathful", "Wretched"];
var nm2 = ["Actors", "Agents", "Animals", "Arachnids", "Band", "Bandits", "Bats", "Bears", "Beasts", "Blade", "Blades", "Brotherhood", "Brothers", "Chains", "Chapter", "Children", "Command", "Company", "Creatures", "Crew", "Crows", "Daughters", "Death", "Delivery", "Demons", "Design", "Devils", "Dogs", "Drive", "Eagles", "Engine", "Escape", "Eyes", "Face", "Faces", "Fangs", "Force", "Ghosts", "Giants", "Gift", "Gods", "Hats", "Hawks", "Hearts", "Hogs", "Hold", "Host", "Hounds", "Jackets", "Judgment", "Judges", "Jury", "League", "Masks", "Might", "Omen", "Order", "Owls", "Panthers", "Pests", "Poison", "Promise", "Quiver", "Reach", "Requiem", "Resolve", "Resort", "Riders", "Ring", "Rings", "Scarves", "Sector", "Serpents", "Shades", "Shadow", "Shadows", "Shield", "Shields", "Sinners", "Sisterhood", "Sisters", "Smiles", "Sons", "Souls", "Spiders", "Spirits", "Squad", "Striders", "Suns", "Syndicate", "Talent", "Thrill", "Trail", "Tricks", "Trust", "Veil", "Venom", "Victory", "Ward", "Wardens", "Watch", "Web"];
var nm3 = ["Band", "Brotherhood", "Chapter", "Flock", "League", "Order", "Pack", "Ring", "Sisterhood", "Union", "Circle", "Champions"];
var nm4 = ["Angels", "Ash", "Battle", "Blades", "Blood", "Brass", "Bravery", "Chains", "Champions", "Change", "Chaos", "Children", "Choices", "Cloaks", "Confessions", "Courage", "Cover", "Creatures", "Crowns", "Darkness", "Death", "Deception", "Demons", "Desire", "Destruction", "Devils", "Dreams", "Duty", "Eagles", "Eternity", "Eyes", "Faces", "Fire", "Ghosts", "Giants", "Gifts", "Gold", "Hawks", "Heaven", "Hell", "Honor", "Iron", "Judgment", "Justice", "Liberty", "Light", "Loss", "Masks", "Mercy", "Misery", "Nightmares", "Panthers", "Patience", "Perfection", "Phantoms", "Pistols", "Poison", "Rage", "Razors", "Redemption", "Regret", "Requests", "Requiems", "Retribution", "Secrets", "Serpents", "Servitude", "Shadows", "Shrouds", "Silence", "Silver", "Sins", "Skills", "Smiles", "Smoke", "Solace", "Solutions", "Sparks", "Spells", "Spirits", "Steel", "Strength", "Surprise", "Swords", "Sympathy", "Trust", "Truth", "Veils", "Vengeance", "Vision", "Visions", "War", "Webs", "Wolves"];
function nameGen(type) {
var tp = type;
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
nTp = Math.random() * 2 | 0;
if (nTp === 0) {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
names = nm1[rnd] + " " + nm2[rnd2];
} else {
rnd = Math.random() * nm3.length | 0;
rnd2 = Math.random() * nm4.length | 0;
names = nm3[rnd] + " of " + nm4[rnd2];
}
br = document.createElement('br');
element.appendChild(document.createTextNode(names));
element.appendChild(br);
}
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}