Difference between revisions of "GetKeywordDataForCurrentLocation"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Icecreamassassin
m (→‎Description: Minor clarification)
 
(3 intermediate revisions by 3 users not shown)
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]].


Checks to see if the currently loaded cell's Location data contains a specific supplied keyword. Runs relative to the subject
[[GetKeywordDataForCurrentLocation]] returns this value for the current location of the subject, if any. It otherwise returns 0.
 
==Syntax==
EX:
GetKeywordDataForCurrentLocation <Keyword>
 
==Example==
GetKeywordDataForCurrentLocation-> Keyword:LocTypeFalmerHive Subject: Player == 1
SetKeywordDataForLocation BarleyDarkFarmLocation CWCost 10
 
GetKeywordDataForCurrentLocation CWCost ; Returns 10 if the subject is in BarleyDarkFarmLocation
Passes true if the player is currently in a cell which has a location which has the LocTypeFalmerHive keyword placed on it.
==See Also==
*[[GetKeywordDataForLocation]]
*[[SetKeywordDataForLocation]]
==Papyrus Version==
[[GetKeywordData - Location]]
[[Category:Console Commands]]

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

See Also[edit | edit source]

Papyrus Version[edit | edit source]

GetKeywordData - Location