Difference between revisions of "GetKeywordDataForLocation"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
imported>DavidJCobb (→Examples: this is useful to know) |
||
Line 10: | Line 10: | ||
SetKeywordDataForLocation BarleydarkFarmLocation CWCost 10 | SetKeywordDataForLocation BarleydarkFarmLocation CWCost 10 | ||
GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10 | GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10 | ||
GetKeywordDataForLocation RiftenLocation CWOwner ; Returns: 1 for Imperials, 2 for Stormcloaks, 3 for Both, and maybe 0 for None | |||
==See Also== | ==See Also== |
Revision as of 20:44, 24 July 2016
Description
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
GetKeywordDataForLocation <Location> <Keyword>
Examples
SetKeywordDataForLocation BarleydarkFarmLocation CWCost 10 GetKeywordDataForLocation BarleydarkFarmLocation CWCost ;Returns 10
GetKeywordDataForLocation RiftenLocation CWOwner ; Returns: 1 for Imperials, 2 for Stormcloaks, 3 for Both, and maybe 0 for None