HasKeywordString - Form
Revision as of 03:22, 10 May 2012 by imported>Fg109 (Created page for HasKeywordString)
SKSE Member of: Form Script
Checks to see if the specified keyword is attached to this form. (This function requires SKSE)
Syntax
bool Function HasKeywordString(string asKeyword) native
Parameters
- asKeyword: the full name of the keyword. Capitalization does not matter.
Return Value
Returns true if the form contains a keyword with the string as its editor ID.
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