Skills¶
-
CanUseSkill
(skill, cre)¶ Determines if a creature can use a skill.
Parameters: - skill (int) – SKILL_*
- cre (
Creature
) – Creature.
Return type: boolean
-
GetIsClassSkill
(skill, class)¶ Determines if a skill is a class skill.
Parameters: - skill (int) – SKILL_*
- class (int) – CLASS_TYPE_*
Return type: boolean
-
GetSkillAbility
(skill)¶ Get skill’s associated ability.
Parameters: - skill (int) – SKILL_*
Return type: ABILITY_* or -1
-
GetSkillAllCanUse
(skill)¶ Check if skill requires training.
Parameters: - skill (int) – SKILL_*
Return type: boolean
-
GetSkillArmorCheckPenalty
(cre, skill)¶ Determine penalty from armor/shield.
Parameters: - cre (
Creature
) – Creature. - skill (int) – SKILL_*
Return type: int
- cre (
-
GetSkillEffectLimits
([cre[, skill]])¶ Get the limits of skill effects. Both parameters are optional, the are there merely to facilitate customizing effect limits by skill or creature, supposing someone wanted to do that.
Parameters: - cre (
Creature
) – Creature. - skill (int) – SKILL_*
Return type: -50, 50
- cre (
-
GetSkillEffectModifier
(cre[, skill])¶ Get skill modification from effects. The return value is not clamped or modified by
GetSkillEffectLimits()
.Parameters: - cre (
Creature
) – Creature. - skill (int) – SKILL_*
Return type: If the
skill
parameter is not passed an array of all skill effect modifiers of lengthSKILL_NUM
is returned. Note this array is static and should not be modified or stored by callers. If theskill
parameter is passed only that skill effect modifier is returned.- cre (
-
GetSkillFeatBonus
(cre, skill)¶ Get Skill Bonuses from feats.
Parameters: - cre (
Creature
) – Creature. - skill (int) – SKILL_*
Return type: int
- cre (
-
GetSkillHasArmorCheckPenalty
(skill)¶ Check if skill has armor check penalty.
Parameters: - skill (int) – SKILL_*
Return type: boolean
-
GetSkillIsUntrained
(skill)¶ Check if skill requires training.
Parameters: - skill (int) – SKILL_*
Return type: boolean
-
GetSkillName
(skill)¶ Get Skill name.
Parameters: - skill (int) – SKILL_*
Return type: string