Skip to content


This event is triggered when the player selects any spell or enchant, or when the current magic selection is deselected.

--- @param e magicSelectionChangedEventData
local function magicSelectionChangedCallback(e)
event.register(tes3.event.magicSelectionChanged, magicSelectionChangedCallback)


An event can be claimed by setting e.claim to true, or by returning false from the callback. Claiming the event prevents any lower priority callbacks from being called.

Event Data⚓︎

  • item (tes3object, nil): Read-only. When the source is an enchantment, this is the item that holds the enchantment.
  • source (tes3alchemy, tes3enchantment, tes3spell, nil): Read-only. The magic source. When magic is deselected, this is nil.