GetFactionMostDamagedMember(object, int)

Get the member of oFactionMember's faction that has taken the most hit points of damage.

object GetFactionMostDamagedMember(
    object oFactionMember = OBJECT_SELF,
    int bMustBeVisible = TRUE
);

Parameters

oFactionMember

An object who is a member of the faction you wish to search through. (Default: OBJECT_SELF)

bMustBeVisible

Only search through those members who are visible to the calling object? (Default: TRUE)


Description

Returns the member of oFactionMember's faction that has taken the most hit points of damage. If bMustBeVisible is set to TRUE (default) then only consider those members who are visible to the object who is running the script (calling object).
Returns OBJECT_INVALID if oFactionMember's faction is invalid.



Remarks

Another great AI routine. This one is good for enemies when you want them to do their best to take down the party, or for friends (henchmen, familiars, etc) that should take action on members who are the most hurt. Such as healing them in combat or after combat.


Version

1.22

See Also

functions: GetFactionBestAC | GetFactionLeastDamagedMember | GetFactionStrongestMember | GetFactionWeakestMember | GetFactionWorstAC
categories: Combat Information Functions | Core AI Functions | Get Data from Creature Functions | Henchmen/Familiars/Summoned Functions | Party Functions | Perception Functions | Reputation/Faction Functions | Targeting Functions


 author: John Shuell
 Send comments on this topic.