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.
40 lines
2.6 KiB
JavaScript
40 lines
2.6 KiB
JavaScript
var br = "";
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Agi", "Bandit", "Barb", "Barbare", "Beast", "Blue Pill", "Boor", "Briggie", "Bruise", "Bruiser", "Brute", "Brutus", "Buccaneer", "Burgle", "Butcher", "Clod", "Con", "Connie", "Crook", "Crookie", "Cynique", "Desperado", "Dr. Pill", "Execute", "Feral", "Firebrand", "Flake", "Fruitcake", "Fury", "Grief", "Griefer", "Grim", "Hoolie", "Hunter", "Incite", "Kleppie", "Klepto", "Larce", "Larcen", "Loony", "Loot", "Lootie", "Loots", "Maniac", "Mar", "Maraud", "Mug", "Muggie", "Nuke", "Pilfer", "Pilferer", "Pill Collins", "Pillie", "Pillie D.", "Plunder", "Poison", "Prowlie", "Racket", "Radic", "Rage", "Rascal", "Rauder", "Rav", "Rava", "Ravage", "Raze", "Rebel", "Red Pill", "Rogue", "Ruffian", "Ruffianne", "Rustle", "Savage", "Scepti", "Scrounge", "Slayer", "Spider", "Spoil", "Spoile", "Swindle", "Swiper", "Thug", "Troglo", "Uncle Pill", "Vandal", "Vandalle", "Venom", "Vulgare", "Wrecker", "Zealot"];
|
|
var nm2 = ["Annihilator", "Auroch", "Behemoth", "Blitz", "Blitzkrieg", "Bolt", "Bruise", "Bruiser", "Bulldozer", "Charger", "Colossus", "Crusher", "Crushinator", "Dash", "Dasher", "Deluge", "Demolisher", "Hellion", "Ilderbeast", "Illabeast", "Killager", "Pound", "Rampage", "Ravager", "Raze", "Smash", "Smasher", "Squash", "Squasher", "Stamp", "Stampede", "Stomp", "Stomper", "Storm", "Surge", "Taur", "Taurentor", "The Beast", "The Ram", "Thunder", "Tormentaur", "Trample", "Trampler", "Tyrant", "Vilderbeest", "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++) {
|
|
if (i < 6) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
nMs = nm1[rnd];
|
|
nm1.splice(rnd, 1);
|
|
} else {
|
|
rnd = Math.random() * nm2.length | 0;
|
|
nMs = nm2[rnd];
|
|
nm2.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);
|
|
}
|
|
}
|