Difference between revisions of "GameData Script"

From the CreationKit Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Script Objects]]
[[Category:Script Objects]]
'''Extends:''' None


Script for this base object.<syntaxhighlight lang="papyrus">
Script for this base object.<syntaxhighlight lang="papyrus">

Latest revision as of 16:52, 15 December 2021


Extends: None

Script for this base object.

Scriptname GameData Hidden
 
; Keywords are AND operations, must have all listed keywords
; IgnoreTemplates will exclude items that are inherited from other items with slightly altered stats
; IgnoreEnchantments will exclude any item with an enchantment
; WeaponTypes are a bitfield, will filter weapons by type
; Add together to filter by multiple types
int Property WeaponTypeHandToHand = 1 AutoReadOnly
int Property WeaponTypeOneHandSword = 2 AutoReadOnly
int Property WeaponTypeOneHandDagger = 4 AutoReadOnly
int Property WeaponTypeOneHandAxe = 8 AutoReadOnly
int Property WeaponTypeOneHandMace = 16 AutoReadOnly
int Property WeaponTypeTwoHandSword = 32 AutoReadOnly
int Property WeaponTypeTwoHandAxe = 64 AutoReadOnly
int Property WeaponTypeBow = 128 AutoReadOnly
int Property WeaponTypeStaff = 256 AutoReadOnly
int Property WeaponTypeCrossbow = 512 AutoReadOnly
 
Form[] Function GetAllWeapons(string modName, Keyword[] keywords = None, bool playable = true, bool ignoreTemplates = true, bool ignoreEnchantments = true, bool onlyEnchanted = false, int weaponTypes = 0xFFFFFFFF) global native
 
Form[] Function GetAllArmor(string modName, Keyword[] keywords = None, bool playable = true, bool ignoreTemplates = true, bool ignoreEnchantments = true, bool onlyEnchanted = false, bool ignoreSkin = true) global native
 
Form[] Function GetAllAmmo(string modName, Keyword[] keywords = None, bool playable = true) global native
 
Form[] Function GetAllBooks(string modName, Keyword[] keywords = None, bool regular = true, bool spell = false, bool skill = false) global native
 
Form[] Function GetAllPotions(string modName, Keyword[] keywords = None, bool potions = true, bool food = false, bool poison = false) global native
 
Form[] Function GetAllIngredients(string modName, Keyword[] keywords = None) global native
 
Form[] Function GetAllScrolls(string modName, Keyword[] keywords = None) global native
 
Form[] Function GetAllKeys(string modName, Keyword[] keywords = None) global native
 
Form[] Function GetAllMiscItems(string modName, Keyword[] keywords = None) global native