GetHasSkill

From NWN Lexicon
Jump to navigationJump to search



GetHasSkill(int, object)

Determines whether a creature has a skill.

int GetHasSkill(
    int nSkill,
    object oCreature = OBJECT_SELF
);

Parameters

nSkill

SKILL_*

oCreature

The creature to check for a skill. (Default: OBJECT_SELF)


Description

Returns TRUE if oCreature has nSkill, and nSkill is usable, otherwise FALSE.



Remarks

According to the Third Edition rules, some skills (such as Persuade) are usable by anyone even if their skill rank is negative. These skills will always return a TRUE value.


Version

1.22

See Also

functions: 

ActionUseSkill

constants: 

SKILL_* Constants



 author: Tom Cassiotis, editor: Ryan Hunt, additional contributor(s): Drake Coker