GetNthKeyword - Form

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Form Script

Returns the Nth keyword assigned to this form. (This function requires SKSE)

Syntax[edit | edit source]

Keyword Function GetNthKeyword(int index) native

Parameters[edit | edit source]

  • index: which keyword to get. 0 will return the first, 1 the second, etc.

Return Value[edit | edit source]

Returns the Nth keyword assigned to this form.

Examples[edit | edit source]

;;;
Keyword[] Property StoredKeywords Auto

Function StoreKeywordsOf(Form MyForm)
	int Count = MyForm.GetNumKeywords()
	int index
	while (index < Count)
		StoredKeywords[index] = MyForm.GetNthKeyword(index)
		index += 1
	endwhile
EndFunction

See Also[edit | edit source]