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.

34 lines
2.0 KiB
JavaScript

var br = "";
var triggered = 0;
function nameGen() {
var nm1 = ["Bean", "Bi", "Bip", "Blob", "Blobby", "Blot", "Blotch", "Bob", "Bounce", "Bouncey", "Breach", "Bubble", "Capriole", "Cleave", "Divi", "Divvy", "Dot", "Dottie", "Dribble", "Driblet", "Droplet", "Emerald", "Even-Steven", "Farthing", "Fifty", "Fission", "Fissure", "Fract", "Fraction", "Gambol", "Globule", "Gloop", "Glop", "Glue", "Gluey", "Glutty", "Goo", "Gooey", "Gook", "Grime", "Gumbo", "Gumgum", "Gummy", "Gunk", "Halve", "Hemi", "Hopper", "Hoppie", "Hops", "Jade", "Jangle", "Jig", "Jigger", "Jiggle", "Joggle", "Leaper", "Leapfrog", "Lime", "Mire", "Muck", "Mucus", "Mucy", "Mudskip", "Octad", "Octave", "Octet", "Octo", "Ooey", "Ooze", "Paddle", "Part", "Pea", "Pebble", "Pellet", "Plash", "Plop", "Pokey", "Pop", "Pounce", "Quad", "Quadrant", "Quart", "Quarter", "Quartern", "Rift", "Rolf", "Rupture", "Shimmer", "Shimmy", "Skip", "Slop", "Slosh", "Smidgen", "Smudge", "Spatter", "Spattle", "Speck", "Speckle", "Split", "Splits", "Splotch", "Squirmie", "Sticky", "Tacky", "Twitch", "Twobit", "Vault", "Viscy", "Waggle", "Wiggle", "Zigzag"];
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);
}
}