Editing
ObjectReference Script
(section)
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!
== SKSE Member Functions == :'''Form[] [[GetContainerForms - ObjectReference|GetContainerForms]]()''' :* (Container only) Returns an array of the forms in a container. (Actor ObjectReferences are containers) :'''Int [[GetNumItems - ObjectReference|GetNumItems]]()''' :* (Container only) Returns the number of forms in the container. (Actor ObjectReferences are containers) :'''Form [[GetNthForm - ObjectReference|GetNthForm]](Int ''index'')''' :* (Container only) Returns the specified form from the container. (Actor ObjectReferences are containers) :'''Float [[GetTotalItemWeight - ObjectReference|GetTotalItemWeight]]()''' :* (Container only - perhaps Player only) Returns the total weight of all items held in the container. :'''Float [[GetTotalArmorWeight - ObjectReference|GetTotalArmorWeight]]()''' :* (Container only - perhaps Player only) Returns the total weight of the armor in the container. :'''Bool [[IsHarvested - ObjectReference|IsHarvested]]()''' :* (Flora and Tree only) Returns whether the flora has been harvested or not. :'''[[SetHarvested - ObjectReference|SetHarvested]](Bool ''harvested'')''' :*Sets whether the Reference has been harvested. :'''[[SetItemHealthPercent - ObjectReference|SetItemHealthPercent]](Float ''health'')''' :* Set the item's tempering. 1.0 is no tempering, 1.6 appears to be legendary. Values below 1.0 do nothing. :''' [[SetItemMaxCharge - ObjectReference|SetItemMaxCharge]](Float ''maxCharge'')''' :*Sets the maximum charge of the item.(Only works on player enchants) :'''Float [[GetItemMaxCharge - ObjectReference|GetItemMaxCharge]]()''' :* Gets the maximum charge of the item. :'''Float [[GetItemCharge - ObjectReference|GetItemCharge]]()''' :* Gets the current charge of the item. :'''[[SetItemCharge - ObjectReference|SetItemCharge]](Float ''charge'')''' :*Sets the item's charge to the specified amount. :'''[[ResetInventory - ObjectReference|ResetInventory]]()''' :*Resets the References inventory. :'''Bool [[IsOffLimits - ObjectReference|IsOffLimits]]()''' :* :'''String [[GetDisplayName - ObjectReference|GetDisplayName]]()''' :*Returns the name of the reference (This is the name that is displayed) :'''Bool [[SetDisplayName - ObjectReference|SetDisplayName]](String ''name'', Bool ''force'')''' :*Sets the reference's display name. :'''ObjectReference [[GetEnableParent - ObjectReference|GetEnableParent]]()''' :*Returns the enable parent of the object. :'''Enchantment [[GetEnchantment- ObjectReference|GetEnchantment]]()''' :*Returns the player-made enchantment of the object (if there is one) :'''[[SetEnchantment - ObjectReference|SetEnchantment]](Enchantment ''source'', Float ''maxCharge'')''' :*Changes an item's player-made enchantment to another. :'''[[CreateEnchantment - ObjectReference|CreateEnchantment]](Float ''maxCharge'', MagicEffect[] ''effects'', Float[] ''magnitudes'', Int[] ''areas'', Int[] ''durations'')''' :*Creates a new Enchantment on the item with the specified parameters. :'''Int [[GetNumReferenceAliases - ObjectReference|GetNumReferenceAliases]]()''' :*Returns the number of reference aliases holding this reference. :'''ReferenceAlias [[GetNthReferenceAlias - ObjectReference|GetNthReferenceAlias]](Int ''n'')''' :*Returns the nth Reference alias holding this reference.
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