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.
50 lines
8.7 KiB
JavaScript
50 lines
8.7 KiB
JavaScript
var names1 = ["Adjunct", "Adjutant", "Admiral", "Air Marshal", "Airman", "Army General", "Aspirant", "Brigade General", "Brigadier", "Brigadier General", "Cadet", "Captain", "Captain-Commandant", "Chief", "Chief Engineer", "Chief Marshal", "Chief Technician", "Colonel", "Commander", "Commander General", "Commodore", "Corporal", "Corps General", "Divisional General", "Doctor", "Engineer", "Ensign", "Field Marshal", "Flag Officer", "Fleet Captain", "Fleet Commander", "Fleet General", "Fleet Officer", "Flight Captain", "Flight Corporal", "Flight Lieutenant", "Flight Officer", "Flight Sergeant", "General", "Grand Admiral", "Gunnery Sergeant", "High Colonel", "Lance Corporal", "Lieutenant", "Lieutenant Junior ", "Lieutenant Senior ", "Lieutenant-Colonel", "Lieutenant-Commander", "Lieutenant-General", "Major", "Major-General", "Marshal", "Master", "Master Chief", "Master Corporal", "Master Sergeant", "Medic", "Midshipman", "Naval Captain", "Naval Commander", "Naval General", "Naval Officer", "Officer", "Petty Officer", "Pilot", "Pilot Officer", "Principal Master", "Private", "Quartermaster", "Rear Admiral", "Recruit", "Seaman", "Senior Officer", "Sergeant", "Sergeant-Major", "Specialist", "Spy", "Squadron Leader", "Staff Sergeant", "Sub-Lieutenant", "Subcommander", "Supply Officer", "Supreme Admiral", "Supreme Commander", "Supreme General", "Supreme Master", "Technical Sergeant", "Technician", "Vice Admiral", "Vice Captain", "Vice Commander", "Vice General", "Warrant Officer", "Wing Commander", "Wing Commodore"];
|
|
var names2 = ["Adjunct", "Aerial Cavalry", "Apprentice", "Archer", "Archmage", "Berserker", "Besieger", "Buccaneer", "Captain", "City Guard", "Cleaver", "Cloud Rider", "Corporal", "Covert Infantry", "Crusher", "Defender", "Duke", "Earl", "Emperor", "Executor", "Fist", "Footsoldier", "General", "Ground Cavalry", "Ground Infantry", "High Mage", "High Priest", "Justiciar", "King", "Knight", "Lawbringer", "Lord", "Lord General", "Major", "Man-at-arms", "Marine", "Marshal", "Mountaineer", "Naval Cavalry", "Naval Infantry", "Paladin", "Patrol", "Peon", "Priest", "Private", "Reaper", "Rescuer", "Rocketeer", "Rusher", "Sage", "Scout", "Seeker", "Seer", "Serpent Rider", "Sniper", "Spec-Ops Captain", "Spec-Ops Cavalry", "Spec-Ops Infantry", "Spelunker", "Spy", "Squad Mage", "Squire", "Stalker", "Supreme Warlock", "Supreme Warlord", "Thunder Trooper", "Tresher", "Tunneler", "Warden", "Warlock", "Warlord", "Warrior"];
|
|
var names3 = ["Officer", "General", "Commander", "Lieutenant", "Chief", "Captain", "Colonel", "Sergeant", "Commandant", "Master"];
|
|
var names4 = ["Aid", "Air", "Armor", "Armored Vehicles", "Beasts", "Cavalry", "Covert Operations", "Deception", "Defence", "Demolition", "Destruction", "Explosives", "Fear", "Fire", "Flight", "Hostages", "Illusions", "Infantry", "Information", "Justice", "Mages", "Misinformation", "Morale", "Navigation", "Paladins", "Penalties", "Planes", "Planning", "Preparation", "Prisoners", "Propaganda", "Protection", "Public Relations", "Recruits", "Rescues", "Resources", "Sanctions", "Ships", "Siege Weapons", "Spec-Ops", "Supplies", "Support", "Tanks", "Terror", "Traps", "Warlocks", "Warlords", "Water", "Weapons", "Witness Protection", "the Air", "the Army", "the Berserkers", "the City", "the Code", "the Company", "the Court", "the Covert", "the Deck", "the Fleet", "the Guard", "the Guardians", "the Hounds", "the Law", "the Line", "the Mob", "the Navy", "the Order", "the Reavers", "the Riders", "the Siege", "the Underground", "the Wall", "the Watch"];
|
|
var nm1 = ["Élève Sous-Officier", "Élève-Gendarme", "Élèves-Officier", "Adjoint", "Adjudant", "Adjudant-Chef", "Adjutant", "Alpin", "Amiral", "Aspirant", "Aviateur", "Brigadier", "Brigadier-Chef", "Cadet", "Canonnier", "Capitaine", "Capitaine de Corvette", "Capitaine de Frégate", "Capitaine de Vaisseau", "Caporal", "Caporal-Chef", "Cavalier", "Chasseur", "Chef", "Chef d'Escadron", "Colonel", "Commandant", "Commandant de Vaisseau", "Commisaire Colonel", "Commissaire Capitaine", "Commissaire Commandant", "Commissaire Lieutenant", "Conducteur", "Contre-Amiral", "Corporel", "Cuirassier", "Docteur", "Enseigne de Vaisseau", "Général", "Général d'Armée Aérienne", "Général de Brigade", "Général de Corps d'Armée", "Général de Division", "Général de Vaisseau", "Général de l'Armée", "Gendarme", "Gendarme Adjoint", "Grand Amiral", "Ingénieur", "Ingénieur en Chef", "Légionnaire", "Lieutenant", "Lieutenant-Colonel", "Médecin", "Maître", "Maître Amiral", "Maître Principal", "Major", "Maréchal", "Maréchal des Logis", "Maréchal des Logis-Chef", "Maréchal en Chef", "Marsouin", "Matelot", "Officier", "Officier Adjoint", "Officier Supérieur", "Officier de Vaisseau", "Patron", "Police de l'Air", "Polite", "Premier Maître", "Quartier Maître", "Sapeur", "Second Maître", "Sergent", "Sergent d'Artillerie", "Sergent-Chef", "Soldat", "Sous-Lieutenant", "Sous-Officier", "Technicien", "Technicien en Chef", "Vice-Amiral"];
|
|
var nm2 = ["Adjoint", "Cavalerie Aérienne", "Apprenti", "Archer", "Archimage", "Berserker", "Boucanier", "Pirate", "Assiégeant", "Capitaine", "Commandant", "Gardien de la Ville", "Coureur de Nuage", "Corporel", "Broyeur", "Défenseur", "Duc", "Comte", "Empereur", "Exécuteur", "Poing", "Fantassin", "Général", "Cavalerie de Sol", "Infanterie de Sol", "Infanterie de Nuage", "Grand Mage", "Grand Prêtre", "Justiciar", "Roi", "Chevalier", "Cavalier", "Législateur", "Seigneur", "Maître", "Majeur", "Homme d'Armes", "Marin", "Maréchal", "Alpiniste", "Cavalerie Navale", "Infanterie Navale", "Paladin", "Patrouille", "Péon", "Prêtre", "Curé", "Faucheur", "Sauveteur", "Libérateur", "Sage", "Scout", "Éclaireur", "Chercheur", "Voyant", "Prophète", "Coureur de Serpent", "Tireur d'Élite", "Capitaine de Forces Spéciales", "Cavalerie de Forces Spéciales", "Infanterie de Forcers Spéciales", "Spéléologue", "Espion", "Mage d'Équipe", "Écuyer", "Châtelain", "Harceleur", "Démoniste", "Démoniste Suprême", "Chef Militaire", "Chef Militaire Suprême", "Infanterie de Tonnerre", "Tunnelier", "Gardien", "Guerrier"];
|
|
var nm3 = ["Officier", "Général", "Commander", "Lieutenant", "Directeur", "Capitaine", "Colonel", "Sergent", "Commandant", "Mâitre"];
|
|
var nm4 = ["d'Aide", "d'Armée", "d'Armes", "d'Armes de Siège", "d'Armure", "d'Avions", "d'Eau", "d'Embuscades", "d'Explosifs", "d'Illusions", "d'Infanterie", "d'Information", "d'Opérations Secrètes", "d'Ordre", "d'Otages", "de Bêtes", "de Berserkers", "de Cavalerie", "de Cavaliers", "de Chiens", "de Crainte", "de Défense", "de Démolition", "de Démonistes", "de Désinformation", "de Destruction", "de Faucheurs", "de Feu", "de Forces Aériennes", "de Forces Spéciales", "de Gardes", "de Gardiens", "de Justice", "de Magiciens", "de Morals", "de Navigation", "de Pénalités", "de Paladins", "de Peur", "de Pièges", "de Préparation", "de Prisonniers", "de Projets", "de Propagande", "de Protection", "de Provisions", "de Recrues", "de Relations Publiques", "de Ressources", "de Sanctions", "de Savetages", "de Secours", "de Secrets", "de Sièges", "de Soutien", "de Surveillance", "de Tanks", "de Terreur", "de Tromperie", "de Tueurs", "de Tuteurs", "de Véhicules Blindés", "de Vaisseaux", "de Vol", "de la Compagnie", "de la Flotte", "de la Foule", "de la Garde", "de la Marine", "de la Protection des Témoins", "de la Ville", "du Code", "du Loi", "du Mur", "du Tribunal"];
|
|
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) {
|
|
if (i < 4) {
|
|
rnd0 = Math.random() * nm3.length | 0;
|
|
rnd1 = Math.random() * nm4.length | 0;
|
|
names = nm3[rnd0] + " " + nm4[rnd1];
|
|
} else if (i < 7) {
|
|
rnd0 = Math.random() * nm1.length | 0;
|
|
names = nm1[rnd0];
|
|
} else {
|
|
rnd0 = Math.random() * nm2.length | 0;
|
|
names = nm2[rnd0];
|
|
}
|
|
} else {
|
|
if (i < 4) {
|
|
rnd0 = Math.random() * names3.length | 0;
|
|
rnd1 = Math.random() * names4.length | 0;
|
|
names = names3[rnd0] + " of " + names4[rnd1];
|
|
} else if (i < 7) {
|
|
rnd0 = Math.random() * names1.length | 0;
|
|
names = names1[rnd0];
|
|
} else {
|
|
rnd0 = Math.random() * names2.length | 0;
|
|
names = names2[rnd0];
|
|
}
|
|
}
|
|
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);
|
|
}
|