Background for Skyrim SE
Member of the ActorBase script
SpellfunctionGetNthSpell(intn)Native

Description

Wiki Description

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

Documentation Comment

returns the specified spell defined in the base actor form


Caveats

CK Wiki - Notes

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


Parameters

intn

CK Wiki Description

the Nth Spell of 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)

Auto-Generated Example

int myInt__n

Spell returnedValue = myActorBase__toCallFunctionOn.GetNthSpell(myInt__n)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.