Skip to content

magicSelectionChanged⚓︎

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)
end
event.register(tes3.event.magicSelectionChanged, magicSelectionChangedCallback)

Tip

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.

Last update: September 12, 2023 17:47:52
Created: September 12, 2023 17:47:52