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 = ["Ash", "Ashe", "Ashes", "Aura", "Aurora", "Bayle", "Beacon", "Beak", "Beam", "Blaize", "Blyze", "Bonfi", "Boyle", "Brilli", "Brim", "Brun", "Cendis", "Cinder", "Cinders", "Claire", "Coale", "Cole", "Crux", "Dawn", "Dazzle", "Elemence", "Ember", "Fenix", "Fernis", "Ferno", "Fervis", "Fiere", "Flair", "Flambeau", "Flare", "Flarion", "Flaris", "Flash", "Flaym", "Flayme", "Fuegis", "Fuego", "Fume", "Fumus", "Fury", "Fusilis", "Fye", "Fyre", "Glint", "Glo", "Gloss", "Glow", "Heat", "Icarus", "Igneos", "Igneous", "Ignis", "Ignit", "Ignite", "Illume", "Illumine", "Incedis", "Incendius", "Inferno", "Infernus", "Kindle", "Kindra", "Lavar", "Lavis", "Lighte", "Lighto", "Lucent", "Lumino", "Luminos", "Lyte", "Magmis", "Nova", "Novis", "Pharos", "Pire", "Pyre", "Pyro", "Pyroc", "Radiance", "Ragnis", "Raise", "Ray", "Raye", "Ryse", "Ryze", "Scald", "Scaldor", "Scaldris", "Scorch", "Scorchey", "Scorchis", "Sear", "Sheen", "Shimmer", "Shine", "Sigmis", "Sizzle", "Smo", "Smoke", "Smoldris", "Smulder", "Soar", "Sol", "Sola", "Solar", "Solaris", "Soleil", "Soot", "Soots", "Spark", "Sparkle", "Sparkles", "Sunbeam", "Sunny", "Surge", "Tempris", "Tinder", "Torch", "Viva", "Volcanis", "Zeal"];
|
|
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);
|
|
}
|
|
}
|