SetKeywordData - Location
Member of: Location Script
Sets the data attached to the specified keyword on this location.
SyntaxEdit
Function SetKeywordData(Keyword akKeyword, float afData) native
ParametersEdit
- akKeyword: The Keyword to query for.
- afData: The data to associate with the keyword.
Return ValueEdit
None.
ExamplesEdit
; Set the data on the Cost keyword
MyHouseProperty.SetKeywordData(CostKeywordProperty, 100)
NotesEdit
- You CAN set keyword data on locations which do not have that keyword in the master file. This may be confusing. Here is an example:
- If a location does not have a keyword, and you set keyword data on it (to 1 for example) then:
- LocationHasKeyword condition will return false and
- GetKeywordDataForLocation for that keyword will return 1
- If a location does not have a keyword, and you set keyword data on it (to 1 for example) then: