WornObject Script

Revision as of 04:07, 3 February 2014 by imported>CraftySentinel (Created WornObject Script, Currently a Stub just with the functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Script for the manipulation of Worn Objects.


Definition

ScriptName WornObject


SKSE Global Functions

Float GetItemHealthPercent(Actor akActor, Int handSlot, Int slotMask)
SetItemHealthPercent(Actor akActor, Int handSlot, Int slotMask, Float health)
SetItemMaxCharge(Actor akActor, Int handSlot, Int slotMask, Float maxCharge)
Float GetItemMaxCharge(Actor akActor, Int handSlot, Int slotMask)
Float GetItemCharge(Actor akActor, Int handSlot, Int slotMask)
String GetDisplayName(Actor akActor, Int handSlot, Int slotMask)
Bool SetDisplayName(Actor akActor, Int handSlot, Int slotMask, String name, Bool forced)
Enchantment GetEnchantment(Actor akActor, Int handSlot, Int slotMask)
SetItemMaxCharge(Actor akActor, Int handSlot, Int slotMask, Enchantment source, Float maxCharge)
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(Actor akActor, Int handSlot, Int slotMask)
  • Returns the number of reference aliases holding this worn object.
ReferenceAlias GetNthReferenceAlias(Actor akActor, Int handSlot, Int slotMask, Int n)
  • Returns the nth Reference alias holding this worn object.