Difference between revisions of "IsClassSkill"
Jump to navigation
Jump to search
imported>WereWolf |
imported>Haama (Corrected syntax and example, added Stats list link) |
||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(isClassSkill:bool) ''reference.''IsClassSkill skill: | (isClassSkill:bool) ''reference.''IsClassSkill skill:sting ''class:ref'' | ||
(isClassSkill:bool) ''reference.''IsMajor skill:sting ''class:ref'' | |||
(isClassSkill:bool) ''reference.''IsMajor skill: | |||
Returns whether the passed skill is a skill of the class. | Returns whether the passed skill is a skill of the class. | ||
Line 10: | Line 9: | ||
'''Example:''' | '''Example:''' | ||
short attribute | short attribute | ||
set attribute to player.IsClassSkill | set attribute to player.IsClassSkill HeavyArmor | ||
if (attribute == 1) | if (attribute == 1) | ||
messagebox " | messagebox "HeavyArmoris one of the Skills of your class." | ||
else | else | ||
messagebox " | messagebox "HeavyArmoris NOT one of the Skills of your class." | ||
endif | endif | ||
Line 20: | Line 19: | ||
*If called on a reference it will attempt to find the class from that referenced NPC and use that. | *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. | *If a class FormID is passed, that takes precedence. | ||
==See Also== | ==See Also== | ||
*[[Stats List]] | |||
*[[GetClass]] | *[[GetClass]] | ||
*[[GetClassAttribute]] | *[[GetClassAttribute]] |
Revision as of 16:38, 22 January 2008
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.