OBSE v0009a Command Documentation

OBSE @ Oblivion Construction Set Wiki

Table of Contents

Function Syntax Format
    (returnValueName:returnValueType)    reference.FunctionName parameter1:type parameter2:type

optional
- optional parameters or references are in italics

Parameter Types: designated after colon
  float    a positive or negative decimal number
  long     a positve whole number with large values   
  short    a positive whole number with smaller values
  ref      a ref (usually an objectID)
  chars    a 4 character magic effect code (for example: FIDG, Z001)
  string   a set of characters in quotes


Function Calling Conventions:

By Reference or ObjectID
reference.FunctionName someParameters objectID:ref
Examples:
    (health:long) reference.GetObjectHealth objectID:ref
    (oldEnchantment:ref) reference.SetEnchantment nuEnchantment:ref objectID:ref

These functions can either be called on a reference or have an objectID passed in as an argument.  If an objectID is passed in, it takes precedence over a calling reference.

By Reference only:
reference.FunctionName someParameters
Examples:
    (oldPoison:ref) reference.SetEquippedWeaponPoison nuPoison:ref

These functions must be called on a reference.

By ObjectID only
FunctionName someParamters objectID:ref

    (masterLevel:short) GetSpellMasteryLevel spell:ref
    (effectCode:long) GetNthEffectItemCode magicItem:ref whichEffect:long

Qualities
Qualities are a set of related values and functions which apply to multiple Oblivion object types.  For documentation purposes I have gathered the related values together.  Any type which has a given quality has all of values listed and all of the quality's functions may be applied to the type.
Attacking
Types with this quality are used for attacks.
Values:
    Attack Damage - long the base damage of the type; used in a forumla with the appropriate skill to determine damage actually done
    Speed - float the speed factor of the type; used in a forumla to determine the rate of attack
    Ignores Resistance flag - bool determines whether the type will ignore normal damage resistance.
Functions:   
    GetAttackDamage - returns the base attack damage
        (damage:long) reference.GetAttackDamage objectID:ref
    SetAttackDamage - sets the base attack damage
        (nothing) reference.SetAttackDamage nuDamage:long objectID:ref
    ModAttackDamage - modifies the base attack damage up or down
        (nothing) reference.ModAttackDamage modifyBy:float objectID:ref
    GetWeaponSpeed - returns the weapon speed
        (speed:float) reference.GetWeaponSpeed objectID:ref
    SetWeaponSpeed - sets the weapon speed
        (nothing) reference.SetWeaponSpeed nuSpeed:float obejctID:ref
    ModWeaponSpeed - modifies the weapon speed up or down
        (nothing) reference.ModWeaponSpeed modifyBy:float obejctID:ref
    GetIgnoresResistance - returns whether the object ignores normal damage resistance
        (ignores:bool) reference.GetIgnoresResistance objectID:ref
    SetIgnoresResistance - sets whether the object ignores normal damage resistance
        (nothing) reference.SetIgnoresResistance shouldIgnore:bool objectID:ref

Breakable
Types with this quality can be broken.
Values:
    Health - long the base health of the object.  Cannot be negative.
    Current Health - float the current health of the object.  the object is damaged when the current value is less than the base object value and is broken when the current health reaches 0.  The effectiveness of the object may be decreased as damage increases.
Functions:
    GetObjectHealth - returns the base object health
        (health:long) reference.GetObjectHealth objectID:ref
    SetObjectHealth - sets the base object health
        (nothing) reference.SetObjectHealth nuHealth:long objectID:ref
    ModObjectHealth - modifies the base object health up or down
        (nothing) reference.ModObjectHealth modifyBy:float objectID:ref
    GetEquippedCurrentHealth - gets the current health of the object in the specified equipment slot
        (health:long) reference.GetEquippedCurrentHealth slot:short
    SetEquippedCurrentHealth - sets the current health of the object in the specified equipment slot
        (nothing) reference.SetEquippedCurrentHealth nuHealth:long slot:short
    ModEquippedCurrentHealth - modifies the current health of the object in the specified equipment slot up or down
        (nothing) reference.ModEquippedCurrentHealth modifyBy:float slot:short

Class
Types with this quality have a player class.
Values:
    Attributes - short the two attributes of the class
    Skills - short the five major skills of the class
    Specialization - short the specialization of the class
