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 useable, otherwise FALSE.



Remarks

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


Version

1.22

See Also

functions: ActionUseSkill
categories: Talents/Skills/Feats Functions
constants: SKILL_* Constants


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