ruinNames.js (3614B)
1 var nm1 = ["Borough", "City", "Cove", "Farms", "Fields", "Forest", "Harbor", "Island", "Isle", "Labyrinth", "Lands", "Mountain", "Outpost", "Reef", "River", "Shore", "Temple", "Town", "Vault", "Village"]; 2 var nm2 = ["Ash", "Ashes", "Blight", "Bones", "Chaos", "Charcoal", "Coal", "Collapse", "Corrosion", "Cracks", "Crimson", "Crumbles", "Darkness", "Death", "Debris", "Decay", "Desertion", "Desolation", "Despair", "Dishonor", "Doom", "Dread", "Dreams", "Destruction", "Dusk", "Emptiness", "Ends", "Exiles", "Extinction", "Fire", "Fog", "Fragments", "Ghosts", "Gloom", "Graves", "Hauntings", "Ice", "Illusions", "Isolation", "Mist", "Mold", "Molten Rock", "Myths", "Necrosis", "Nightfall", "Nightmares", "Oblivion", "Obsidian", "Onyx", "Phantoms", "Pieces", "Plants", "Remains", "Remnants", "Residue", "Rot", "Rubble", "Ruination", "Ruins", "Rust", "Screams", "Shadows", "Shambles", "Shrubs", "Silence", "Silver", "Skeletons", "Skulls", "Slate", "Sleep", "Smoke", "Solitude", "Soot", "Spirits", "Stone", "Twilight", "Undoing", "Vibrations", "Waste", "Water", "Whispers", "Wind", "Wreckages", "the Abandoned", "the Abyss", "the Broken", "the Curse", "the Damned", "the Fallen", "the Forgotten", "the Forsaken", "the Infernal", "the Inferno", "the Lost", "the Night", "the Perished", "the Scourge", "the Unknown", "the Vanquished", "the Void"]; 3 var nm3 = ["Abandoned", "Abyss", "Agony", "Ashen", "Bare", "Barren", "Bleak", "Blight", "Bone", "Broken", "Burning", "Chaos", "Charcoal", "Coal", "Cobalt", "Collapsed", "Corroded", "Cracking", "Crimson", "Crumbled", "Crumbling", "Cursed", "Damned", "Dark", "Dcayed", "Dead", "Debris", "Decaying", "Deserted", "Desolated", "Desolation", "Despair", "Destroyed", "Destruction", "Dismissed", "Doom", "Dread", "Emptied", "Empty", "End", "Ender", "Erased", "Ethereal", "Exile", "Exiled", "Extinct", "Fallen", "Fire", "Foggy", "Forgotten", "Forsaken", "Fragmented", "Frozen", "Ghost", "Gloom", "Grave", "Haunted", "Ice", "Illusion", "Infernal", "Inferno", "Isolated", "Isolation", "Lifeless", "Lonely", "Lost", "Mist", "Molded", "Molten", "Motionless", "Murky", "Mythic", "Nameless", "Necrotic", "Neglected", "Night", "Nightmare", "Nullified", "Obliterated", "Oblivion", "Obsidian", "Onyx", "Overgrown", "Perished", "Petrified", "Phantom", "Remnant", "Residue", "Rotting", "Rubble", "Ruin", "Ruined", "Rusted", "Savage", "Scorching", "Scourge", "Scream", "Screaming", "Shadow", "Shamble", "Shrub", "Silent", "Silver", "Skeleton", "Skull", "Slate", "Sleeping", "Sleepy", "Smoke", "Solitude", "Soot", "Spirit", "Stone", "Twilight", "Uncanny", "Undone", "Unknown", "Vanquished", "Vibrating", "Void", "Waste", "Wasted", "Weeping", "Whisper", "Whispering", "Windy", "Wreckage"]; 4 var br = ""; 5 6 function nameGen() { 7 var element = document.createElement("div"); 8 element.setAttribute("id", "result"); 9 for (i = 0; i < 10; i++) { 10 if (i < 5) { 11 rnd = Math.floor(Math.random() * nm1.length); 12 rnd2 = Math.floor(Math.random() * nm2.length); 13 names = nm1[rnd] + " of " + nm2[rnd2]; 14 } else { 15 rnd = Math.floor(Math.random() * nm3.length); 16 rnd2 = Math.floor(Math.random() * nm1.length); 17 names = "The " + nm3[rnd] + " " + nm1[rnd2]; 18 } 19 br = document.createElement('br'); 20 element.appendChild(document.createTextNode(names)); 21 element.appendChild(br); 22 } 23 if (document.getElementById("result")) { 24 document.getElementById("placeholder").removeChild(document.getElementById("result")); 25 } 26 document.getElementById("placeholder").appendChild(element); 27 }