GetFactionAverageGoodEvilAlignment(object)

Get the average number (between 0 and 100 inclusive) of the all objects within the object's faction that represents the Good/Evil alignment

int GetFactionAverageGoodEvilAlignment(
    object oFactionMember
);

Parameters

oFactionMember

The creature or object whose faction average you wish to examine.


Description

Returns an integer between 0 and 100 (inclusive) that represents the average good/evil alignment of oFactionMember's faction.
Return value on error: -1



Remarks

This will search the module for all members of the object's faction and average out their Good/Evil alignment on a scale of 0 (Good) to 100 (Evil).


Version

1.22

See Also

functions: GetFactionAverageLawChaosAlignment | GetFactionAverageLevel | GetGoodEvilValue | GetLawChaosValue
categories: Alignment Functions | Get Data from Creature Functions | Reputation/Faction Functions


 author: John Shuell, editor: Jeremy Spilinek
 Send comments on this topic.