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.
33 lines
2.1 KiB
JavaScript
33 lines
2.1 KiB
JavaScript
var br = "";
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Bilge", "Bilger", "Bilgie", "Bitemark", "Bitey", "Blister", "Bloater", "Bloatie", "Brainiac", "Champ", "Chawchaw", "Chewchew", "Chewie", "Chompchamp", "Chompers", "Chompie", "Cookie", "Cramcram", "Craver", "Cretin", "Crusher", "Decay", "Deco", "Decom", "Devourer", "Dork", "Dullie", "Dumdum", "Dunce", "Eorgh", "Famie", "Famine", "Famish", "Fester", "Fetid", "Fleshie", "Floatie", "Foul", "Foulie", "Funk", "Funky", "Glutglut", "Gluttie", "Glutton", "Gnaw", "Gnawer", "Gnawgnaw", "Gnawie", "Gobble", "Gobbler", "Gobbles", "Gorge", "Gorger", "Gorgie", "Graagh", "Guff", "Gulpie", "Gum", "Gumgum", "Guts", "Gutsie", "Guzzle", "Guzzlie", "Hoggie", "Hogwash", "Kooky", "Loon", "Loony", "Ludy", "Lunatic", "Maniac", "Morsel", "Mort", "Mouthie", "Munch", "Muncher", "Munchie", "Nib", "Nibble", "Nitwit", "Nomnom", "Nomore", "Noxie", "Nugget", "Omnom", "Peckish", "Piggie", "Pinhead", "Putrid", "Rancie", "Rank", "Reek", "Reekie", "Rot", "Rottie", "Scrumptie", "Slurper", "Smelly", "Snackie", "Starvie", "Stench", "Stinky", "Tidbit", "Toothie", "Tooths", "Undie", "Urgh", "Whiff", "Wriggle", "Zom", "Zommie", "Zomzom"];
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
nTp = Math.random() * 50 | 0;
|
|
if (nTp === 0 && first !== 0 && triggered === 0) {
|
|
nTp = Math.random() * 5 | 0;
|
|
if (nTp === 0) {
|
|
creeper();
|
|
} else if (nTp < 3) {
|
|
herobrine();
|
|
} else {
|
|
enderman();
|
|
}
|
|
} else {
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
nMs = nm1[rnd];
|
|
nm1.splice(rnd, 1);
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(nMs));
|
|
element.appendChild(br);
|
|
}
|
|
first++;
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
}
|