Editing
GameData Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] '''Extends:''' None Script for this base object.<syntaxhighlight lang="papyrus"> 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 </syntaxhighlight>
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values