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.4 KiB
JavaScript

var br = "";
var triggered = 0;
function nameGen() {
var nm1 = ["Acorn", "Alder", "Amber", "Ariana", "Artemis", "Ash", "Astra", "Auburn", "Autumn", "Badger", "Bandit", "Basil", "Bean", "Beech", "Bengt", "Birch", "Birchie", "Blaze", "Blush", "Buttercup", "Butternut", "Carmine", "Cedar", "Celia", "Century", "Chestnut", "Chomp", "Chompers", "Chupie", "Cinnamon", "Claret", "Cleopatra", "Cookie", "Copper", "Crimson", "Cuddles", "Cypress", "Dalton", "Dixie", "Don Diego", "Dribble", "Dribbles", "Drowsy", "Eevee", "Elm", "Ember", "Erebos", "Espeon", "Farthing", "Fennec", "Filbert", "Finnick", "Fir", "Fire", "Firefox", "Flare", "Fuzzball", "Gideon", "Ginger", "Hazel", "Hazelnut", "Hemlock", "Hickory", "Hunter", "Jamie", "Jolteon", "Kit", "Kitsune", "Kristofferson", "Leafeon", "Loki", "Lucky", "Luna", "Maple", "Marty", "Mathew", "McCloud", "McFly", "Megan", "Mellow", "Michael J.", "Midnight", "Miles", "Muggles", "Mushroom", "News", "Nibble", "Nibbler", "Nicke", "Nine", "Ninetails", "Oak", "Olke", "Orion", "Pecan", "Pepper", "Petal", "Pine", "Pinecone", "Piper", "Pooky", "Prince", "Princess", "Pumpkin", "Renard", "Reynard", "Ripper", "Robin", "Rose", "Ruby", "Rufus", "Russet", "Rust", "Rusty", "Scarlet", "Scout", "Scraps", "Scruffy", "Serenity", "Shifty", "Sleepy", "Sly", "Sneak", "Snuffles", "Snuggle", "Snuggles", "Spark", "Sparky", "Spot", "Starfox", "Swift", "Swiper", "Tails", "Tinder", "Tod", "Trixibell", "Trixy", "Vaporeon", "Vulpix", "Walnut", "Wilde", "Wily", "Yew", "Zorro"];
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);
}
}