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.5 KiB
JavaScript
33 lines
2.5 KiB
JavaScript
var br = "";
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Ambush", "Angst", "Aphone", "Aphonic", "Babam", "Baboom", "Badaboom", "Bane", "Baroom", "Barrage", "Bashful", "Big Burst", "Bigbang", "Biggie Bang", "Blare", "Blast", "Blaster", "Blitzkrieg", "Blowout", "Bomb", "Bombast", "Bomber", "Bombie", "Bonanza", "Boom", "Boomboom", "Boomer", "Boosh", "Botage", "Breaker", "Burst", "Burster", "Bwam", "Bwoom", "C", "Calam", "Calamity", "Cannon", "Cannonball", "Cataclysm", "Catastro", "Catastrophe", "Clamor", "Clysm", "Crackle", "Creep", "Creeps", "Daboom", "Debris", "Defacer", "Deluge", "Demo", "Demolition", "Destroyer", "Deto", "Devil", "Dire", "Doom", "Doomsday", "Dread", "Dyna", "Dynamite", "Echo", "End", "Entee", "Explo", "Fiasco", "Fission", "Fizz", "Fizzle", "Fright", "Fusion", "Grenade", "Grief", "Griever", "Havoc", "Hish Hush", "Hisser", "Hissy", "Hissyfit", "Hush", "Igni", "Ignition", "Jeepers", "Jitter", "Jitters", "Kaboom", "Lurk", "Lurker", "Meltdown", "Mine", "Mischief", "Misery", "Mr Bombastic", "Muffle", "Muffler", "Mute", "Muzzle", "Nightmare", "Nitro", "Nuke", "Obli", "Plosion", "Quake", "Rascal", "Ravager", "Rogue", "Rumble", "Sabo", "Sabotage", "Scamp", "Scoundrel", "Scourge", "Shudders", "Sinis", "Sinister", "Siss", "Sizzler", "Slinkie", "Slither", "Snake", "Sneak", "Spark", "Stalk", "Stalker", "Stalkie", "Surge", "Surprise", "Teeyen", "Thump", "Thumper", "Thunder", "Thunderclap", "Thwack", "Tonate", "Torp", "Torpedo", "Tragedy", "Trembler", "Trepid", "Trepidity", "Trouble", "Vandal", "Vex", "Wham", "Whammie", "Whistle", "Woe", "Wrecker"];
|
|
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);
|
|
}
|
|
}
|