Difference between revisions of "GetKeywordDataForCurrentLocation"
Jump to navigation
Jump to search
(Corrected factually wrong entry and added to console category) |
m (→Description: Minor clarification) |
||
Line 5: | Line 5: | ||
The [[SetKeywordDataForLocation]] Console Command can be used to store a float on a [[Location]]'s [[Keyword]]. | The [[SetKeywordDataForLocation]] Console Command can be used to store a float on a [[Location]]'s [[Keyword]]. | ||
[[GetKeywordDataForCurrentLocation]] returns this value for the current location, if any. It otherwise returns 0. | [[GetKeywordDataForCurrentLocation]] returns this value for the current location of the subject, if any. It otherwise returns 0. | ||
==Syntax== | ==Syntax== | ||
GetKeywordDataForCurrentLocation <Keyword> | GetKeywordDataForCurrentLocation <Keyword> |
Latest revision as of 10:05, 23 February 2024
Description[edit | edit source]
The SetKeywordDataForLocation Console Command can be used to store a float on a Location's Keyword.
GetKeywordDataForCurrentLocation returns this value for the current location of the subject, if any. It otherwise returns 0.
Syntax[edit | edit source]
GetKeywordDataForCurrentLocation <Keyword>
Example[edit | edit source]
SetKeywordDataForLocation BarleyDarkFarmLocation CWCost 10 GetKeywordDataForCurrentLocation CWCost ; Returns 10 if the subject is in BarleyDarkFarmLocation