Difference between revisions of "HasKeyword - Form"

277 bytes added ,  08:42, 12 July 2023
no edit summary
imported>Lisselli
 
Line 47: Line 47:
debug.trace("Is this location a house?: " +CurrentLocationHasKeyword(Game.GetPlayer(), LocTypeHouse))
debug.trace("Is this location a house?: " +CurrentLocationHasKeyword(Game.GetPlayer(), LocTypeHouse))
</source>
</source>
== Notes ==
* If run on a Spell, this function checks all attached magic effects, and returns true if at least one magic effect has a specified keyword.
* If run on an Ingredient or a Potion, this function '''does not''' checks attached magic effects, only the record itself.


== See Also ==
== See Also ==
*[[Form Script]]
*[[Form Script]]
67

edits