GetHasFeatEffect

From NWN Lexicon



Contents

[edit] GetHasFeatEffect(int, object)

Determines whether a creature has the effects of a feat.

int GetHasFeatEffect(
    int nFeat,
    object oObject = OBJECT_SELF
);

[edit] Parameters

nFeat

FEAT_*

oObject

The object to investigate. (Default: OBJECT_SELF)


[edit] Description

Returns TRUE if oObject has effects on it originating from nFeat, otherwise FALSE.

Of course, oObject should almost always be a creature to get an accurate result.



[edit] Remarks

This should return TRUE even if the feat applies spell-like effects (such as Barbarian Rage, which has a "spell" attached to it, to apply effects), although it cirtainly accuratly reports when such feats as Knockdown are applied to a target.


[edit] Version

1.22

[edit] See Also

functions: 

ActionUseFeat

constants: 

FEAT_* Constants



 author: Tom Cassiotis, editor: Jasperre
 

Personal tools
Categories