Background for Skyrim SE
Member of the Keyword script
KeywordfunctionGetKeyword(stringkey)NativeGlobal

Description

Wiki Description

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

Documentation Comment

SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
return the keyword with the specified key


Caveats

CK Wiki - Notes

None.


Parameters

stringkey

CK Wiki Description

the full name of the keyword. Capitalization does not matter (see Literals Reference > String > Case Insensitivity).


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

Auto-Generated Example

string myString__key

Keyword returnedValue = Keyword.GetKeyword(myString__key)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.