Nystul wrote: ↑
Tue May 08, 2018 6:55 pm
I got a question about factions and faction ids, more specific FactionData:
is ggroup the id of the faction/guild a npc belongs to and sgroup the subgroup inside the faction/guild?
if yes why do npcs that are members of the mages guild have faction id 10 but the guild code for the mages guild (MagesGuild.cs) says that faction id is 40?
if no, where do I get the faction id for npcs instead?
Yeah, you assumed correctly:
ggroup (=Guild Group):
Faction they do belong to ("People of...", "Mages Guild",...)
sgroup (=Social Group):
What they are in Daggerfall/respective in their Faction ("Scholar", "Merchant", "Noble", "Underworld",...)
Regarding the ID:
Both are correct. for the Mages Guild the faction ID is 40 and the ggroup is 10. By the way is faction ID 40 already correctly associated with the ggroup 10 for the Mages Guild, as well as other Mage Guild associated like The Master at Arms or The Academics which are also ggroup 10. What I can tell you is that ggroup is solely used within the FACTIONS.TXT (haven't seen it somewhere else) for grouping and the faction ID is the number associated with the Guild/Person/Temple. For referencing the Faction I would therefore go for the factions ID, as they are also used in the TEXT.RSC (as far as I know). I am not 100% sure, though but it makes the most sense this way. Nevertheless, the numbers seem correct for me in this example.
You have to be aware that the original FACTIONS.TXT has some serious mistakes and is here and there a bit messed up. For example are The Patricians (Mages Guild trainers) tagged up as belonging to the underworld and as a region. Or some regions are associated with the wrong race (Alik'ra as Breton instead of Redguard). There are already fixes out there for that.