GetFirstFoundKeywordInArrayForLocation - CommonArrayFunctions

Member of: CommonArrayFunctions Script

Finds and returns the first keyword in the array that is attached to the specified location.

SyntaxEdit

Keyword Function GetFirstFoundKeywordInArrayForLocation(Location LocationToCheck, Keyword[] ArrayToCheck) Global

ParametersEdit

  • LocationToCheck: The location we are checking
  • ArrayToCheck: The keywords to check

Return ValueEdit

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.

ExamplesEdit

Keyword theKeyword = CommonArrayFunctions.GetFirstFoundKeywordInArrayForLocation(PlayerLocation, LocationKeywords)
if theKeyword
  theKeyword.SendStoryEvent() ; fire off some quest based on the keyword
endIf

See AlsoEdit