View Single Post
  #5  
Old 05-07-2006, 01:59 PM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

There are 4 Tables with information pertaining to Faction. These tables are:

faction_list
faction_values
npc_faction
npc_faction_entries

faction_list is a list of all possible factions in the game. This base being the starting point and all the mod fields being modifiers to this base based on Class/Race/Diety - you can determine which is which based on the names and the Class/Race/Diety enumeration numbers.

faction_values only contains a character_id, faction_id and the current value of the faction for that character.

npc_faction is what I call the faction tables for the NPC's, this contains a Faction table name and ID as well as the faction id of the primary faction (the faction in which this NPC belongs to and reacts on.)

npc_faction_entries contains a list of all the entries in each faction table this starts with an ID in to the npc_faction table telling you which table this entry belongs to, then a faction ID into the faction_list table. The value field in this table is the amount either added or subtracted to PC's faction when you kill a NPC using this faction table, and I believe that last field (correct me if I am wrong) npc_value being either 1, 0 or -1 tells the NPC how to react to other creature with a primary faction of this entry. 1 being to help, 0 neutral and -1 they will attack.
__________________
Reply With Quote