GetFactionAverageLawChaosAlignment(object)
Get the average number (between 0 and 100 inclusive) of the all objects within the object's faction that represents the Law/Chaos alignment
int GetFactionAverageLawChaosAlignment( 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 law/chaos 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 (Law) to 100 (Chaos).
Version
1.22
See Also
author: John Shuell, editor: Jeremy Spilinek
Send comments on this topic.