GetKeyword - Keyword

From Creation Kit
Jump to: navigation, search

SKSE Member of: Keyword Script

Returns the keyword associated with the string. (This function requires SKSE)

Syntax

Keyword Function GetKeyword(string asKeyword) native global

Parameters

  • asKeyword: the full name of the keyword. Capitalization does not matter.

Return Value

Returns the keyword that matches the given string with its editor ID.

Examples

Keyword testKW = Keyword.GetKeyword("weaptypebattleaxe")
if(WeaponProp.HasKeyword(testKW))
  Debug.Notification("Our weapon is a battle axe!")
else
  Debug.Notification("Our weapon is not a battle axe!")
endif

Notes

None.

See Also