function loadPowerSets() { archetypeChoice = document.getElementById("Archetype").value document.getElementById("Primary_Powerset").options.length = 0; document.getElementById("Secondary_Powerset").options.length = 0; primarySet = document.getElementById("Primary_Powerset"); Poption0 = document.createElement("option"); Poption0.text = "Select Primary Powerset"; Poption0.value = "P_default"; Poption0.setAttribute("id", "P_default"); primarySet.add(Poption0); secondarySet = document.getElementById("Secondary_Powerset"); Soption0 = document.createElement("option"); Soption0.text = "Select Secondary Powerset"; Soption0.value = "S_default"; Soption0.setAttribute("id", "S_default"); secondarySet.add(Soption0); PrimaryPowers = document.getElementById("PrimaryPowers"); PrimaryPowers.innerHTML = ""; if (archetypeChoice == "default"){ //here we disable the primary and secondary selects// primarySet.setAttribute("disabled", true); secondarySet.setAttribute("disabled", true); //No Powarset 4 J00! YET.. ul = document.createElement("ul"); ul.id = "ulP"; ul.style["list-style-type"] = "none"; PrimaryPowers.appendChild(ul); ulid = document.getElementById("ulP"); l1_1 = document.createElement("li"); l1_1.textContent = "1:___________________"; ulid.appendChild(l1_1); l1_2 = document.createElement("li"); l1_2.textContent = "1:___________________"; ulid.appendChild(l1_1); l2 = document.createElement("li"); l2.textContent = "2:___________________"; ulid.appendChild(l2); l6 = document.createElement("li"); l6.textContent = "6:___________________"; ulid.appendChild(l6); l8 = document.createElement("li"); l8.textContent = "8:___________________"; ulid.appendChild(l8); l12 = document.createElement("li"); l12.textContent = "12:__________________"; ulid.appendChild(l12); l18 = document.createElement("li"); l18.textContent = "18:__________________"; ulid.appendChild(l18); l26 = document.createElement("li"); l26.textContent = "26:__________________"; ulid.appendChild(l26); l32 = document.createElement("li"); l32.textContent = "32:__________________"; ulid.appendChild(l32); } if (archetypeChoice != "default"){ //This is where we start filling powersets by archetype starting from value = 1// //undisable the primary and secondary selects// primarySet.disabled = false; secondarySet.disabled = false; //No Powarset 4 J00! YET.. ul = document.createElement("ul"); ul.id = "ulP"; ul.style["list-style-type"] = "none"; PrimaryPowers.appendChild(ul); ulid = document.getElementById("ulP"); l1_1 = document.createElement("li"); l1_1.textContent = "1:___________________"; ulid.appendChild(l1_1); l1_2 = document.createElement("li"); l1_2.textContent = "1:___________________"; ulid.appendChild(l1_1); l2 = document.createElement("li"); l2.textContent = "2:___________________"; ulid.appendChild(l2); l6 = document.createElement("li"); l6.textContent = "6:___________________"; ulid.appendChild(l6); l8 = document.createElement("li"); l8.textContent = "8:___________________"; ulid.appendChild(l8); l12 = document.createElement("li"); l12.textContent = "12:__________________"; ulid.appendChild(l12); l18 = document.createElement("li"); l18.textContent = "18:__________________"; ulid.appendChild(l18); l26 = document.createElement("li"); l26.textContent = "26:__________________"; ulid.appendChild(l26); l32 = document.createElement("li"); l32.textContent = "32:__________________"; ulid.appendChild(l32); if (archetypeChoice == "Blaster"){ //Blaster Primary// const blaster_Primaries = ["Archery", "Assault Rifle", "Beam Rifle", "Dark Blast", "Dual Pistols", "Electrical Blast", "Energy Blast", "Fire Blast", "Ice Blast", "Psychic Blast", "Radiation Blast", "Sonic Attack", "Water Blast"]; for (var powerSet in blaster_Primaries) { if (blaster_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = blaster_Primaries[powerSet]; Poption.value = "Blaster_"+blaster_Primaries[powerSet]; primarySet.add(Poption); } if (blaster_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = blaster_Primaries[powerSet]; Poption.value = "Blaster_"+blaster_Primaries[powerSet].split(" ")[0]+"_"+blaster_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Blaster Secondary// const blaster_Secondaries = ["Darkness Manipulation", "Devices", "Electricity Manipulation", "Energy Manipulation", "Fire Manipulation", "Ice Manipulation", "Martial Combat", "Mental Manipulation"]; for (powerSet in blaster_Secondaries) { if (blaster_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = blaster_Secondaries[powerSet]; Soption.value = "Blaster_"+blaster_Secondaries[powerSet]; secondarySet.add(Soption); } if (blaster_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = blaster_Secondaries[powerSet]; Soption.value = "Blaster_"+blaster_Secondaries[powerSet].split(" ")[0]+"_"+blaster_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Controller"){ //Controller Primary// const controller_Primaries = ["Darkness Control", "Earth Control", "Electric Control", "Fire Control", "Gravity Control", "Ice Control", "Illusion Control", "Mind Control", "Plant Control", "Water Control", "Wind Control"]; for ( powerSet in controller_Primaries) { if (controller_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = controller_Primaries[powerSet]; Poption.value = "Controller_"+controller_Primaries[powerSet]; primarySet.add(Poption); } if (controller_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = controller_Primaries[powerSet]; Poption.value = "Controller_"+controller_Primaries[powerSet].split(" ")[0]+"_"+controller_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Controller Secondary// const controller_Secondaries = ["Cold Domination", "Darkness Affinity", "Empathy", "Force Field", "Kinetics", "Nature Affinity", "Poison", "Radiation Emission", "Sonic Resonance", "Storm Summoning", "Thermal Radiation", "Time Manipulation", "Trick Arrow"]; for (powerSet in controller_Secondaries) { if (controller_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = controller_Secondaries[powerSet]; Soption.value = "Controller_"+controller_Secondaries[powerSet]; secondarySet.add(Soption); } if (controller_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = controller_Secondaries[powerSet]; Soption.value = "Controller_"+controller_Secondaries[powerSet].split(" ")[0]+"_"+controller_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Defender"){ //Defender Primary// const defender_Primaries = ["Cold Domination", "Dark Miasma", "Empathy", "Force Field", "Kinetics", "Nature Affinity", "Radiation Emission", "Sonic Resonance", "Storm Summoning", "Thermal Radiation", "Time Manipulation", "Traps", "Trick Arrow"]; for ( powerSet in defender_Primaries) { if (defender_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = defender_Primaries[powerSet]; Poption.value = "Defender_"+defender_Primaries[powerSet]; primarySet.add(Poption); } if (defender_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = defender_Primaries[powerSet]; Poption.value = "Defender_"+defender_Primaries[powerSet].split(" ")[0]+"_"+defender_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Defender Secondary// const defender_Secondaries = ["Archery", "Assault Rifle", "Beam Rifle", "Dark Blast", "Dual Pistols", "Electrical Blast", "Energy Blast", "Fire Blast", "Ice Blast", "Psychic Blast", "Radiation Blast", "Sonic Attack", "Water Blast"]; for (powerSet in defender_Secondaries) { if (defender_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = defender_Secondaries[powerSet]; Soption.value = "Defender_"+defender_Secondaries[powerSet]; secondarySet.add(Soption); } if (defender_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = defender_Secondaries[powerSet]; Soption.value = "Defender_"+defender_Secondaries[powerSet].split(" ")[0]+"_"+defender_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Scrapper"){ //Scrapper Primary// const scrapper_Primaries = ["Battle Axe", "Broad Sword", "Claws", "Dark Melee", "Dual Blades", "Electrical Melee", "Firey Melee", "Ice Melee", "Katana", "Kinetic Melee", "Martial Arts", "Psionic Melee", "Radiation Melee", "Savage Melee", "Spines", "Staff Fighting", "Street Justice", "Titan Weapons", "War Mace"]; for ( powerSet in scrapper_Primaries) { if (scrapper_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = scrapper_Primaries[powerSet]; Poption.value = "Scrapper_"+scrapper_Primaries[powerSet]; primarySet.add(Poption); } if (scrapper_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = scrapper_Primaries[powerSet]; Poption.value = "Scrapper_"+scrapper_Primaries[powerSet].split(" ")[0]+"_"+scrapper_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Scrapper Secondary// const scrapper_Secondaries = ["Bio Armor", "Dark Armor", "Electric Armor", "Energy Aura", "Firey Aura", "Ice Armor", "Invulnerability", "Radiation Armor", "Regeneration", "Shield Defense", "Super Reflexes", "Willpower"]; for (powerSet in scrapper_Secondaries) { if (scrapper_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = scrapper_Secondaries[powerSet]; Soption.value = "Scrapper_"+scrapper_Secondaries[powerSet]; secondarySet.add(Soption); } if (scrapper_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = scrapper_Secondaries[powerSet]; Soption.value = "Scrapper_"+scrapper_Secondaries[powerSet].split(" ")[0]+"_"+scrapper_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Tanker"){ //Tanker Primary// const tanker_Primaries = ["Bio Armor", "Dark Armor", "Electric Armor", "Firey Aura", "Ice Armor", "Invulnerability", "Radiation Armor", "Shield Defense", "Stone Armor", "Super Reflexes", "Willpower"]; for ( powerSet in tanker_Primaries) { if (tanker_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = tanker_Primaries[powerSet]; Poption.value = "Tanker_"+tanker_Primaries[powerSet]; primarySet.add(Poption); } if (tanker_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = tanker_Primaries[powerSet]; Poption.value = "Tanker_"+tanker_Primaries[powerSet].split(" ")[0]+"_"+tanker_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Tanker Secondary// const tanker_Secondaries = ["Battle Axe", "Dark Melee", "Dual Blades", "Elecrtical Melee", "Energy Melee", "Firey Melee", "Ice Melee", "Kinetic Melee", "Martial Arts", "Psionic Melee", "Radiation Melee", "Savage Melee", "Staff Fighting", "Stone Melee", "Street Justice", "Super Strength", "Titan Weapons", "War Mace"]; for (powerSet in tanker_Secondaries) { if (tanker_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = tanker_Secondaries[powerSet]; Soption.value = "Tanker_"+tanker_Secondaries[powerSet]; secondarySet.add(Soption); } if (tanker_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = tanker_Secondaries[powerSet]; Soption.value = "Tanker_"+tanker_Secondaries[powerSet].split(" ")[0]+"_"+tanker_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Peacebringer"){ //Peacebringer Primary// const peacebringer_Primaries = ["Luminous Blast"]; for ( powerSet in peacebringer_Primaries) { if (peacebringer_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = peacebringer_Primaries[powerSet]; Poption.value = "Peacebringer_"+peacebringer_Primaries[powerSet]; primarySet.add(Poption); } if (peacebringer_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = peacebringer_Primaries[powerSet]; Poption.value = "Peacebringer_"+peacebringer_Primaries[powerSet].split(" ")[0]+"_"+peacebringer_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Peacebringer Secondary// const peacebringer_Secondaries = ["Luminous Aura"]; for (powerSet in peacebringer_Secondaries) { if (peacebringer_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = peacebringer_Secondaries[powerSet]; Soption.value = "Peacebringer_"+peacebringer_Secondaries[powerSet]; secondarySet.add(Soption); } if (peacebringer_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = peacebringer_Secondaries[powerSet]; Soption.value = "Peacebringer_"+peacebringer_Secondaries[powerSet].split(" ")[0]+"_"+peacebringer_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Warshade"){ //Warshade Primary// const warshade_Primaries = ["Luminous Blast"]; for ( powerSet in warshade_Primaries) { if (warshade_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = warshade_Primaries[powerSet]; Poption.value = "Warshade_"+warshade_Primaries[powerSet]; primarySet.add(Poption); } if (warshade_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = warshade_Primaries[powerSet]; Poption.value = "Warshade_"+warshade_Primaries[powerSet].split(" ")[0]+"_"+warshade_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Warshade Secondary// const warshade_Secondaries = ["Luminous Aura"]; for (powerSet in warshade_Secondaries) { if (warshade_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = warshade_Secondaries[powerSet]; Soption.value = "Warshade_"+warshade_Secondaries[powerSet]; secondarySet.add(Soption); } if (warshade_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = warshade_Secondaries[powerSet]; Soption.value = "Warshade_"+warshade_Secondaries[powerSet].split(" ")[0]+"_"+warshade_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } if (archetypeChoice == "Guardian"){ //Guardian Primary// const guardian_Primaries = ["Dark Assault", "Earth Assault", "Electricity Assault", "Firey Assault", "Gun Fu", "Hellfire Assault", "Icy Assault", "Kinetic Assault", "Luminous Assault", "Mace Assault", "Martial Assault", "Military Assault", "Ninja Assault", "Psionic Assault", "Radiation Assault", "Thorny Assault", "Umbral Assault"]; for ( powerSet in guardian_Primaries) { if (guardian_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = guardian_Primaries[powerSet]; Poption.value = "Guardian_"+guardian_Primaries[powerSet]; primarySet.add(Poption); } if (guardian_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = guardian_Primaries[powerSet]; Poption.value = "Guardian_"+guardian_Primaries[powerSet].split(" ")[0]+"_"+guardian_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Guardian Secondary// const guardian_Secondaries = ["Atmospheric Composition", "Dark Composition", "Energy Composition", "Fire Composition", "Ice Composition", "Infiltrator Training", "Organic Composition", "Pain Focusing", "Radiation Composition", "Reconstructive Composition", "Stone Composition", "Temporal Composition"]; for (powerSet in guardian_Secondaries) { if (guardian_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = guardian_Secondaries[powerSet]; Soption.value = "Guardian_"+guardian_Secondaries[powerSet]; secondarySet.add(Soption); } if (guardian_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = guardian_Secondaries[powerSet]; Soption.value = "Guardian_"+guardian_Secondaries[powerSet].split(" ")[0]+"_"+guardian_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } ///EEEEEEVIIIIIILLL!!!/// //Brute// "Mahn.. I wanna Punch someone face in or somethin." if (archetypeChoice == "Brute"){ //Brute Primary// const brute_Primaries = ["Battle Axe", "Broad Sword", "Claws", "Dark Melee", "Dual Blades", "Electrical Melee", "Energy Melee", "Firey Melee", "Katana", "Kinetic Melee", "Psionic Melee", "Radiation Melee", "Savage Melee", "Staff Fighting", "Stone Melee", "Street Justice", "Super Strength", "Titan Weapons", "War Mace"]; for ( powerSet in brute_Primaries) { if (brute_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = brute_Primaries[powerSet]; Poption.value = "Brute_"+brute_Primaries[powerSet]; primarySet.add(Poption); } if (brute_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = brute_Primaries[powerSet]; Poption.value = "Brute_"+brute_Primaries[powerSet].split(" ")[0]+"_"+brute_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Brute Secondary// const brute_Secondaries = ["Bio Armor", "Dark Armor", "Electric Armor", "Energy Aura", "Firey Aura", "Invulnerability", "Radiation Armor", "Regeneration", "Shield Defense", "Stone Armor", "Super Reflexes", "Willpower"]; for (powerSet in brute_Secondaries) { if (brute_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = brute_Secondaries[powerSet]; Soption.value = "Brute_"+brute_Secondaries[powerSet]; secondarySet.add(Soption); } if (brute_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = brute_Secondaries[powerSet]; Soption.value = "Brute_"+brute_Secondaries[powerSet].split(" ")[0]+"_"+brute_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } //Stalker// "I really like you. I've been outside your window this whole time!" if (archetypeChoice == "Stalker"){ //Stalker Primary// const stalker_Primaries = ["Broad Sword", "Claws", "Dark Melee", "Dual Blades", "Electrical Melee", "Energy Melee", "Ice Melee", "Kinetic Melee", "Martial Arts", "Ninja Blade", "Psionic Melee", "Radiation Melee", "Savage Melee", "Spines", "Staff Fighting", "Street Justice"]; for ( powerSet in stalker_Primaries) { if (stalker_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = stalker_Primaries[powerSet]; Poption.value = "Stalker_"+stalker_Primaries[powerSet]; primarySet.add(Poption); } if (stalker_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = stalker_Primaries[powerSet]; Poption.value = "Stalker_"+stalker_Primaries[powerSet].split(" ")[0]+"_"+stalker_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Stalker Secondary// const stalker_Secondaries = ["Bio Armor", "Dark Armor", "Electric Armor", "Energy Aura", "Ice Armor", "Ninjitsu", "Radiation Armor", "Regeneration", "Super Reflexes", "Willpower"]; for (powerSet in stalker_Secondaries) { if (stalker_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = stalker_Secondaries[powerSet]; Soption.value = "Stalker_"+stalker_Secondaries[powerSet]; secondarySet.add(Soption); } if (stalker_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = stalker_Secondaries[powerSet]; Soption.value = "Stalker_"+stalker_Secondaries[powerSet].split(" ")[0]+"_"+stalker_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } //Mastermind// "I came up with the Whole plan, it was perfect! but you lunkheads had to ruin it! Don't let them get away! Why do I keep making my plans revolve around such failures!" if (archetypeChoice == "Mastermind"){ //Mastermind Primary// const mastermind_Primaries = ["Beast Mastery", "Demon Summoning", "Mercenaries", "Necromancy", "Ninjas", "Robotics", "Thugs"]; for ( powerSet in mastermind_Primaries) { if (mastermind_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = mastermind_Primaries[powerSet]; Poption.value = "Mastermind_"+mastermind_Primaries[powerSet]; primarySet.add(Poption); } if (mastermind_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = mastermind_Primaries[powerSet]; Poption.value = "Mastermind_"+mastermind_Primaries[powerSet].split(" ")[0]+"_"+mastermind_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Mastermind Secondary// const mastermind_Secondaries = ["Cold Domination", "Dark Miasma", "Force Field", "Nature Affinity", "Pain Domination", "Poison", "Sonic Resonance", "Storm Summoning", "Thermal Radiation", "Time Manipulation", "Traps", "Trick Arrow"]; for (powerSet in mastermind_Secondaries) { if (mastermind_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = mastermind_Secondaries[powerSet]; Soption.value = "Mastermind_"+mastermind_Secondaries[powerSet]; secondarySet.add(Soption); } if (mastermind_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = mastermind_Secondaries[powerSet]; Soption.value = "Mastermind_"+mastermind_Secondaries[powerSet].split(" ")[0]+"_"+mastermind_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } //Dominator// "you know you like the way I hold you, yes the handcuffs are necessary." if (archetypeChoice == "Dominator"){ //Dominator Primary// const dominator_Primaries = ["Darkness Control", "Earth Control", "Electric Control", "Fire Control", "Gravity Control", "Ice Control", "Mind Control", "Plant Control", "Water Control", "Wind Control"]; for ( powerSet in dominator_Primaries) { if (dominator_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = dominator_Primaries[powerSet]; Poption.value = "Dominator_"+dominator_Primaries[powerSet]; primarySet.add(Poption); } if (dominator_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = dominator_Primaries[powerSet]; Poption.value = "Dominator_"+dominator_Primaries[powerSet].split(" ")[0]+"_"+dominator_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Dominator Secondary// const dominator_Secondaries = ["Dark Assault", "Earth Assault", "Electricity Assault", "Energy Assault", "Firey Assault", "Icy Assault", "Kinetic Assault", "Martial Assault", "Psionic Assault", "Thorny Assault"]; for (powerSet in dominator_Secondaries) { if (dominator_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = dominator_Secondaries[powerSet]; Soption.value = "Dominator_"+dominator_Secondaries[powerSet]; secondarySet.add(Soption); } if (dominator_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = dominator_Secondaries[powerSet]; Soption.value = "Dominator_"+dominator_Secondaries[powerSet].split(" ")[0]+"_"+dominator_Secondaries[powerSet].split(" ")[1]; secondarySet.add(Soption); } } } //Corruptor// "Buy Council cookies, help them get their council badges. drink enrich, all the cool kids are doing it now. A little superadine never hurt anyone. The facemaker can make any dream come true. Hamidon wants to save the Earth not destroy it. Theres a job if you want it, pays well, no experience needed, competitive salaries, room for promotion, talk to the people over at Chillin' villains." if (archetypeChoice == "Corruptor"){ //Corruptor Primary// const corruptor_Primaries = ["Archery", "Assault Rifle", "Beam Rifle", "Dark Blast", "Dual Pistols", "Electrical Blast", "Energy Blast", "Fire Blast", "Ice Blast", "Psychic Blast", "Radiation Blast", "Sonic Attacks", "Water Blast"]; for ( powerSet in corruptor_Primaries) { if (corruptor_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = corruptor_Primaries[powerSet]; Poption.value = "Corruptor_"+corruptor_Primaries[powerSet]; primarySet.add(Poption); } if (corruptor_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = corruptor_Primaries[powerSet]; Poption.value = "Corruptor_"+corruptor_Primaries[powerSet].split(" ")[0]+"_"+corruptor_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } } //Corruptor Secondary// const corruptor_Secondaries = ["Cold Domination", "Dark Miasma", "Kinetics", "Nature Affinity", "Pain Domination", "Poison", "Radiation Emission", "Sonic Resonance", "Storm Summoning", "Thermal Radiation", "Time Manipulation", "Traps", "Trick Arrow"]; for (powerSet in corruptor_Secondaries) { if (corruptor_Secondaries[powerSet].includes(" ") == false){ Soption = document.createElement("option"); Soption.text = corruptor_Secondaries[powerSet]; Soption.value = "Corruptor_"+corruptor_Secondaries[powerSet]; secondarySet.add(Soption); } if (corruptor_Secondaries[powerSet].includes(" ") == true){ Soption = document.createElement("option"); Soption.text = corruptor_Secondaries[powerSet]; Soption.value = "Corruptor_"+corruptor_Secondaries[powerSet].split(" ")[0]+"_"+corruptor_Secondaries[powerSet].split(" ")[1]; //comment if any secondary set includes 3 words secondarySet.add(Soption); //comment if any secondary set includes 3 words //Soption.value = "Corruptor_" //uncomment this code line if any set has more than 3 words! //Two-Word-Long Powerset Name (only needed for differentiation between Arachnos AT sets)// //if ( corruptor_Secondaries[powerSet].split(" ").length == 2){ // soption.value = Soption.value+corruptor_Secondaries[powerSet].split(" ")[0]+"_"+corruptor_Secondaries[powerSet].split(" ")[1]; // secondarySet.add(Soption); //} //Three-Word-Long Powerset Name (only really for Arachnos ATs)// //if ( powerSet.split(" ").length == 3){ // Soption.value = Soption.value+powerSet.split(" ")[0]+"_"+powerSet.split(" ")[1]+"_"+powerSet.split(" ")[2]; // secondarySet.add(Soption); //} } } } //Arachnos Widow// "no, I don't think you want to think that about me, I am not a nice girl. Too many corpses oogled me the way you do." if (archetypeChoice == "ArachnosWidow"){ //ArachnosWidow Primary// const arachnosWidow_Primaries = ["Fortunata Training", "Night Widow Training", "Widow Training"]; for ( powerSet in arachnosWidow_Primaries) { if (arachnosWidow_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = arachnosWidow_Primaries[powerSet]; Poption.value = "ArachnosWidow_"+arachnosWidow_Primaries[powerSet]; primarySet.add(Poption); } if (arachnosWidow_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = arachnosWidow_Primaries[powerSet]; Poption.value = "ArachnosWidow_" //Two-Word-Long Powerset Name (only needed for differentiation between Arachnos AT sets)// if ( arachnosWidow_Primaries[powerSet].split(" ").length == 2){ Poption.value = Poption.value+arachnosWidow_Primaries[powerSet].split(" ")[0]+"_"+arachnosWidow_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } //Three-Word-Long Powerset Name (only really for Arachnos ATs)// if ( arachnosWidow_Primaries[powerSet].split(" ").length == 3){ Poption.value = Poption.value+arachnosWidow_Primaries[powerSet].split(" ")[0]+"_"+arachnosWidow_Primaries[powerSet].split(" ")[1]+"_"+arachnosWidow_Primaries[powerSet].split(" ")[2]; primarySet.add(Poption); } } } //Secondaries for this AT must be set by a script on the Primary Powerset select menu. } //Arachnos Soldier// "All your Base is Ours!" if (archetypeChoice == "ArachnosSoldier"){ //ArachnosSoldier Primary// const arachnosSoldier_Primaries = ["Arachnos Soldier", "Bane Spider Soldier", "Crab Spider Soldier"]; for ( powerSet in arachnosSoldier_Primaries) { if (arachnosSoldier_Primaries[powerSet].includes(" ") == false){ Poption = document.createElement("option"); Poption.text = arachnosSoldier_Primaries[powerSet]; Poption.value = "ArachnosSoldier_"+arachnosSoldier_Primaries[powerSet]; primarySet.add(Poption); } if (arachnosSoldier_Primaries[powerSet].includes(" ") == true){ Poption = document.createElement("option"); Poption.text = arachnosSoldier_Primaries[powerSet]; Poption.value = "ArachnosSoldier_" //Two-Word-Long Powerset Name (only needed for differentiation between Arachnos AT sets)// if ( arachnosSoldier_Primaries[powerSet].split(" ").length == 2){ Poption.value = Poption.value+arachnosSoldier_Primaries[powerSet].split(" ")[0]+"_"+arachnosSoldier_Primaries[powerSet].split(" ")[1]; primarySet.add(Poption); } //Three-Word-Long Powerset Name (only really for Arachnos ATs)// if ( arachnosSoldier_Primaries[powerSet].split(" ").length == 3){ Poption.value = Poption.value+arachnosSoldier_Primaries[powerSet].split(" ")[0]+"_"+arachnosSoldier_Primaries[powerSet].split(" ")[1]+"_"+arachnosSoldier_Primaries[powerSet].split(" ")[2]; primarySet.add(Poption); } } } //Secondaries for this AT must be set by a script on the Primary Powerset select menu. } } }