GetFirstFoundKeywordInArrayForLocation - CommonArrayFunctions
Member of: CommonArrayFunctions Script
Finds and returns the first keyword in the array that is attached to the specified location.
Keyword Function GetFirstFoundKeywordInArrayForLocation(Location LocationToCheck, Keyword ArrayToCheck) Global
- LocationToCheck: The location we are checking
- ArrayToCheck: The keywords to check
The first keyword in the array applied to the location, or None if none of them are attached, the location is None, the array is None, or the array is empty.
Keyword theKeyword = CommonArrayFunctions.GetFirstFoundKeywordInArrayForLocation(PlayerLocation, LocationKeywords) if theKeyword theKeyword.SendStoryEvent() ; fire off some quest based on the keyword endIf