GetNthKeyword - Form

From Creation Kit
Jump to: navigation, search

SKSE Member of: Form Script

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

Syntax

Keyword Function GetNthKeyword(int index) native

Parameters

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

Return Value

Returns the Nth keyword assigned to this form.

Examples

;;;
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