Difference between revisions of "GetKeywordDataForCurrentLocation"
Jump to navigation
Jump to search
imported>Lisselli |
(Corrected factually wrong entry and added to console category) |
||
Line 2: | Line 2: | ||
[[Category:Condition Functions]] | [[Category:Condition Functions]] | ||
==Description== | |||
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. | |||
==Syntax== | |||
GetKeywordDataForCurrentLocation <Keyword> | |||
==Example== | |||
GetKeywordDataForCurrentLocation | SetKeywordDataForLocation BarleyDarkFarmLocation CWCost 10 | ||
GetKeywordDataForCurrentLocation CWCost ; Returns 10 if the subject is in BarleyDarkFarmLocation | |||
==See Also== | |||
*[[GetKeywordDataForLocation]] | |||
*[[SetKeywordDataForLocation]] | |||
==Papyrus Version== | |||
[[GetKeywordData - Location]] | |||
[[Category:Console Commands]] |
Revision as of 10:04, 23 February 2024
Description
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.
Syntax
GetKeywordDataForCurrentLocation <Keyword>
Example
SetKeywordDataForLocation BarleyDarkFarmLocation CWCost 10 GetKeywordDataForCurrentLocation CWCost ; Returns 10 if the subject is in BarleyDarkFarmLocation