---Keys  map what we put on a line. they are arrays (ipairs) line going down.
-- Sequence to key (Pub and grp)
grp1tokey = {
--EP
"11",
"21",
"31",
"41",
"51",
--DC
"12",
"22",
"32",
"42",
"52",
--AD
"13",
"23",
"33",
"43",
"53",
--Coldharbour
"14",
--Morrowind
}

--Some are missing
grp2tokey = {
"11",	--Fungal Grotto
"21",	--Darkshade
"12",	--Spindleclutch
"22",	--Wayrest Sewers
"32",	--Crypt of Hearts
"13",	--Banished Cells
"23",	--Elden Hollow
"33",	--City of Ash
}

pubtokey = {
--EP
"11",
"21",
"31",
"41",
"51",
--DC
"12",
"22",
"32",
"42",
"52",
--AD
"13",
"23",
"33",
"43",
"53",
--Coldharbour
"14",
--Morrowind
"24",
"34",
}
DLC2key={
--Orsinium
"11",
"21",
"31",
"41",
-- IC
"12",
"22",
"32",
"42",
--hist
"13",
"23",
"33",
"43",
--Horns
"14",
"24",
"34",
"44",

--Bones
"15",
"25",
"35",
"45",

--Clock
"16",
"26",
"36",
"46",
}

--Craglorn Trials

Trials2key= {}
Trials2key["N"] = {
"11",	-- "Hel Ra Citadel",
"21",	-- "Aetherian Archive"
"31",	-- "Sanctum Ophidia",
"41",	-- "Dragonstar Arena Champion",
"51",	-- "Halls of Fabrication Conqueror"
"61",	-- "Maw of Lorkhaj Completed"
}

Trials2key["V"] = {
"11",	-- "Hel Ra Citadel",
"21",	-- "Aetherian Archive"
"31",	-- "Sanctum Ophidia",
"41", 	-- "Dragonstar Arena",
"51",	-- "Time Trial: Aetherian Archive", "Completed the Aetherian Archive within a time limit of 33 minutes.",
"61",	-- "Sanctum Ophidia Completed", "Defeat the Celestial Serpent."
"71",	-- "Time Trial: Sanctum Ophidia", "Completed the Sanctum Ophidia within a time limit of 33 minutes.",
"81",	-- "Dragonstar Arena Champion",  "Conquer all challengers and earn the title of Dragonstar Arena Champion!",
"91",	-- "Halls of Fabrication Conqueror", "Defeat the Assembly General in Veteran Halls of Fabrication.",
"101",	-- "Time Trial: Halls of Fabrication", "Complete Veteran Halls of Fabrication within a time limit of 40 minutes. Your trial begins when you enter Abanabi Cave beneath Tel Fyr.",
"111",	-- "Well-Oiled Machine", "Complete Veteran Halls of Fabrication without suffering a group member death.",
"112",	-- "Power House", "Defeat the Pinnacle Factotum without ever using energy from the generator to break a Refabricated Sphere's shield, in Veteran Halls of Fabrication.",
"113",	-- "Planned Obsolescence", ,"Defeat the Refabrication Committee in Veteran Halls of Fabrication without ever allowing the Reclaimer to overcharge a Ruined Factotum.",
"114",	-- "Environmentally Conscious", "Defeat the Assembly General in Veteran Halls of Fabrication without any group member dying to traps and hazards.",
"115", 	-- "Terminal Terminator", "Defeat the Assembly General in Veteran Halls of Fabrication without letting any Terminals complete their activation sequence.",
"116",	-- "Kill Process", "Defeat one Hunter-Killer Fabricant while the other still has at least half of its health remaining, before defeating the remaining Fabricant in Veteran Halls of Fabrication.",
"117",	-- "Arc-Custodian",, "In Veteran Halls of Fabrication, defeat the Archcustodian using six or fewer Shock Pylons without ever missing an opportunity to disable it with one.",
"118",	-- "Maw of Lorkhaj Conqueror", "Defeat Rakkhat, Fang of Lorkhaj and his legions of dro-m'Athra in Veteran Maw of Lorkhaj.",
"119",	-- "Time Trial: Maw of Lorkhaj", "Complete Veteran Maw of Lorkhaj within a time limit of 40 minutes. Your trial begins when you cross the threshold of the Temple of Seven Riddles.",
"120",	-- "Maw of Lorkhaj: Unchained Ambush", "Use both chain switches within ten seconds in Veteran Maw of Lorkhaj, then defeat the dro-m'Athra invaders.",
"121",	-- "Maw of Lorkhaj: Stainless Souls", "Defeat Rakkhat without anyone dying while afflicted by the Breath of Lorkhaj.",
"122",	-- "Maw of Lorkhaj: Two-Moons Dance", "In Veteran Maw of Lorkhaj, force Rakkhat into his final phase within two lunar cycles, then defeat him.",
"123",	-- "Maw of Lorkhaj: Void Avoided", "Defeat Rakkhat in Veteran Maw of Lorkhaj, with a maximum of two players ever being afflicted by the Breath of Lorkhaj.",
"124",	-- "Maw of Lorkhaj: Fang Focused", "Defeat Rakkhat in Veteran Maw of Lorkhaj, with at least three dro-m'Athra Dreadstalkers still alive.",
"125",	-- "Maw of Lorkhaj: Moons' Champion", "Complete all achievements related to defeating Rakkhat, Fang of Lorkhaj in Veteran Maw of Lorkhaj.",
"126",	-- "Maw of Lorkhaj: Spotless Triumph",, "Complete Veteran Maw of Lorkhaj without suffering a group member death.",
}
Trials2key["VH"] = {
"11",	-- "Hel Ra Citadel",
"21",	-- "Aetherian Archive"
"31",	-- "Sanctum Ophidia",
"41",	-- "Halls of Fabrication Vanquisher", "Defeat the Assembly General after empowering it by resetting the circuit breaker in Veteran Halls of Fabrication.",
"51",	-- "Thieves Guild: "Maw of Lorkhaj Difficult Mode"
"61",	-- "Craglorn Trials Conqueror",,"Complete Hel Ra Citadel, Aetherian Archive, and Sanctum Ophidia at their highest difficulties.",
}