View Full Version : Give faction status
I have several turn-in functions in which faction is granted for the turn-in. What I really need for one of them is to grant full ally status. I know ally = 1 in the 1-9 faction system. But I have not been able to figure out how to grant a "1" to a player. The quest::faction() function grants a faction amount, but does not grant ally status. I want to make it so that a player with a completely opposing faction can gain full "citizenship" into another "kingdom" (another faction) when he chooses to turn in a certain item to the king of that realm. The problem I have had is, if a player has a negative faction due with a realm due to killing the npcs of that realm, no amount of faction granting will be enough to make ally with that faction. Is there a way to grant ally status outside of granting faction?
So_1337
08-01-2008, 05:54 PM
Full faction chart:
1101+ -- Ally
701-1100 -- Warmly
401-700 -- Kindly
101-400 -- Amiably
0-100 -- Indifferently
-100 to -1 -- Apprehensively
-700 to -101 -- Dubiously
-999 to -701 -- Threateningly
-1000 -- Ready to attack
So to take someone from full KOS to ally, give them something like 2000 faction points for the turn-in.
Here are some oddities:
1. The "faction values" table indicates my char is actually -10769 (negative 10769) to that faction (shouldn't that be KOS?). Yet I con "kindly" to the npcs of that faction
2. I just now did several turn-ins in a row, each granting 4k faction
3. I am now over 5k faction and npcs still con "kindly"
What explains this?
Another anomaly. There are at least two factions that I created and that I am dubious to when I con, but that do not even show up in the "faction values" table.
Striat
08-01-2008, 06:51 PM
Another anomaly. There are at least two factions that I created and that I am dubious to when I con, but that do not even show up in the "faction values" table.
faction values refer to changes within game. DEFAULT faction is defined by faction_list table. So, If you have +4000 in faction_value, for example, and faction_list base is -4000, you'd be at 0.
I just now gave myself 37k faction (the upper limit is just above that), and I still con kindly to this faction. Is there something else beside the faction values table that determines this?
Grrr . . . My bad,
I had forgotten that the faction_values table uses the faction_id from the faction_list table and not the ID from the npc_faction table. I'm amazed any of my quests actually work.
One more question: Is the value in the npc_faction_id of the npc_types table supposed to correspond to the value in the primaryfaction column of the npc_faction table or to the value in the id column of the npc_faction table?
Striat
08-01-2008, 08:25 PM
npc_faction_id in npc_types corresponds to the actual id column of npc_faction. I strongly reccommend and editor such as projecteq's editor for faction;p It'll make this much easier on ya! They don't have a function to create a few faction. However, you can add a faction to the faction_list tables and then just edit everything about it on their editor.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.