GetNthSpell - ActorBase

From Creation Kit
Jump to: navigation, search

SKSE Member of: ActorBase Script

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

Syntax

Spell Function GetNthSpell(Int n) native

Parameters

  • n : the Nth Spell of the base actor form

Return Value

Returns the specified spell defined in the base actor form.

Examples

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

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

See Also