GetNthSpell - Race

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Race Script

Returns the specified spell from the race. (This function requires SKSE)

Syntax[edit | edit source]

Spell Function GetNthSpell(Int n) native

Parameters[edit | edit source]

  • n : the Nth Spell from the Race

Return Value[edit | edit source]

Returns the specified spell from the race.

Examples[edit | edit source]

Spell ImperialSpell01 = ImperialRace.GetNthSpell(0) ; ImperialSpell01 = PowerImperialPacify

Spell RaceSpell02 = AlfhildBattleBornRef.GetRace().GetNthSpell(AlfhildBattleBornRef.GetRace().GetSpellCount - 1) ; RaceSpell02 = PowerNordBattleCry

Notes[edit | edit source]

None

See Also[edit | edit source]