GetSpellSchool

From the Oblivion ConstructionSet Wiki
Revision as of 13:46, 6 August 2008 by imported>Low Post
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(magicSchool:short) GetSpellSchool spell:ref

Returns the school of the spell, determined by the most expensive effect item.

Magic School Codes

The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed school of magic:

 0:    Alteration
 1:    Conjuration
 2:    Destruction
 3:    Illusion
 4:    Mysticism
 5:    Restoration


Notes

  • Will return 0 if passed an enchantment instead of a spell