Table of Contents

Method GetSkillRank

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetSkillRank(NwSkill, bool)

Gets the number of ranks this creature has in the specified skill.

public int GetSkillRank(NwSkill skill, bool ranksOnly = false)

Parameters

skill NwSkill

The skill to check.

ranksOnly bool

If true, returns the base amount of skill ranks without any ability modifiers.

Returns

int

-1 if the creature does not have this skill, 0 if untrained, otherwise the number of skill ranks.