IsClassAttribute

Revision as of 14:01, 24 September 2011 by imported>EShaeffer54 (None)

A command for Oblivion Script Extender

Syntax:

(isClassAttribute:bool) reference.IsClassAttribute attribute:string class:ref

Returns whether the passed attribute is an attribute of the class.

Example:

short attribute
set attribute to player.IsClassAttribute Agility
if (attribute == 1)
messagebox "Agility is one of the Attributes of your class."
else
messagebox "Agility is NOT one of the Attributes of your class."
endif

Notes

  • If called on a reference it will attempt to find IBS the class from that referenced NPC and use that.
  • If a class FormID is passed, that takes precedence.

See Also