Difference between revisions of "IsClassSkill"
Jump to navigation
Jump to search
imported>WereWolf (Added example) |
imported>Haama m (Fixes) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | ||
'''Syntax:''' | |||
(isClassSkill:bool) ''reference.''IsClassSkill skill:string ''class:ref'' | |||
(isClassSkill:bool) ''reference.''IsMajor skill:string ''class:ref'' | |||
Returns whether the passed skill is a skill of the class. | Returns whether the passed skill is a skill of the class. | ||
'''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 "HeavyArmor is one of the Skills of your class." | ||
else | else | ||
messagebox " | messagebox "HeavyArmor is NOT one of the Skills of your class." | ||
endif | endif | ||
==Notes== | ==Notes== | ||
*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]] |
Latest revision as of 17:21, 22 January 2008
A command for Oblivion Script Extender
Syntax:
(isClassSkill:bool) reference.IsClassSkill skill:string class:ref (isClassSkill:bool) reference.IsMajor skill:string 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 "HeavyArmor is one of the Skills of your class." else messagebox "HeavyArmor is NOT one of the Skills of your class." endif
Notes[edit | edit source]
- 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.