GetNthSpell - ActorBase

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: ActorBase Script

Returns the specified spell defined in the base actor form. (This function requires SKSE)

Syntax[edit | edit source]

Spell Function GetNthSpell(Int n) native

Parameters[edit | edit source]

  • n : the Nth Spell of the base actor form

Return Value[edit | edit source]

Returns the specified spell defined in the base actor form.

Examples[edit | edit source]

Spell BaseSpell01 = Player.GetNthSpell(0) ; BaseSpell01 = Flames

; What's the last base Spell of this Necromancer ?
Spell LastBaseSpell = NecromancerRef.GetActorBase().GetNthSpell(NecromancerRef.GetActorBase().GetSpellCount() - 1)

Notes[edit | edit source]

Spells are listed in the same order that in the Actor's SpellList tab.

See Also[edit | edit source]