GetFactionGold(object)

Get the amount of gold held by all members of a certain faction.

int GetFactionGold(
    object oFactionMember
);

Parameters

oFactionMember

The object whose faction you wish to examine.


Description

Returns the amount of gold held by oFactionMember's faction. This function will loop through all members of a faction (normally a Players current party) and return the sum of all their gold they carry with them.
Return a -1 if oFactionMember's faction is invalid.



Remarks

Great for figuring out how rich a party is so you can properly drain them of their gold a certain percent amount. Not sure if this works on NPC factions since many of their inventories can and are randomized most of the time.


Version

1.22

See Also

functions: GetFactionAverageLevel | GetFactionLeader | GiveGoldToCreature
categories: Get Data from Creature Functions | Money Functions | Party Functions | Reputation/Faction Functions


 author: John Shuell
 Send comments on this topic.