Is it possible (through some magic of global quest) to increase a stat for all players who share the same faction_id? I have a sort of "kingdoms" game in which there are several kingdoms associated with their own faction. When a player finds a certain item and turns it in to the king of that faction, several things happen:
1. Reinforcement guards, soldiers, etc., are spawned in and around the kingdom to protect it from other factions coming in and taking the item.
2. The character who turns the item in is awarded enough faction points to make him an ally, he is rewarded with enough xp to level at mid 30s, and he earns 5k plat.
Both of these work fine. Now I want to do the following:
To encourage the concept of factions, and to prompt players to organize their respective factions to "retake" the item for their own kingdom, I want to automatically increase the stats of all players with an ally faction of the kingdom who has the item. I'd like this to happen at item turn-in, and to maintain that increase until the item is taken from that king by another faction and given to their king. At that point I'd like to stats to go back to normal for the first faction, and increase stats for all players in the second faction once the item is turned into their king.
As long as a player's kingdom "owns" the item, he is advantaged with bonus stats. That motivates players of that faction to defend their kingdom, because once their king loses the item, they lose the bonus. It also motivates players of other factions to organize raids against the kingdom who holds the item.
Can this be done?
Please say yes.