IsClassSkill

Revision as of 18:21, 22 January 2008 by imported>Haama (Fixes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

NotesEdit

  • 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.

See AlsoEdit