Functions:
    GetClass - returns the class of the NPC
        (class:ref) reference.GetClass
    GetClassAttribute - returns the Nth attribute of the class
        (attribute:shortGetClassAttribute whichAttribute:short class:refclass:ref
    GetClassSkill - returns the Nth skill of the class
        (skill:short
GetClassSkill whichSkill:short
    GetClassSpecialization - returns the class specialization
        (specialization:short) GetClassSpecialization class:ref
    IsClassSkill - returns whether the passed skill is a skill of the class
        (isClassSkill:bool) IsClassSkill  skill:short class:ref
        (isClassSkill:bool) IsMajor  skill:short class:ref


Container
Something that holds inventory items.
Functions:
    GetNumItems - returns the number of different object types in the container
        (count:long) reference.GetNumItems
    GetInventoryObject - returns the objectID of the Nth item type in the container
        (objectID:ref) reference.GetInventoryObject whichObject:long
    IsContainer - returns whether the reference or passed objectID is a container
        (isContainer:bool) reference.IsContainer objectID:ref

   
Edible
Types with this quality may be considered food.
Values:
    Is Food flag - bool is the object considered to be food
Functions:
    IsFood - returns whether the object is considered to be food
        (isFood:bool) reference.IsFood objectID:ref
    SetIsFood - sets whether the object is considered to be food
        (nothing) reference.IsFood isFood:bool objectID:ref

Enchantable
Types with this quality may be enchanted.  A couple notes:  Enchantments and the ranges of their effects need to be appropriate for the enchantable object's type.  The Enchantment Type needs to match the object the enchantment applies to.  Also, when adding an enchantment to an object, be sure that the object has a charge, or the enchantment cannot work.  If the object was not previously enchanted, call SetObjectCharge to assign a charge to the object.
Values:
    Enchantment - ref the specific enchantment on the enchantable item
    Charge - long the maximum charge available on the enchantable item
    Current Charge - float the current charge of the enchantable item
Functions:
    GetEnchantment - returns the specific enchantment on the object
        (enchantment:ref) reference.GetEnchantment objectID:ref
    SetEnchantment - sets the specific enchantment on the object and returns any previous enchantment
        (oldEnchantment:ref) reference.SetEnchantment nuEnchantment:ref objectID:ref
    RemoveEnchantment - removes the enchantment from the object and returns any previous enchantment
        (oldEnchantment:ref) reference.RemoveEnchantment objectID:ref
    GetObjectCharge - returns the max charge of the object
        (charge:long) reference.GetObjectCharge objectID:ref
    SetObjectCharge - sets the max charge of the object
        (nothing) refernce.SetObjectCharge nuCharge:long objectID:ref
    ModObjectCharge - modifies the max charge of the object up or down
        (nothing) reference.ModObjectCharge modifyBy:float objectID:ref
    GetEquippedCurrentCharge - returns the current charge of the object in the specified slot
        (charge:long) reference.GetEquippedCurrentCharge slot:short
    SetEquippedCurrentCharge - sets the current charge of the object in the specified slot
        (nothing) reference.SetEquippedCurrentCharge nuCharge:long slot:short
    ModEquippedCurrentCharge - modifies the current charge of the object in the specified slot up or down
        (nothing) reference.ModEquippedCurrentCharge modifyBy:float slot:short

Equippable
Types with this quality can be equipped by a character.
Values:
    Slot - short the equipment slot of the object
Functions:
    GetEquipmentSlot - returns the equipment slot of the object
        (slot:short) reference.GetEquipmentSlot objectID:ref
    GetEquippedObject

Inventory
Types with this quality are objects that can be either stored in an inventory or exist as a reference outside of an inventory.
Values:
    Object - long the base object id of a reference
    Weapon Type- short the type of weapon
    Weight - float the weight of one object of this type
    Gold Value - long the gold value of one object of this type.  this value may not match the value displayed in the interface as that could include additional value from an enchantment.
    Is Quest Item flag - bool whether the type is a quest item.  quest items cannot be activated and cannot be dropped.
Functions:
    GetBaseObject - returns the base object of the reference
        (objectID:ref) reference.GetBaseObject
    GetType - returns a type code for each type of object
        (type:long) reference.GetType objectID:ref
    IsWeapon - returns whether the object is a weapon
        (isWeapon:bool) reference.IsWeapon objectID:ref
    IsAmmo - returns whether the object is ammunition
        (isAmmo:bool) reference.IsAmmo objectID:ref
    IsArmor - returns whether the object is armor
        (isArmor:bool) reference.IsArmor objectID:ref
    IsBook - returns whether the object is a book
        (isBook:bool) reference.IsBook objectID:ref
    IsClothing - returns whether the object is clothing
        (isClothing:bool) reference.IsClothing objectID:ref
    IsIngredient - returns whether the object is an ingredient
        (isIngredient:bool) reference.IsIngredient objectID:ref
    IsKey - returns whether the object is a key
        (isKey:bool) reference.IsKey objectID:ref
    IsAlchemyItem - returns whether the object is an alchemy item
        (isAlchemyItem:bool) reference.IsAlchemyItem objectID:ref
    IsApparatus - returns whether the object is an alchemy apparatus
        (isApparatus:bool) reference.IsApparatus objectID:ref
    IsSoulGem - returns whether the object is a soul gem
        (isSoulGem:bool) reference.IsSoulGem objectID:ref
    IsSigilStone - returns whether the object is a sigil stone
        (isSigilStone:bool) reference.IsSigilStone objectID:ref
    IsLight - returns whether the object is a light source
        (isLight:bool) reference.IsLight objectID:ref
    GetWeight - returns the weight of the type
        (weight:float) reference.GetWeight objectID:ref
    SetWeight - sets the weight of the type
        (nothing) reference.SetWeight nuWeight:float objectID:ref
    ModWeight - modifies the weight of the type up or down
        (nothing) reference.ModWeight modifyBy:float objectID:ref
    GetGoldValue - returns the base gold value of the type
        (goldValue:long) reference.GetGoldValue objectID:ref
    SetGoldValue - sets the base gold value of the type
        (nothing) reference.SetGoldValue nuGoldValue:long objectID:ref
    ModGoldValue - modifies the base gold value of the type up or down
        (nothing) reference.ModGoldValue modifyBy:float objectID:ref
    IsQuestItem - returns whether the type is a quest item
        (isQuestItem:bool) reference.IsQuestItem objectID:ref
    SetQuestItem - sets whether the type is a quest item
        (nothing) reference.SetQuestItem isQuestItem:bool objectID:ref

Magic
Types with this quality have a group of magical effects
Values:
    Magic Item Type - short the type of magic item (Spell, Enchantment, AlchemyItem, Ingredient)
    Effect Count - long the number of magic effect items in the type
    EffectItem Code - long the magic effect code for the effect item
    EffectItem Magnitude - long the magnitude of the magic effect item
    EffectItem Area - long the area affected by the magic effect item
    EffectItem Duration - long the time in seconds the magic effect lasts
    EffectItem Range - short the range of the effect (Self, Touch, Target)
    EffectItem Actor Value - long a code for the attribute or skill affected by the effect item
Functions:
    GetMagicItemType - returns the magic item type
        (magicItemType:short) GetMagicItemType objectID:ref
        (magicItemType:short) GetMIType objectID:ref       
    GetMagicItemEffectCount - returns the number of magic effect items
        (count:long) GetMagicItemEffectCount objectID:ref
        (count:long) GetMIECount objectID:ref
    MagicItemHasEffect - returns whether the magic item has an effect item with the specifed effect.  Uses the 4 letter codes for the magic effects listed in the CS.
        (hasEffect:bool) MagicItemHasEffect effect:chars
        (hasEffect:bool) MagicHasEffect effect:chars
    MagicItemHasEffectCode - returns whether the magic item has an effect item with the specified effect code. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode.
        (hasEffect:bool) MagicItemHasEffectCode effect:chars
        (hasEffect:bool) MagicHasEffectC effect:chars
    GetNthEffectItemCode - returns the magic effect code of the specified effect item
        (code:long) GetNthEffectItemCode objectID:ref whichEffect:short
        (code:long) GetNthEICode objectID:ref whichEffect:short
    GetNthEffectItemMagnitude - returns the magnitude of the specified effect item
        (magnitude:long) GetNthEffectItemMagnitude objectID:ref whichEffect:short
        (magnitude:long) GetNthEIMagnitude objectID:ref whichEffect:short
    SetNthEffectItemMagnitude - sets the magnitude of the specified effect item
        (nothing) SetNthEffectItemMagnitude nuMagnitude:long objectID:ref whichEffect:short
        (nothing) SetNthEIMagnitude nuMagnitude:long objectID:ref whichEffect:short
    ModNthEffectItemMagnitude - modifies the magnitude of the specified effect item up or down
        (nothing) ModNthEffectItemMagnitude modifyBy:float objectID:ref whichEffect:short
        (nothing) ModNthEIMagnitude modifyBy:float objectID:ref whichEffect:short
    GetNthEffectItemArea - returns the area of the specified effect item
        (area:long) GetNthEffectItemArea objectID:ref whichEffect:short
        (area:long) GetNthEIArea objectID:ref whichEffect:short
    SetNthEffectItemArea - sets the area of the specified effect item
        (nothing) SetNthEffectItemArea nuArea:long objectID:ref whichEffect:short
        (nothing) SetNthEIArea nuArea:long objectID:ref whichEffect:short
    ModNthEffectItemArea - modifies the effect area of the specified effect item up or down
        (nothing) ModNthEffectItemArea modifyBy:float objectID:ref whichEffect:short
        (nothing) ModNthEIArea modifyBy:float objectID:ref whichEffect:short
    GetNthEffectItemDuration - returns the duration of the specified effect item
        (duration:long) GetNthEffectItemDuration objectID:ref whichEffect:short
        (duration:long) GetNthEIDuration objectID:ref whichEffect:short
    SetNthEffectItemDuration - sets the duration of the specified effect item
        (nothing) SetNthEffectItemDuration nuDuration:long objectID:ref whichEffect:short
        (nothing) SetNthEIDuration nuDuration:long objectID:ref whichEffect:short
    ModNthEffectItemDuration - modifies the duration of the specified effect item up or down
        (nothing) ModNthEffectItemDuration modifyBy:float objectID:ref whichEffect:short
        (nothing) ModNthEIDuration modifyBy:float objectID:ref whichEffect:short
    GetNthEffectItemRange - gets the range of the specified effect item
        (range:short) GetNthEffectItemrange objectID:ref whichEffect:short
        (range:short) GetNthEIRange objectID:ref whichEffect:short
    SetNthEffectItemRange - sets the range of the specified effect item
        (nothing) SetNthEffectItemRange nuRange:short objectID:ref whichEffect:short
        (nothing) SetNthEIRange nuRange:short objectID:ref whichEffect:short
    GetNthEffectItemActorValue - gets the actor value of the specified effect item
        (actorValueCode:long) GetNthEffectItemActorValue objectID:ref whichEffect:short
        (actorValueCode:long) GetNthEIAV objectID:ref whichEffect:short
    SetNthEffectItemActorValue - sets the actor values of the specified effect item
        (nothing) SetNthEffectItemActorValue nuActorValue:long objectID:ref whichEffect:short
        (nothing) SetNthEIAV nuActorValue:long objectID:ref whichEffect:short
    RemoveNthEffectItem - removes the specified effect item
        (nothing) RemoveNthEffectItem objectID:ref whichEffect:short
        (nothing) RemoveNthEffect objectID:ref whichEffect:short
       
Named
Types with this quality have a setable name
Values:
    Name - string the display name of the type
Functions:
    SetName - sets the display name of the type.  SetName is a special function.  It is defined to work on Inventory items, but it can be used with any form.  To use with a non-Inventory item you must first assign the objectID to a ref.  For most forms the name is part of the base form and changing the name will change it for all instances of the type.
        (nothing) reference.SetName name:string objectID:ref

Simple

Types with this quality have a single model path and a single icon texture
Values:
    Model Path - string the path to the NIF model for the type
    Icon Path - string the path to the DDS icon texture for the type
Functions:
    SetModelPath - sets the model path for the type
        (nothing) reference.SetModelPath modelPath:string objectID:ref
    SetIconPath  - sets the icon path for the type
        (nothing) reference.SetIconPath iconPath:string objectID:ref

Wearable
Types with this quality can be worn by actors and can have different models and textures for males and females
Values
    Slot - short the equipment slot or slots taken by the object
    Male Model Path - string the path to the NIF file for the male or only model while worn
    Female Model Path - string the path to the NIF file for the female model while worn
    Male Ground Path - string the path to the NIF for the male or only model when dropped
    Female Ground Path - string the path to the NIF for the female  model when dropped
    Male Icon Path - string the path to the DDS icon file for the male or only model
    Female Icon Path - string the path to the DDS icon file for the female model
Functions:
    GetEquipmentSlot - returns the equipment slot or slots taken by the object
        (slot:short) reference.GetEquipentSlot objectID:ref
    SetEquipmentSlot - sets the equipment slot or slots taken by the object
        (nothing) reference.SetEquipmentSlot slot:short objectID:ref
    SetMaleBipedPath - sets the male NIF model path when worn
        (nothing) reference.SetMaleModelPath modelPath:string objectID:ref
    SetFemaleBipedPath - sets the female NIF model path when worn
        (nothing) reference.SetFemaleModelPath modelPath:string objectID:ref
    SetMaleGroundPath - sets the male model path when dropped
        (nothing) reference.SetMaleGroundPath modelPath:string objectID:ref
    SetFemaleGroundPath - sets the female model path when dropped
        (nothing) reference.SetFemaleGroundPath modelPath:string objectID:ref
    SetMaleIconPath - sets the male icon texture
        (nothing) reference.SetMaleIconPath iconPath:string objectID:ref
    SetFemaleIconPath - sets the female icon texture
        (nothing) reference.SetFemaleIconPath iconPath:string objectID:ref


Oblivion Types
Oblivion Types are the various forms available to fill out in the CS.  They correspond to real objects or concepts in Oblivion.   Types are a collection of values and functions which can be applied to them.  Frequently they have Qualities which encapsulate common values and functions across the various types.  If a type has a quality listed, that type has all of the values and functions of that quality in addition to any listed directly with the type itself.
Alchemy Item
Alchemy Items are potions and poisons.
Qualities: Edible, InventoryMagic, Named, Simple
Values:
    Is Poison Flag- bool whether the alchemy item is considered a poison.  A poison is an alchemy item with all hostile effects. An alchemy item with even a single non-hostile effect is not a poison.
Functions:
    IsPoison - returns whether the alchemy item is a poison.
        (isPoison:bool) reference.IsPoison objectID:ref

Ammo
Ammo includes all ammunition like arrows.
Qualities: Attacking, Enchantable, Equippable, Inventory, Named, Simple

Armor
Armor is any type of wearable object that provides protection against damage
Qualities: Breakable, Enchantable, Inventory, Named, Wearable
Values:
    Armor Rating - long the value of protection provided by the armor
    Armor Type - short the type of the armor. Armor Type Codes.
Functions:
    GetArmorAR - returns the armor rating of the object
        (armorRating:long) reference.GetArmorAR objectID:ref
    SetArmorAR - sets the armor rating of the object
        (nothing) reference.SetArmorAR nuArmorRating:long objectID:ref
    ModArmorAR - modifies the armor rating of the object up or down
        (nothing) reference.ModArmorAR modifyBy:float objectID:ref
    GetArmorType - returns 0 if light armor and 1 if heavy armor
        (armorType:short) reference.GetArmorType objectID:ref
    SetArmorType - sets whether the armor is heavy or light
        (nothing) reference.SetArmorType nuArmorType:short objectID:ref

Clothing
Clothing is any wearable object that does not provide armor protection.  Includes amulets and rings.
Qualities: Enchantable, Inventory, Named, Wearable

Enchantment
An Enchantment is a group of magical effects that can be applied to enchantable objects.
Qualities: Named, Magic
Value:
    Enchantment Type - short the type of object to which an enchantment may be applied
     Charge - long the charge of the enchantment.  Of unknown and dubious use - the number sometimes does not correspond to the value listed in the CS.  The CS seems to list cost and charge both from the Cost value on the enchantment item.
    Cost - long the cost in magicka charge consumed by each use of the enchantment
Functions:
    GetEnchantmentType - returns the type of the enchantment
        (enchantType:short) GetEnchantmentType objectID:ref
    SetEnchantmentType - sets the type of the enchantment
        (nothing) SetEnchantmentType enchantType:short objectID:ref
    GetEnchantmentCharge - returns the charge of the enchantment.  Of unknown and dubious use.
        (charge:long) GetEnchantmentCharge objectID:ref
    SetEnchantmentCharge - sets the charge of the enchantment.  Of unknown and dubious use.
        (nothing) SetEnchantmentCharge nuCharge:long objectID:ref
    ModEnchantmentCharge - modifies the charge of the enchantment.  Of unknown and dubious use.
        (nothing) ModEnchantmentCharge modifyBy:float objectID:ref
    GetEnchantmentCost - returns the magicka charge cost for using the enchantment
        (cost:long) GetEnchantmentCost objectID:ref
    SetEnchantmentCost - sets the cost for using the enchantment
        (nothing) SetEnchantmentCost nuCost:long objectID:ref
    ModEnchantmentCost - modifies the cost for using the enchantment up or down
        (nothing) ModEnchantmentCost modifyBy:float objectID:ref

Ingredient
Ingredients are items that may be used to create Alchemy Items.
Qualities: Edible, InventoryMagic, Named, Simple

Magic Effect Setting
Values:
    Code - chars or long the magic effect code.  In the CS this is a 4 character code (like FIDG or Z001).  As a return value from OBSE functions it is a long with the same numerical value.
    Base Cost - float the base cost multiplier for the effect
    School - short the spell skill controlling the effect
    Projectile Speed - float the projectile speed of the magic effect
    Enchant Factor - float the constant effect enchantment factor which helps determine the maximum magnitude of the effect when enchanting
    Barter Factor - float the constant effect barter factor which helps determine the increase in value when enchanting
    Is Hostile flag - bool determines if the effect is hostile. Only hostile effects may be in a poison.
Functions:
    GetMagicEffectCode - returns the magic effect code of the effect.
        (magicEffectCode:long) GetMagicEffectCode effect:chars
        (magicEffectCode:long) GetMECode effect:chars
    GetMagicEffectBaseCost - returns the base cost of the magic effect
        (baseCost:float) GetMagicEffectBaseCost effect:chars
        (baseCost:float) GetMEBaseCost effect:chars
        (baseCost:float) GetMagicEffectBaseCostC effect:long
        (baseCost:float) GetMEBaseCostC effect:long
    GetMagicEffectSchool - returns the controlling school of the magic effect
        (magicSchool:short) GetMagicEffectSchool effect:chars
        (magicSchool:short) GetMESchool effect:chars
        (magicSchool:short) GetMagicEffectSchoolC effect:long
        (magicSchool:short) GetMESchoolC effect:long
    GetMagicEffectProjectileSpeed - returns the projectile speed of the magic effect
        (projectileSpeed:float) GetMagicEffectProjectileSpeed effect:chars
        (projectileSpeed:float) GetMEProjSpeed effect:chars
        (projectileSpeed:float) GetMagicEffectProjectileSpeedC effect:long
        (projectileSpeed:float) GetMEProjSpeedC effect:long
    GetMagicEffectEnchantFactor - returns the constant effect enchantment factor of the magic effect
        (enchantFactor:float) GetMagicEffectEnchantFactor effect:chars
        (enchantFactor:float) GetMEEnchant effect:chars
        (enchantFactor:float) GetMagicEffectEnchantFactorC effect:long
        (enchantFactor:float) GetMEEnchantC effect:long
    GetMagicEffectBarterFactor - returns the constant effect barter factor of the magic effect
        (enchantFactor:float) GetMagicEffectBarterFactor effect:chars
        (enchantFactor:float) GetMEEBarter effect:chars
        (enchantFactor:float) GetMagicEffectBarterFactorC effect:long
        (enchantFactor:float) GetMEBarterC effect:long
    IsMagicEffectHostile - returns whether the magic effect is hostile
        (isHostile:bool) IsMagicEffectHostile effect:chars
        (isHostile:bool) IsMEHostile effect:chars
        (isHostile:bool) IsMagicEffectHostileC effect:long
        (isHostile:bool) IsMEHostileC effect:long

NPC
Qualities: Class, Container
Values:
    Equipped Items - NPC can equip and use items
Functions:
    GetEquippedObject - returns the base object of the item equipped in the specified slot
        (objectID:ref) reference.GetEquippedObject slot:short   
    GetEquippedCurrentCharge
    ModEquippedCurrentCharge
    SetEquippedCurrentCharge
    GetEquippedCurrentHealth
    ModEquippedCurrentHealth
    SetEquippedCurrentHealth
    GetEquippedWeaponPoison
    SetEquippedWeaponPoison
    RemoveEquippedWeaponPoison
    IsRefEssential - returns whether the referenced actor is essential
        (isEssential:bool) reference.IsRefEssential
    SetRefEssential - sets the calling ref to be essential or not
        reference.SetRefEssential isEssential:bool
    HasSpell - returns whether the NPC has the specified spell
        (hasSpell:bool) reference.HasSpell spell:ref
    ModActorValue2 - modifies the current value without changing the base value.  Acts like a spell: a negative number reduces the value which can be restored and a positive value restores values without exceeding the maximum of the stat.
        (nothing) reference.ModActorValue2 actorValueName:string value:long
    GetActorLightAmount - returns a float describing the amount of light falling on an actor, or 100 if the actor is not in high/medium-high process.
        (lightAmount:float) reference.GetActorLightAmout

Soul Gem
Qualities: Inventory, Named, Simple
Values:
    Soul Level - the soul level currently captured in the soul gem
    Capacity - the maximum soul level that can be captured in the soul gem
Functions:
    GetSoulLevel - returns the soul level currently in the soul gem
        (soulLevel:short) GetSoulLevel objectID:ref
    GetSoulGemCapacity -  returns the max soul level the soul gem can contain
        (soulLevel:short) GetSoulGemCapacity objectID:ref

Spell
Qualities: Magic, Named 
Value:
    Spell Type - short the kind of spell.  Spell Types.
    Magicka Cost - long the cost in magicka for casting the spell
    Mastery Level - short the skill mastery level needed to cast the spell.  Spell Mastery Levels.
Functions:
    GetSpellType - returns the spell type
        (spellType:short) GetSpellType objectID:ref
    SetSpellType - sets the spell type
        (nothing) SetSpellType nuType:short objectID:ref
    GetSpellMagickaCost - returns the magicka casting cost
        (magickaCost:long) GetSpellMagickaCost objectID:ref
    SetSpellMagickaCost* - sets the magicka casting cost
        (nothing) SetSpellMagickaCost nuMagickaCost:long objectID:ref
    ModSpellMagickaCost* - modifies the magicka casting cost up or down
        (nothing) ModSpellMagickaCost modifyBy:float objectID:ref
    GetSpellMasteryLevel - returns the mastery level of the spell
        (masteryLevel:short) GetSpellMasteryLevel objectID:ref
    SetSpellMasteryLevel* - sets the mastery level of the spell
        (nothing) SetSpellMasteryLevel masteryLevel:short objectID:ref
* these values can be changed but have no effect if the spell is marked AutoCalc.  Currently there is no way to determine if the spell is AutoCalc or to change the AutoCalc setting via script.

Weapon
Qualities: Attacking, Breakable, Enchantable, Equippable, Inventory, Named, Simple
Values:
    Reach - float the distance from the wielder the weapon can reach
    Weapon Type - short the type of weapon
    Poison - ref the poison currently applied to the weapon
Functions:
    GetWeaponReach - returns the reach of the weapon
        (reach:float) reference.GetWeaponReach objectID:ref
    SetWeaponReach - sets the reach of the weapon
        (nothing) reference.SetWeaponReach nuReach:float objectID:ref
    ModWeaponReach - modifies the reach of the weapon up or down
        (nothing) reference.ModWeaponReach modifyBy:float objectID:ref
    GetWeaponType - retuns the weapon type
        (weaponType:short) reference.GetWeaponType objectID:ref
    SetWeaponType - sets the weapon type
        (nothing) reference.SetWeaponType weaponType:short objectID:ref
    GetEquippedWeaponPoison - returns the poison applied to the equipped weapon.  Called on the weapon holder.
        (poison:ref) reference.GetEquippedWeaponPoison
    SetEquippedWeaponPoison - sets the poison applied to the equipped weapon and returns the previous poison.  Called on the weapon holder.
        (oldPoison:ref) reference.SetEquippedWeaponPoison nuPoison:ref
    RemoveEquippedWeaponPoison - removes and returns the poison applied to the equipped weapon.  Called on the weapon holder.
        (oldPoison:ref) reference.RemoveEquippedWeaponPoison


General Functions
    IsDoor - returns whether the calling reference or passed objectID is a door
        (isDoor:bool) reference.IsDoor objectID:ref
    IsFurniture - returns whether the calling reference or passed objectID is furniture
        (isFurniture:bool) reference.IsFurniture objectID:ref
    IsActivator - returns whether the calling reference or passed objectID is an activator
        (isActivator:bool) reference.IsActivator objectID:ref
    GetPlayerSpell - returns the objectID of the player's current spell
        (spell:ref) GetPlayerSpell
    GetGameLoaded - returns 1 if the game was loaded since the last time this call was made
        (gameLoaded:bool) GetGameLoaded
    GetOBSEVersion - returns the version number of OBSE
        (obseVersion:long) GetOBSEVersion
    GetParentCell - returns the objectID of the parent cell of the calling reference
        (parentCell:ref) reference.GetParentCell
    PrintToConsole - prints a message to the console in the same format as Message
        (nothing) PrintToConsole formatString:string var1 var2 etc
    SetNumericGameSetting - sets the specified game setting to the following variable or direct value
        (nothing) SetNumericGameSetting gameSettingName:string value:float
    GetNumericINISetting - returns the specified ini setting
        (setting:float) GetNumericINISetting iniSettingName:string
    SetNumericINISetting - sets the specified ini setting to the following variable or direct value
        (nothing) SetNumericINISetting iniSettingName:string value:float


Cloning Functions

    The cloning functions are special.  They are declared as taking Inventory Objects so any inventory object can be passed as a raw name from the CS.  However you can clone any form by first assigning it to a ref and then passing that ref to CloneForm.
    CloneForm - creates and returns a new base object that is an exact copy of the passed objectID
        (clonedForm:ref) CloneForm objectID:ref
        Examples:
            ref clonedInventoryItem
            ref clonedSpell
            ref originalSpell
            set clonedInventoryItem to CloneForm WeapSteelShortsword
            set originalSpell to StandardCalmTouch1Novice
            set clonedSpell to CloneForm originalSpell

    IsClonedForm - returns whether the passed objectID is a cloned form or not.  A cloned form is saved as part of the save game.  Instances of cloned forms are player created potions, spells and enchanted items
        (isCloned:bool) IsClonedForm objectID:ref

Flow Control Functions

The flow control functions allow you to implement loops in your scripts. Because there is no built-in loop support in the Oblivion script interpreter, the syntax for the functions is somewhat strange. The first function, SaveIP or Label, will record the position of the instruction after itself in an internal list. The second function, RestoreIP or Goto, jumps back to the saved position. Here's a simple example of a loop:

begin onActivate
    ; declare a variable to keep track of the number of times we've gone through the loop
    long var
    set var to 0
   
    ; save the current instruction pointer
    ; this records that the beginning of the loop is right before the PrintToConsole command
    SaveIP ; could also use Label
   
    ; print the current loop count
    PrintToConsole "loop %f" var
   
    ; update the loop counter
    set var to var + 1
   
    ; we only want to go through the loop three times, so check the loop counter
    if var < 3
        ; jump back to the saved location
        RestoreIP ; could also use Goto
    endif
   
    ; if we get here, we're done with the loop
end

When activated, this script will print:

loop 0.0000
loop 1.0000
loop 2.0000

To support nested loops, the SaveIP and RestoreIP commands take an optional integer parameter specifying which 'slot' to save the instruction location in. If you don't specify a number, it defaults to 0. There are 256 slots in the internal list. Here's an example of nested loops:

begin onActivate
    long var
    long var2
   
    set var2 to 0
   
    SaveIP 0    ; Label 0
        ; start of outer loop
        set var to 0
       
        SaveIP 1    ; Label 1
            ; start of inner loop
            PrintToConsole "loop %f %f" var var2
           
            set var to var + 1
        if var < 3
            ; branch to the start of the inner loop
            RestoreIP 1    ; Goto 1
        endif
    set var2 to var2 + 1
    if var2 < 3
        ; branch to the start of the outer loop
        RestoreIP 0        ; Goto 0
    endif
end

The inner loop uses slot 1, and the outer loop uses slot 0.

Important notes:

It is possible to create an infinite loop using these functions, which will hang Oblivion. Also note that while the list of saved locations is technically stored globally, the locations only make sense in the context of the script that saved them, and must be treated as if they are invalidated at the end of each script. Finally, do not use SaveIP/Label or RestoreIP/Goto in a 'set' or 'if' statement. (for example, "if RestoreIP == 4"). They are of course safe to use inside the body of an if statement as demonstrated in the examples, just not in the if statement itself.

The original implementation of these functions in OBSE v0009 was broken, leading to memory corruption and crashes when a loop would run more than approximately 10 iterations. The bugfix release v0009a fixes this, however as the functions in that version should still be considered 'beta' and unsupported for use in released mods, the main version number has not been updated. These functions will be supported in v0010, so make sure that you check that GetOBSEVersion returns 10 or greater before using the functions. See the obse_readme.txt for an example of how to do this.

SaveIP - save the location of the command following the SaveIP command
        (nothing) SaveIP slot:long
        (nothing) Label slot:long
RestoreIP - jump to a previously saved location
        (nothing) RestoreIP slot:long
        (nothing) Goto slot:long

Console Functions
Some of the console commands have been exposed as scripting commands. In many cases, their functionality is not completely documented, and as they were not designed to be used via scripts, strange behavior may occur when using them. The primary thing to expect is changes not being saved in the player's savedata file.

con_GetINISetting
con_HairTint
con_ModWaterShader
con_RefreshINI
con_RunMemoryPass
con_SetCameraFOV
con_SetClipDist
con_SetFog
con_SetGameSetting
con_SetGamma
con_SetHDRParam
con_SetImageSpaceGlow
con_SetINISetting
con_SetSkyParam
con_SetTargetRefraction
con_SetTargetRefractionFire
con_SexChange
con_ToggleDetection
con_WaterDeepColor
con_WaterReflectionColor
con_WaterShallowColor


Input Functions
IsKeyPressed - returns whether the specified key is currently pressed.  Uses standard windows key codes.
        (isKeyPressed:bool) IsKeyPressed windowsKeyCode:long
IsKeyPressed2 - returns whether the specified key is currently pressed.  Uses DX scancodes.
        (isKeyPressed:bool) IsKeyPressed2 dxScanCode:long
GetKeyPress - returns the DX scan code of the key being pressed.  If more than one key is pressed use whichIndex to choose which keycode to return.
        (keyPressed:long) GetKeyPress whichIndex:long
GetNumKeysPressed - returns the number of keys currently pressed
        (count:long) GetNumKeysPressed
DisableKey - disables the key with the specified dx scancode
        (nothing) DisableKey dxScanCode:long
EnableKey - enables the key with the specified dx scancode.  Turns off DisableKey.
        (nothing) EnableKey dxScanCode:long
HoldKey - holds down the key with the specified dx scancode
        (nothing) HoldKey dxScanCode:long
ReleaseKey - releases a held key with the specified dx scancode
        (nothing) ReleaseKey dxScanCode:long
TapKey - presses the key with the specidied dx scancode once
        (nothing) TapKey dxScanCode:long
HammerKey - fakes keypresses every other frame of the key with the specified dx scancode
        (nothing) HammerKey dxScanCode:long
AHammerKey -  fakes keypresses every other frame on the alternate frames from HammerKey of the key with the specified dx scancode
        (nothing) AHammerKey dxScanCode:long
UnHammerKey - stops hammering the key with the specified dx scancode
        (nothing) UnHammerKey dxScanCode:long
GetControl - returns the dx scancode of the key used for the specified control
        (dxScanCode:long) GetControl whichControl:short
GetAltControl - returns the dx scancode of the alternate key used for the specified control
        (dxScanCode:long) GetAltControl whichControl:short
GetMouseButtonPress - returns the dx scancode of the mouse button being pressed.  If more than one mouse button is pressed, use whichIndex to choose which code to return
        (dxScanCode:long) GetMouseButtonPress whichIndex:long
GetNumMouseButtonsPressed - returns the number of mouse buttons pressed.
        (count:long) GetNumMouseButtonsPressed
DisableMouse - prevents the mouse from moving
        (nothing) DisableMouse
EnableMouse - turns off DisableMouse
        (nothing) EnableMouse
MoveMouseX - moves the mouse horizontally the specified number of pixels
        (nothing) MoveMouseX pixels:long
MoveMouseY - moves the mouse veritcally the specified number of pixels
        (nothing) MoveMouseY pixels:long
SetMouseSpeedX - moves the mouse in the horizontal axis at the specified number of pixels per second
        (nothing) SetMouseSpeedX pixels:float
SetMouseSpeedY - Moves the mouse in the vertical axis at the specified number of pixels per second.
        (nothing) SetMouseSpeedY pixels:float


Math Functions
    Abs - returns the absolute value of the argument
        (absoluteValue:float) abs arg:float
    Ceil - returns the nearest whole number above the argument
        (ceil:float) ceil arg:float
    Exp - returns e to the power of the argument
        (exp:float) exp arg:float
    Floor - returns the nearest whole number less than the argument
        (floor:float) floor arg:float
    Log - returns the natural logarithm of the number
        (log:float) log arg:float
    Log10 - returns the base 10 logarithm of the number
        (log10:float) log10 arg:float
    Pow - returns the base raised to the exponents power
        (pow:float) pow base:float exponent:float
    Rand - returns a random number between min and max
        (rand:float) rand min:float max:float
    SquareRoot - returns the square root of the argument
        (sqrt:float) squareroot arg:float
        (sqrt:float) sqrt arg:float

Trigonometry Functions
    ACos - returns the arccosine of the argument.  ACos and DACos use degrees.  RACose uses radians.
        (acos:float) acos arg:float
        (acos:float) dacos arg:float
        (acos:float) racos arg:float
    ASin - returns the arcsine of the argument.  ASin and DASin use degrees.  RASin uses radians.
        (asin:float) asin arg:float
        (asin:float) dasin arg:float
        (asin:float) rasin arg:float
    ATan - returns the arctangent of the argument.  ATan and DATan use degrees.  RATan uses radians.
        (atan:float) atan arg:float
        (atan:float) datan arg:float
        (atan:float) ratan arg:float
    ATan2 - returns the arctangent of the arguments.  ATan2 and DATan2 use degrees. RATan2 uses radians.
        (atan2:float) atan2 arg1:float arg2:float
        (atan2:float) datan2 arg1:float arg2:float
    Cos - returns the cosine of the angle.  Cos and DCos use degrees.  RCos uses radians.
        (cos:float) cos arg:float
        (cos:float) dcos arg:float
        (cos:float) rcos arg:float
    Cosh - returns the hyperbolic cosine of the angle. Cosh and DCosh use degrees.  RCosh uses radians.
        (cosh:float) cosh arg:float
        (cosh:float) dcosh arg:float
        (cosh:float) rcosh arg:float
    Sin - returns the sine of the angle. Sin and DSin use degrees.  RSinh uses radians.
        (sin:float) sin arg:float
        (sin:float) dsin arg:float
        (sin:float) rsin arg:float
    Sinh - returns the hyperbolic sine of the angle.  Sinh and DSinh use degrees.  RSinh uses radians.
        (sinh:float) sin arg:float
        (sinh:float) dsin arg:float
        (sinh:float) rsin arg:float
    Tan - returns the tangent of the angle. Tan and DTan use degrees.  RTan uses radians.
        (tan:float) tan arg:float
        (tan:float) dtan arg:float
        (tan:float) rtan arg:float
    Tanh - returns the hyperbolic tangent of the angle. Tanh and DTanh use degrees.  RTanh uses radians.
        (tanh:float) tanh arg:float
        (tanh:float) dtanh arg:float
        (tanh:float) rtanh arg:float
       
Type Codes

Form Type IDs

  0:    None

  1:    TES4
  2:    Group
  3:    GMST
  4:    Global
  5:    Class
  6:    Faction
  7:    Hair
  8:    Eyes
  9:    Race
 10:    Sound
 11:    Skill
 12:    Effect
 13:    Script
 14:    LandTexture
 15:    Enchantment
 16:    Spell
 17:    BirthSign
 18:    Activator
 19:    Apparatus
 20:    Armor
 21:    Book
 22:    Clothing
 23:    Container
 24:    Door
 25:    Ingredient
 26:    Light
 27:    Misc
 28:    Stat
 29:    Grass
 30:    Tree
 31:    Flora
 32:    Furniture
 33:    Weapon
 34:    Ammo
 35:    NPC
 36:    Creature
 37:    LeveledCreature
 38:    SoulGem
 39:    Key
 40:    AlchemyItem
 41:    SubSpace
 42:    SigilStone
 43:    LeveledItem
 44:    SNDG
 45:    Weather
 46:    Climate
 47:    Region
 48:    Cell
 49:    REFR
 50:    ACHR
 51:    ACRE
 52:    PathGrid
 53:    WorldSpace
 54:    Land
 55:    TLOD
 56:    Road
 57:    Dialog
 58:    DialogInfo
 59:    Quest
 60:    Idle
 61:    Package
 62:    CombatStyle
 63:    LoadScreen
 64:    LeveledSpell
 65:    ANIO
 66:    WaterForm
 67:    EffectShader
 68:    TOFT

Equipment Slot IDs
  0:    head
  1:    hair
  2:    upper body
  3:    lower body
  4:    hand
  5:    foot
  6:    right ring
  7:    left ring
  8:    amulet
  9:    weapon
 10:    back weapon
 11:    side weapon
 12:    quiver
 13:    shield
 14:    torch
 15:    tail
 16:    weapon*
 17:    ammo*
 18:    lower and upper body
 19:    lower and upper and foot
 20:    lower, upper, hand and foot
    *Return values only

Weapon Type
  0:    Blade1H
  1:    Blade2H
  2:    Blunt1H
  3:    Blunt2H
  4:    Staff
  5:    Bow

Armor Type
  0:    Light Armor
  1:    Heavy Armor

Soul Level
  0:    None
  1:    Petty
  2:    Lesser
  3:    Common
  4:    Greater
  5:    Grand

Magic Item Type
  0:    Not a Magic Item
  1:    Spell
  2:    Enchantment
  3:    Alchemy Item
  4:    Ingredient

Magic Effect Range
  0:    Self
  1:    Touch
  2:    Target

Spell Type
  0:    Spell
  1:    Disease
  2:    Power
  3:    Lesser Power
  4:    Ability

Spell Mastery Level
  0:    Novice
  1:    Apprentice
  2:    Journeymand
  3:    Expert
  4:    Master

Enchantment Type
  0:    Scroll
  1:    Staff
  2:    Weapon
  3:    Apparel

Magic Schools
  0:    Alteration
  1:    Conjuration
  2:    Destruction
  3:    Illusion
  4:    Mysticism
  5:    Restoration

Actor Value Codes
  0:    Strength
  1:    Intelligence
  2:    Willpower
  3:    Agility
  4:    Speed
  5:    Endurance
  6:    Personality
  7:    Luck
  8:    Health
  9:    Magicka
 10:    Fatigue
 11:    Encumbrance
 12:    Armorer
 13:    Athletics
 14:    Blade
 15:    Block
 16:    Blunt
 17:    HandToHand
 18:    HeavyArmor
 19:    Alchemy
 20:    Alteration
 21:    Conjuration
 22:    Destruction
 23:    Illusion
 24:    Mysticism
 25:    Restoration
 26:    Acrobatics
 27:    LightArmor
 28:    Marksman
 29:    Mercantile
 30:    Security
 31:    Sneak
 32:    Speechcraft
 33:    Aggression
 34:    Confidence
 35:    Energy
 36:    Responsibility
 37:    Bounty
 38:    Fame
 39:    Infamy
 40:    MagickaMultiplier
 41:    NightEyeBonus
 42:    AttackBonus
 43:    DefendBonus
 44:    CastingPenalty
 45:    Blindness
 46:    Chameleon
 47:    Invisibility
 48:    Paralysis
 49:    Silence
 50:    Confusion
 51:    DetectItemRange
 52:    SpellAbsorbChance
 53:    SpellReflectChance
 54:    SwimSpeedMultiplier
 55:    WaterBreathing
 56:    WaterWalking
 57:    StuntedMagicka
 58:    DetectLifeRange
 59:    ReflectDamage
 60:    Telekinesis
 61:    ResistFire
 62:    ResistFrost
 63:    ResistDisease
 64:    ResistMagic
 65:    ResistNormalWeapons
 68:    ResistParalysis
 67:    ResistPoison
 68:    ResistShock
 69:    Vampirism
 70:    Darkness
 71:    ResistWaterDamage
256:    No Actor Value

Class Specialization Codes
  0:    Combat
  1:    Magic
  2:    Stealth

Input Control IDs
  0:    Forward
  1:    Back
  2:    Slide Left
  3:    Slide Right
  4:    Use
  5:    Activate
  6:    Block
  7:    Cast
  8:    Ready Item
  9:    Crouch/Sneak
 10:    Run
 11:    Always Run
 12:    Auto Move
 13:    Jump
 14:    Toggle POV
 15:    Menu Mode
 16:    Rest
 17:    Quick Menu
 18:    Quick1
 19:    Quick2
 20:    Quick3
 21:    Quick4
 22:    Quick5
 23:    Quick6
 24:    Quick7
 25:    Quick8
 26:    QuickSave
 27:    QuickLoad
 28:    Grab

Function Index
Abs
ACos
AHammerKey
ASin
ATan
ATan2
Ceil
CloneForm
con_GetINISetting
con_HairTint
con_ModWaterShader
con_RefreshINI
con_RunMemoryPass
con_SetCameraFOV
con_SetClipDist
con_SetFog
con_SetGameSetting
con_SetGamma
con_SetHDRParam
con_SetImageSpaceGlow
con_SetINISetting
con_SetSkyParam
con_SetTargetRefraction
con_SetTargetRefractionFire
con_SexChange
con_ToggleDetection
con_WaterDeepColor
con_WaterReflectionColor
con_WaterShallowColor
Cos
Cosh
DisableKey
DisableMouse
EnableKey
EnableMouse
Exp
Floor
GetPlayerSpell
GetActorLightAmount
GetAltControl
GetArmorAR
GetArmorType
GetAttackDamage
GetBaseObject
GetClass
GetClassAttribute
GetClassSkill
GetClassSpecialization
GetControl
GetEnchantment
GetEnchantmentCharge
GetEnchantmentCost
GetEnchantmentType
GetEquipmentSlot
GetEquippedCurrentCharge
GetEquippedCurrentHealth
GetEquippedObject
GetEquippedWeaponPoison
GetGameLoaded
GetGoldValue
GetIgnoresResistance
GetInventoryObject
GetKeyPress
GetMagicEffectBarterFactor
GetMagicEffectBaseCost
GetMagicEffectCode
GetMagicEffectEnchantFactor
GetMagicEffectProjectileSpeed
GetMagicEffectSchool
GetMagicItemEffectCount
GetMagicItemType
GetMouseButtonPress
GetNthEffectItemActorValue
GetNthEffectItemArea
GetNthEffectItemCode
GetNthEffectItemDuration
GetNthEffectItemMagnitude
GetNthEffectItemRange
GetNumericINISetting
GetNumItems
GetNumKeysPressed
GetNumMouseButtonsPressed
GetObjectCharge
GetObjectHealth
GetOBSEVersion
GetParentCell
GetSoulGemCapacity
GetSoulLevel
GetSpellMagickaCost
GetSpellMasteryLevel
GetSpellType
GetType
GetWeaponReach
GetWeaponSpeed
GetWeaponType
GetWeight
Goto
HammerKey
HasSpell
HoldKey
IsActivator
IsAlchemyItem
IsAmmo
IsApparatus
IsArmor
IsBook
IsClassSkill
IsClonedForm
IsClothing
IsContainer
IsDoor
IsFood
IsFurniture
IsIngredient
IsKey
IsKeyPressed
IsKeyPressed2
IsLight
IsMagicEffectHostile
IsPoison
IsQuestItem
IsRefEssential
IsSigilStone
IsSoulGem
IsWeapon
Label
Log
Log10
MagicItemHasEffect
MagicItemHasEffectCode
ModActorValue2
ModArmorAR
ModAttackDamage
ModEnchantmentCharge
ModEnchantmentCost
ModEquippedCurrentCharge
ModEquippedCurrentHealth
ModGoldValue
ModNthEffectItemArea
ModNthEffectItemDuration
ModNthEffectItemMagnitude
ModObjectCharge
ModObjectHealth
ModSpellMagickaCost
ModWeaponReach
ModWeaponSpeed
ModWeight
MoveMouseX
MoveMouseY
Pow
PrintToConsole
Rand
ReleaseKey
RemoveEnchantment
RemoveEquippedWeaponPoison
RemoveNthEffectItem
RestoreIP
SaveIP
SetArmorAR
SetArmorType
SetAttackDamage
SetEnchantment
SetEnchantmentCharge
SetEnchantmentCost
SetEnchantmentType
SetEquipmentSlot
SetEquippedCurrentCharge
SetEquippedCurrentHealth
SetEquippedWeaponPoison
SetFemaleBipedPath
SetFemaleGroundPath
SetFemaleIconPath
SetGoldValue
SetIconPath
SetIgnoresResistance
SetIsFood
SetMaleBipedPath
SetMaleGroundPath
SetMaleIconPath
SetModelPath
SetMouseSpeedX
SetMouseSpeedY
SetName
SetNthEffectItemActorValue
SetNthEffectItemArea
SetNthEffectItemDuration
SetNthEffectItemMagnitude
SetNthEffectItemRange
SetNumericGameSetting
SetNumericINISetting
SetObjectCharge
SetObjectHealth
SetQuestItem
SetRefEssential
SetSpellMagickaCost
SetSpellMasteryLevel
SetSpellType
SetWeaponReach
SetWeaponSpeed
SetWeaponType
SetWeight
Sin
Sinh
SquareRoot
Tan
Tanh
TapKey
UnHammerKey

Deprecated Functions
GetEquippedCurrentValue - replaced by GetEquippedCurrentHealth, GetEquippedCurrentCharge and GetEquippedWeaponPoison
GetEquippedObjectValue - replaced by GetEquippedObject and the appropriate individual value functions
GetInventoryItemType - renamed GetBaseObject
GetMagicEffectCodeValue - replaced by the individual GetMagicEffectXXXXC functions.
GetMagicEffectValue - replaced by the individual GetMagicEffect functions
GetMagicItemValue - replaced by the individual MagicItem functions
GetObjectValue - replaced by the individual value functions
SetActiveSpell - duplicate of standard SetPlayerSpell function