Difference between revisions of "GetKeywordDataForCurrentLocation"

Corrected factually wrong entry and added to console category
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]].


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, 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]]
NOTE: This condition function does not appear to work in perk application, confirmation needed for if this function even works at all.
*[[SetKeywordDataForLocation]]
 
==Papyrus Version==
Best used in the story manager. --[[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]])
[[GetKeywordData - Location]]
[[Category:Console Commands]]
16

edits