GetObjectNeedsHealing

From NWN Lexicon
Revision as of 01:31, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



GetObjectNeedsHealing(object, int)

Determines whether a creature is damaged to a point of its original HP.

int GetObjectNeedsHealing(
    object oMostDamagedMember,
    int nPercent
);

Parameters

oMostDamagedMember

The creature to check for damage.

nPercent

The percent at which the creature needs healing (1-100).


Description

Returns TRUE if oMostDamagedMemeber has less than nPercent of its original HP.



Remarks

This function actually is found in multiple script files nw_cd_lv123, nw_cd_lv203, nw_cd_lv23, nw_cd_lv73.


Requirements

#include " nw_cd_lv123 "

Version

1.22

See Also



 author: Tom Cassiotis