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⚓︎

add⚓︎

Adds a spell to the list.

local result = myObject:add(spell)

Parameters:

Returns:

  • result (boolean)

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.

local result = myObject:remove(spell)

Parameters:

Returns:

  • result (boolean)