Difference between revisions of "GetKeywordDataForLocation"
Jump to navigation
Jump to search
imported>DavidJCobb (→Examples: this is useful to know) |
m (→See also: Added link to GetKeywordDataForCurrentLocation) |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10 | GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10 | ||
GetKeywordDataForLocation | GetKeywordDataForLocation RiftHoldLocation CWOwner ; Returns: 1 for Imperials, 2 for Stormcloaks, 3 for Both, and maybe 0 for None | ||
==See Also== | ==See Also== | ||
*[[SetKeywordDataForLocation]] | *[[SetKeywordDataForLocation]] | ||
*[[GetKeywordDataForCurrentLocation]] | |||
==Papyrus Version== | ==Papyrus Version== |
Latest revision as of 10:06, 23 February 2024
Description[edit | edit source]
The SetKeywordDataForLocation Console Command (or the equivalent Papyrus Function) can be used to store a float on a Location's Keyword.
GetKeywordDataForLocation returns this value, if any. It otherwise returns 0.
Syntax[edit | edit source]
GetKeywordDataForLocation <Location> <Keyword>
Examples[edit | edit source]
SetKeywordDataForLocation BarleydarkFarmLocation CWCost 10 GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10
GetKeywordDataForLocation RiftHoldLocation CWOwner ; Returns: 1 for Imperials, 2 for Stormcloaks, 3 for Both, and maybe 0 for None