Background for Skyrim SE
Member of the Form script
boolfunctionHasKeywordString(strings)

Description

Wiki Description

Checks to see if the specified keyword is attached to this form. (This function requires SKSE)


Caveats


Parameters

strings

CK Wiki Description

the full name of the keyword. Capitalization does not matter.


Examples

if (PotionProperty.HasKeywordString("vendoritemfood"))
    Debug.Notification("This is food.")
elseif (PotionProperty.HasKeywordString("VendorItemFoodRaw"))
    Debug.Notification("This is raw food.")
else
    Debug.Notification("This is a potion.")
endif

Auto-Generated Example

string myString__s

bool returnedValue = myForm__toCallFunctionOn.HasKeywordString(myString__s)

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.