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.
35 lines
5.1 KiB
JavaScript
35 lines
5.1 KiB
JavaScript
var nm1 = ["Queen", "Matriarch", "Mother", "Father", "Admiral", "Baron", "Blessed", "Caesar", "Captain", "Cardinal", "Chairman", "Chief", "Chieftain", "Commander", "Corporal", "Count", "Defender", "Divine", "Dom", "Duke", "Earl", "Elder", "Eminence", "Emperor", "Exarch", "General", "Governor", "Grand Master", "Guardian", "Headman", "Herald", "Imperator", "King", "Lord", "Master", "Palatine", "Paragon", "Patriarch", "Pharaoh", "President", "Prime", "Prince", "Protector", "Ruler", "Shogun", "Sultan"];
|
|
var nm2 = ["Arrows", "Ash", "Blue", "Bones", "Conviction", "Damned", "Darkness", "Dawn", "Death", "Demons", "Dragons", "Dreams", "Dusk", "Dwarves", "Elves", "Faith", "Fear", "Fire", "Fools", "Fortitude", "Gold", "Green", "Heaven", "Hell", "Ice", "Iron", "Justice", "Kingdoms", "Life", "Light", "Men", "Nations", "Nature", "New Kingdom", "Night", "Nightmares", "the Old Kingdom", "Orcs", "Order", "Peace", "Purity", "Realms", "Red", "Sand", "Ships", "Silver", "Skulls", "Snow", "Steel", "Swords", "Thieves", "Unity", "Universe", "Virtue", "War", "Watch", "Water", "the Dead", "the Desert", "the Dominion", "the Earth", "the East", "the Fields", "the Fleet", "the Forests", "the Future", "the Gods", "the Lakes", "the Lands", "the Living", "the Marsh", "the Millenium", "the Moon", "the Mountains", "the New Age", "the North", "the Ocean", "the People", "the Plains", "the Reach", "the Realm", "the Rivers", "the Seas", "the Skies", "the Small", "the South", "the Stars", "the Sun", "the Titans", "the Undead", "the Vale", "the Valleys", "the West", "the Wild", "the Winds", "the Wise", "the World"];
|
|
var nm3 = ["Administrator", "Assistant", "Baron", "Captain", "Chairman", "Chief", "Consul", "Curator", "Delegate", "Director", "Earl", "Exarch", "Governor", "Head", "Headman", "Lady", "Liaison", "Lord", "Master", "Matriarch", "Minister", "Noble", "Official", "Overlord", "Patriarch", "Prime", "Professor", "Secretary", "Sir", "Tribune"];
|
|
var nm4 = ["Affairs", "Agents", "Agriculture", "Alliances", "Armor", "Aviation", "Borders", "Bows", "City Planning", "Coin", "Commerce", "Communication", "Control", "Culture", "Death", "Defense", "Development", "Education", "Emissaries", "Employment", "Energy", "Farming", "Finance", "Fish", "Food", "Forestry", "Gold", "Guards", "Health", "Hope", "Housing", "Immigration", "Industry", "Information", "Iron", "Justice", "Labour", "Law", "Magic", "Medicine", "Merchants", "Mining", "Money", "Natural Resources", "Peace", "Planning", "Poison", "Protection", "Relations", "Resources", "Revenue", "Science", "Scouts", "Secrets", "Security", "Shields", "Ships", "Silver", "Slaves", "Spies", "Sports", "Steel", "Strategy", "Swords", "Tactics", "Technology", "Tourism", "Toxins", "Trade", "Transport", "Treasure", "Vigor", "Virtue", "War", "Warfare", "Water", "Weapons", "Well-Being", "the Future", "the Marine"];
|
|
var nm5 = ["Priestess", "High Priestess", "Abbot", "Angelic", "Apostle", "Archbishop", "Archdeacon", "Archpriest", "Bishop", "Cardinal", "Chancellor", "Chaplain", "Cleric", "Counselor", "Deacon", "Divine", "Doctor", "Elder", "Exalted", "Father", "Guru", "High Priest", "Imam", "Lama", "Mage", "Magi", "Matriarch", "Minister", "Missionary", "Monk", "Mother", "Novice", "Nun", "Paladin", "Pastor", "Patriarch", "Preacher", "Priest", "Rabbi", "Reverend", "Sage", "Saint", "Seer", "Sensei", "Shaman", "Templar", "Warlock", "Witch"];
|
|
var nm6 = ["Birth", "Bliss", "Blood", "Bones", "Darkness", "Death", "Devotion", "Divinity", "Dreams", "Eternity", "Faith", "Freedom", "Genesis", "Gold", "Gracy", "Healing", "Life", "Light", "Mercy", "Misery", "Nature", "Nightmares", "Peace", "Pestinence", "Piety", "Pure Hearts", "Purity", "Rebirth", "Sanctity", "Shadow", "Silence", "Silver", "Solitude", "Spirits", "Time", "Virtue", "Worship", "the Arcane", "the Blue", "the Dead", "the Earth", "the East", "the Flame", "the Gardens", "the King", "the Light", "the Living", "the Moon", "the Night", "the North", "the Phoenix", "the Realm", "the Red", "the Sands", "the Sea", "the South", "the Stars", "the Sun", "the Undead", "the Undying", "the Veil", "the Voice", "the Void", "the West", "the White", "the World"];
|
|
var br = "";
|
|
|
|
function nameGen() {
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (i < 3) {
|
|
rnd = Math.floor(Math.random() * nm1.length);
|
|
rnd2 = Math.floor(Math.random() * nm2.length);
|
|
names = nm1[rnd] + " of " + nm2[rnd2];
|
|
} else if (i < 7) {
|
|
rnd = Math.floor(Math.random() * nm3.length);
|
|
rnd2 = Math.floor(Math.random() * nm4.length);
|
|
names = nm3[rnd] + " of " + nm4[rnd2];
|
|
} else {
|
|
rnd = Math.floor(Math.random() * nm5.length);
|
|
rnd2 = Math.floor(Math.random() * nm6.length);
|
|
names = nm5[rnd] + " of " + nm6[rnd2];
|
|
}
|
|
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);
|
|
}
|