Page 1 of 1

Spawns With More Than One Faction

Posted: Sun Jul 26, 2009 10:54 am
by Scatman
Do we have a way to handle a spawn being associated with more than one faction (both positively and negatively)?

Re: Spawns With More Than One Faction

Posted: Sun Jul 26, 2009 11:50 am
by John Adams
Yes, use the faction_alliances table to set up hostile or friendly faction's to the faction ID you are assigning to your spawn.

Example:
factions.jpg
The Great Herd, Settlers are friendly to City of Qeynos

But City of Freeport is Hostile to City of Qeynos

So killing a spawn with City of Qeynos assigned, lowers your faction with the Herd and Settlers, but raises it with Freeport.


(note: "id" in this table is not faction_id, but the PK of the faction_alliances table)

Re: Spawns With More Than One Faction

Posted: Sun Jul 26, 2009 1:25 pm
by Scatman
Ahh duh. Gotcha, thanks!

Re: Spawns With More Than One Faction

Posted: Sun Jul 26, 2009 3:00 pm
by Layor
I love both of you guys, great work!!! :D