Factions table question
Posted: Mon Jan 28, 2008 1:18 pm
How does this work (in theory)? I see a list of factions in the `factions` table, with a default_value, and a neg/pos offset. Maybe this table is just a placeholder, but I am curious how factions will work this way. Sorry to admit I am stuck in a EQEmu mindset, and do not mean to keep referring to this other project...
How will I setup that all Qeynosians will KOS anyone from Freeport? I do not see anywhere (yet) to set what the default faction is for a particular race, class, or deity, or city affiliation. Or, what if a particular faction kill/assist is worth more than the pre-defined negative/positive value of 1?
In some cases, I could see helping someone on City of Qeynos faction would be worth 1 faction increment, while another type of assist (or kill) could be worth 10 etc. How will we handle that? I can see a need for an npc_faction table, perhaps.
Which then brings up... do NPCs duke it out with each other in EQ2? Like say a bear wanders by a hapless farmer... does it attack based on it's faction? If so, then we might need a npc_faction_values table. Which now I could set which NPC faction awards which amount of +/- depending on their individual entries rather than globally.
I think I just confused myself.
How will I setup that all Qeynosians will KOS anyone from Freeport? I do not see anywhere (yet) to set what the default faction is for a particular race, class, or deity, or city affiliation. Or, what if a particular faction kill/assist is worth more than the pre-defined negative/positive value of 1?
In some cases, I could see helping someone on City of Qeynos faction would be worth 1 faction increment, while another type of assist (or kill) could be worth 10 etc. How will we handle that? I can see a need for an npc_faction table, perhaps.
Which then brings up... do NPCs duke it out with each other in EQ2? Like say a bear wanders by a hapless farmer... does it attack based on it's faction? If so, then we might need a npc_faction_values table. Which now I could set which NPC faction awards which amount of +/- depending on their individual entries rather than globally.
I think I just confused myself.