Difference between revisions of "HasKeywordString - Form"
Jump to navigation
Jump to search
imported>Fg109 (Created page for HasKeywordString) |
imported>Jbezorg |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:SKSE]] | |||
'''SKSE Member of:''' [[Form Script]] | '''SKSE Member of:''' [[Form Script]] | ||
Line 26: | Line 27: | ||
endif | endif | ||
</source> | </source> | ||
== Note == | |||
In the case of duplicated keywords in ESM files, HasKeywordString checks the first instance established by load order. | |||
== See Also == | == See Also == |
Latest revision as of 21:01, 7 November 2013
SKSE Member of: Form Script
Checks to see if the specified keyword is attached to this form. (This function requires SKSE)
Syntax[edit | edit source]
bool Function HasKeywordString(string asKeyword) native
Parameters[edit | edit source]
- asKeyword: the full name of the keyword. Capitalization does not matter.
Return Value[edit | edit source]
Returns true if the form contains a keyword with the string as its editor ID.
Examples[edit | edit source]
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
Note[edit | edit source]
In the case of duplicated keywords in ESM files, HasKeywordString checks the first instance established by load order.