IsClassSkill
Revision as of 16:38, 22 January 2008 by imported>Haama (Corrected syntax and example, added Stats list link)
A command for Oblivion Script Extender
Syntax:
(isClassSkill:bool) reference.IsClassSkill skill:sting class:ref (isClassSkill:bool) reference.IsMajor skill:sting class:ref
Returns whether the passed skill is a skill of the class.
Example:
short attribute set attribute to player.IsClassSkill HeavyArmor if (attribute == 1) messagebox "HeavyArmoris one of the Skills of your class." else messagebox "HeavyArmoris NOT one of the Skills of your class." endif
Notes
- If called on a reference it will attempt to find the class from that referenced NPC and use that.
- If a class FormID is passed, that takes precedence.