Skip to content

tes3spellList⚓︎

A list of spells. Used by actors, birthsigns, and races.

Properties⚓︎

iterator⚓︎

Read-only. Deprecated. Use for index, spell in pairs(spellList) to iterate over spells.

Direct access to the spells in this list.

Returns:


Methods⚓︎

contains⚓︎

Checks if the specified spell is contained in the spell list.

local result = myObject:contains(spell)

Parameters:

Returns:

  • result (boolean)

containsType⚓︎

Finds the first spell with the type provided.

local result = myObject:containsType(spellType)

Parameters:

Returns:


getCheapest⚓︎

Finds the castable spell in the list with the lowest casting cost.

local result = myObject:getCheapest()

Returns:


remove⚓︎

Removes a spell from the list. This is deprecated, please use tes3.removeSpell instead. This function does not update any modified flags or UI systems, so it is likely to cause issues.

local result = myObject:remove(spell)

Parameters:

Returns:

  • result (boolean)