Difference between revisions of "ObjectReference Script"
Jump to navigation
Jump to search
→SKSE Member Functions: Added SKSE 1.7.0 Functions
imported>CraftySentinel (Reverted to List) |
imported>CraftySentinel (→SKSE Member Functions: Added SKSE 1.7.0 Functions) |
||
Line 431: | Line 431: | ||
:'''[[SetItemHealthPercent - ObjectReference|SetItemHealthPercent]](Float ''health'')''' | :'''[[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. | :* 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]]()''' | :'''Float [[GetItemMaxCharge - ObjectReference|GetItemMaxCharge]]()''' | ||
Line 444: | Line 447: | ||
:*Resets the References inventory. | :*Resets the References inventory. | ||
:'''Bool [[IsOffLimits- ObjectReference|IsOffLimits]]()''' | :'''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. | |||
== Events == | == Events == |