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.
26 lines
7.9 KiB
JavaScript
26 lines
7.9 KiB
JavaScript
var nm1 = ["Administrative", "Advanced Weaponry", "Aerial", "Aeronautical", "Air Assault", "Air-Defense", "Airborne", "Aircraft", "Airforce", "Ammo Supply", "Android", "Angel", "Animal", "Antiaircraft", "Aquatic", "Archery", "Armored", "Artillery", "Assault", "Avian", "Aviation", "Ballistae", "Banner", "Barrage", "Barricade", "Battle Drum", "Biological", "Blitz", "Blitzkrieg", "Bombardment", "Border", "Bulwark", "Camouflage", "Cannon", "Cartographing", "Catapult", "Catering", "Cavalry", "Challenger", "Champion", "Chaos", "Charge", "Chariot", "Chemical", "Chemical Defense", "Chopper", "Cleanup", "Commando", "Communications", "Construction", "Coordination", "Correctional", "Covert", "Creature", "Crossbow", "Desert", "Discipline", "Domestic Communications", "Domestication", "Doom", "Dragon", "Education", "Elephant", "Emergency", "Energy", "Enforcement", "Engineering", "Eradication", "Escort", "Espionage", "Ethereal", "Extraction", "Financial", "Fire", "First Response", "Flamethrower", "Flintlock", "Forest", "Galactic", "Garrison", "Ghost", "Gladiator", "Glory", "Grenadier", "Grunt", "Guard", "Guardian", "Guerilla", "Healer", "Hidden", "Honor", "Hostage", "Hunter", "Imperial", "Infantry", "Information", "Intergalactic", "Internal Relations", "International Relations", "Interrogation", "Invasion", "Investigation", "Jungle", "Jurisdictional", "Knight", "Labor", "Legal", "Legionnaire", "Legislative", "Liberation", "Light", "Local Relations", "Logistics", "Lunar", "Mage", "Magic", "Maintenance", "Marine", "Maritime", "Martyr", "Mastermind", "Mechanical", "Media", "Medical", "Mercenary", "Mercurial", "Mercy", "Missile Defense", "Mobile", "Mortar", "Mountain", "Mounted", "Nautical", "Naval", "Night", "Nightmare", "Nuclear", "Nuclear Defense", "Nutrition", "Ocean", "Offensive", "Onslaught", "Orbital", "Orbital Defense", "Overwatch", "Paladin", "Paratrooper", "Pathfinder", "Patrol", "Peon", "Phantom", "Pirate", "Plague", "Preparation", "Preservation", "Prisoner", "Private", "Provision", "Public Relations", "Ranger", "Reconnaisance", "Reconstruction", "Recovery", "Recreation", "Red Alert", "Redemption", "Regulation", "Rehabilitation", "Reinforcement", "Relief", "Rescue", "Resistance", "Restoration", "Rifle", "River", "Robot", "Rogue", "Saddle", "Salvage", "Salvation", "Sanction", "Scouting", "Sea", "Security", "Sentinel", "Shadow", "Shield", "Shock", "Siege", "Signal", "Skirmish", "Slave", "Slingshot", "Sniper", "Snow", "Space", "Spec Ops", "Special Forces", "Stabilisation", "Stakeout", "Stalker", "Stealth", "Storm", "Stormtrooper", "Strategy", "Subaquatic", "Submarine", "Subterranean", "Subterrestrial", "Suicide", "Sunken", "Supervision", "Supply", "Support", "Surveillance", "Survey", "Surveyance", "Sustenance", "Tank", "Telecommunications", "Templar", "Terror", "Thunder", "Torment", "Torture", "Training", "Transport", "Trauma", "Trebuchet", "Treetop", "Trench", "Tunneler", "UAV", "Undercover", "Underground", "Unmanned", "Vanguard", "Veteran", "Veterinary", "Victim Aid", "Victory", "Volunteer", "War Dog", "War Machine", "Warband", "Warhammer", "Warmaster", "Warrior", "Weaponry", "Winged"];
|
|
var nm2 = ["Éthérée", "Aérienne", "Aéronautique", "Aéroporté", "Administrative", "Ailée", "Androïde", "Antiaérienne", "Aquatique", "Armuriée", "Atomique", "Aviaire", "Balistique", "Biologique", "Blindée", "Cachée", "Championne", "Chimique", "Clandestine", "Correctionnelle", "Couverte", "Draconique", "Financière", "Galactique", "Impériale", "Intergalactique", "Invisible", "Juridictionnelle", "Légale", "Législative", "Lunaire", "Mécanique", "Médicale", "Magique", "Marine", "Maritime", "Mercurielle", "Mobile", "Montée", "Nautique", "Navale", "Nucléaire", "Orbitale", "Privée", "Provocante", "Robotique", "Sans Équipage", "Secrète", "Sellée", "Sous-Marine", "Souterraine", "Spatiale", "Subaquatique", "Submergée", "Subterrestre", "Vétérinaire", "Volatile", "Volontaire", "d'Éclaireurs", "d'Éducation", "d'Éléphants", "d'Énergie", "d'Éradication", "d'Aéronef", "d'Aide aux Victimes", "d'Alerte Rouge", "d'Anges", "d'Animaux", "d'Approvisionnement de Munitions", "d'Arbalètes", "d'Armée de l'Air", "d'Armements", "d'Armes", "d'Armes Avancées", "d'Arpentage", "d'Artillerie", "d'Assaut", "d'Assaut Aérien", "d'Attaque", "d'Avant-Garde", "d'Aviation", "d'Avions", "d'Entraînement", "d'Entretien", "d'Escarmouches", "d'Esclavage", "d'Esclaves", "d'Escortes", "d'Espionnage", "d'Extermination", "d'Extraction", "d'Hélicoptères", "d'Harceleurs", "d'Honneur", "d'Infanterie", "d'Infiltration", "d'Information", "d'Ingénierie", "d'Interrogations", "d'Invasions", "d'Investigation", "d'Océan", "d'Ombre", "d'Orage", "d'Otages", "d'Urgence", "de Balistes", "de Bandes de Guerre", "de Bannières", "de Barrage", "de Barrières", "de Barricades", "de Blitz", "de Bombardements", "de Boucliers", "de Camouflage", "de Canons", "de Cartographie", "de Catapultes", "de Cauchemar", "de Cavalerie", "de Champion", "de Chaos", "de Chariots", "de Chasseurs", "de Chevaliers", "de Chiens de Guerre", "de Choc", "de Commandos", "de Communications", "de Communications Domestiques", "de Construction", "de Contrôle", "de Coordination", "de Créatures", "de Défense Aérienne", "de Défense Antimissile", "de Défense Chimique", "de Défense Nucléaire", "de Défense Orbitale", "de Désert", "de Destin", "de Destruction", "de Discipline", "de Dispositions", "de Domestication", "de Fantômes", "de Feu", "de Forêts", "de Forces Spéciales", "de Fortification", "de Fourniture", "de Frontières", "de Fusils", "de Gardes", "de Gardiens", "de Garnisons", "de Gladiateurs", "de Gloire", "de Grenadiers", "de Grogneurs", "de Guérilla", "de Guérisseurs", "de Guerre Éclair", "de Guerriers", "de Jungle", "de Légionnaires", "de Labeur", "de Lance-Flammes", "de Lance-Pierres", "de Libération", "de Logistique", "de Lumière", "de Médias", "de Machination", "de Machines de Guerre", "de Magiciens", "de Magie", "de Marin", "de Martyrs", "de Mercenaires", "de Mers", "de Montagne", "de Mortier", "de Neige", "de Nettoyages", "de Nuit", "de Nutrition", "de Péons", "de Paladins", "de Parachutistes", "de Patrouilles", "de Pestes", "de Pirates", "de Pitié", "de Préparation", "de Préservation", "de Première Réponse", "de Prisonniers", "de Provisions", "de Règlements", "de Récréation", "de Récupération", "de Rédemption", "de Réhabilitions", "de Résistance", "de Rétablissement", "de Rangers", "de Reconnaissance", "de Reconstruction", "de Relèvement", "de Relations Internationales", "de Relations Internes", "de Relations Locales", "de Relations Publiques", "de Rempart", "de Renforcements", "de Restauration", "de Rivières", "de Sécurité", "de Salut", "de Sanctions", "de Sauvetage", "de Secours", "de Sentinelles", "de Sièges", "de Signaux", "de Silex", "de Sondage", "de Soulagements", "de Spectres", "de Stabilisation", "de Stratégie", "de Subsistance", "de Support", "de Surveillance", "de Télécommunications", "de Tambours de Combat", "de Tanks", "de Tempête", "de Templiers", "de Terreur", "de Tir à l'Arc", "de Tireurs d'Élite", "de Tonnerre", "de Torture", "de Tourment", "de Tranchées", "de Transport", "de Traumatismes", "de Travail", "de Vétérans", "de Victoire"];
|
|
var br = "";
|
|
|
|
function nameGen(type) {
|
|
var tp = type;
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (tp === 1) {
|
|
rnd = Math.random() * nm2.length | 0;
|
|
names = "Division " + nm2[rnd];
|
|
} else {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
names = nm1[rnd] + " Division";
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(names));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|