[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "IsClassAttribute"
Jump to navigation
Jump to search
Fixed syntax, example, added link to Stats list
imported>WereWolf |
imported>Haama (Fixed syntax, example, added link to Stats list) |
||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(isClassAttribute:bool) ''reference''.IsClassAttribute attribute: | (isClassAttribute:bool) ''reference''.IsClassAttribute attribute:string ''class:ref'' | ||
Returns whether the passed attribute is an attribute of the class. | Returns whether the passed attribute is an attribute of the class. | ||
Line 8: | Line 8: | ||
'''Example:''' | '''Example:''' | ||
short attribute | short attribute | ||
set attribute to player.IsClassAttribute | set attribute to player.IsClassAttribute Agility | ||
if (attribute == 1) | if (attribute == 1) | ||
messagebox "Agility is one of the Attributes of your class." | messagebox "Agility is one of the Attributes of your class." | ||
Line 18: | Line 18: | ||
*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]] |