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.
		
		
		
		
		
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			29 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
| var nm1 = ["Tome", "Book", "Grimoire"];
 | |
| var nm2 = ["Bargains", "Codes", "Command", "Covenants", "Knowledge", "Laws", "Mandates", "Mastery", "Names", "Orders", "Principles", "Rules", "Standards"];
 | |
| var nm3 = ["Aeon", "Annihilation", "Balance", "Beyond", "Blood", "Brimstone", "Chaos", "Curses", "Darkness", "Death", "Demise", "Dissolution", "Doom", "Dying", "Echoes", "Endings", "Eternity", "Existence", "Faith", "Fatality", "Fiends", "Forever", "Ghosts", "Gods", "Graves", "Heaven", "Hell", "Horrors", "Immortality", "Immortals", "Life", "Light", "Limbo", "Loss", "Misery", "Mortality", "Mortals", "Necrosis", "Nightmares", "Nothingness", "Oblivion", "Phantoms", "Purgatory", "Reapers", "Regret", "Requiem", "Return", "Revival", "Ruin", "Sadness", "Shadows", "Slumber", "Sorrow", "Souls", "Spirits", "Suffering", "Survival", "Tombs", "Twilight", "Undeath", "Undying", "Vitality", "the Abyss", "the Afterlife", "the Ancient", "the Ancients", "the Beyond", "the Dead", "the Deceased", "the Dying", "the End", "the Gods", "the Grave", "the Inevitable", "the Inferno", "the Living", "the Lost", "the Primals", "the Reaper", "the Spirits", "the Undead", "the Underworld", "the Void"];
 | |
| var br = "";
 | |
| 
 | |
| function nameGen() {
 | |
|     var element = document.createElement("div");
 | |
|     element.setAttribute("id", "result");
 | |
|     for (i = 0; i < 10; i++) {
 | |
|         rnd = Math.random() * nm1.length | 0;
 | |
|         rnd2 = Math.random() * nm2.length | 0;
 | |
|         rnd3 = Math.random() * nm3.length | 0;
 | |
|         if (i < 3) {
 | |
|             nMs = nm1[rnd] + " of " + nm3[rnd3];
 | |
|         } else if (i < 7) {
 | |
|             nMs = nm2[rnd2] + " of " + nm3[rnd3];
 | |
|         } else {
 | |
|             nMs = nm1[rnd] + " of " + nm2[rnd2] + " of " + nm3[rnd3];
 | |
|         }
 | |
|         br = document.createElement('br');
 | |
|         element.appendChild(document.createTextNode(nMs));
 | |
|         element.appendChild(br);
 | |
|     }
 | |
|     if (document.getElementById("result")) {
 | |
|         document.getElementById("placeholder").removeChild(document.getElementById("result"));
 | |
|     }
 | |
|     document.getElementById("placeholder").appendChild(element);
 | |
| }
 |