Editing
WornObject 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!
__NOTOC__ __NOEDITSECTION__ Script for the manipulation of Worn Objects. == Definition == <syntaxhighlight lang="papyrus"> ScriptName WornObject </syntaxhighlight> == SKSE Global Functions == :'''Float [[GetItemHealthPercent - WornObject|GetItemHealthPercent]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the item's tempering. :'''[[SetItemHealthPercent - WornObject|SetItemHealthPercent]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', Float ''health'')''' :*Sets the item's tempering :'''[[SetItemMaxCharge - WornObject|SetItemMaxCharge]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', Float ''maxCharge'')''' :*Sets the maximum charge of the worn object.(Only works on player enchants) :'''Float [[GetItemMaxCharge - WornObject|GetItemMaxCharge]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the worn objects max charge. :'''Float [[GetItemCharge - WornObject|GetItemCharge]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the current charge of the worn object. :'''String [[GetDisplayName - WornObject|GetDisplayName]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the name of the worn object (This is the name that is displayed) :'''Bool [[SetDisplayName- WornObject|SetDisplayName]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', String ''name'', Bool ''forced'')''' :*Sets the display name of the worn object. :'''Enchantment [[GetEnchantment - WornObject|GetEnchantment]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the player-made enchantment if there is one :'''[[SetEnchantment - WornObject|SetEnchantment]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', Enchantment ''source'', Float ''maxCharge'')''' :*Changes an item's player-made enchantment to the specified Enchant and max charge. :'''[[CreateEnchantment - WornObject|CreateEnchantment]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', Float ''maxCharge'', MagicEffect[] ''effects'', Float[] ''magnitudes'', Int[] ''areas'', Int[] ''durations'')''' :*Creates a new Enchantment on the worn object with the specified parameters. :'''Int [[GetNumReferenceAliases - WornObject|GetNumReferenceAliases]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the number of reference aliases holding this worn object. :'''ReferenceAlias [[GetNthReferenceAlias - WornObject|GetNthReferenceAlias]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'', Int ''n'')''' :*Returns the nth Reference alias holding this worn object. :'''Potion [[GetPoison - WornObject|GetPoison]](Actor ''akActor'', Int ''handSlot'', Int ''slotMask'')''' :*Returns the poison on the specified item :'''ReferenceAlias[] [[GetReferenceAliases - WornObject|GetReferenceAliases]](Actor ''akActor'', int ''handSlot'', int ''slotMask'')''' :*Returns all of the ReferenceAlias holding this reference == Notes == *These functions operate directly on worn/equipped items within the inventory. Valid values for ''handSlot'' are 0 (for left hand) or 1 (for right hand). Valid Slot Masks can be found [[Slot_Masks_-_Armor|here]]. Use slotMask of 0 for weapons. [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]] [[Category:SKSE Script Objects]]
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