Difference between revisions of "GetNthSpell - Shout"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Terra Nova2
(Created page for GetNthSpell for the Shout script.)
 
imported>Terra Nova2
m (Removed SKSE version, since I don't know which version these were added.)
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
'''Member of:''' [[Shout Script]] (Requires SKSE 1.7.3)
'''Member of:''' [[Shout Script]] (Requires SKSE)


Gets the specified Nth spell of this shout.
Gets the specified Nth spell of this shout.

Latest revision as of 06:21, 20 February 2016

Member of: Shout Script (Requires SKSE)

Gets the specified Nth spell of this shout.

Syntex[edit | edit source]

Spell Function GetNthSpell(Int n) native

Parameters[edit | edit source]

  • Int n: The spell associated with this Shout.
  • 0 - The first spell for this shout.
  • 1 - The second spell for this shout.
  • 2 - The third spell for this shout.

Return value[edit | edit source]

  • The spell associated with this shout.

Examples[edit | edit source]

Spell property VoiceUnrelentingForce1 auto

; Obtain the spell used by this shout.
Event OnEffectStart(Actor akTarget, Actor akCaster)
	if VoiceUnrelentingForce1 == UnrelentingForceShout.GetNthSpell(0)
		debug.notification("First spell of this shout is VoiceUnrelentingForce1")
	else
		debug.notification("Try again.")
	endif
	
EndEvent
; The above example is true.

See Also[edit | edit source]