GetEquippedObjectValue
Jump to navigation
Jump to search
This script function is documented but either not implemented or else superceded by another function. Please do not use this function in your mod; alternatives are offered in the article.
Deprecated Function
This script function is documented but either not implemented or else superceded by another function. Please do not use this function in your mod; alternatives are offered in the article.
A command for Oblivion Script Extender
Deprecated from OBSE v0012: Replaced by GetEquippedObject and the appropiate individual value functions.
Syntax:
GetEquippedObjectvalue ValueType SlotID GetEOV Valuetype SlotID
Returns the requested value for the object in the specified slot of the calling reference. Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value)
Example:
float weaponspeed set weaponspeed to player.geteov 102 16
Sets the variable "weaponspeed" to the speed of the player's equipped weapon
Value Types[edit source]
Range Value Types 000-099 Common Values 100-149 Weapon and Ammo 150-199 Armor 200-209 Soul Gem 210-219 Ingredient 220-229 Alchemy Item
Num GetOV GetCV Value 0 f weight 1 i gold value (not including enchantment value) 2 i f health 3 i equipment SlotID 4 i f enchantment charge 5 b is quest item 6 ref enchantment 100 i attack damage 101 f reach 102 f speed 103 i weapon type 104 b ignores weapon resistence 105 ref poison applied to weapon 150 i armor rating 151 i armor type 200 i soul 201 i capacity 210 b is food 220 b is poison
Type codes:
Weapon Type (103) 0: Blade1H 1: Blade2H 2: Blunt1H 3: Blunt2H 4: Staff 5: Bow
Armor Type (151) 0: Light Armor 1: Heavy Armor
Soul Level (200-201) 0: None 1: Petty 2: Lesser 3: Common 4: Greater 5: Grand
Slot IDs[edit source]
armor/clothing 0 head 1 hair 2 upper body 3 lower body 4 hand 5 foot 6 right ring 7 left ring 8 amulet 13 shield 14 torch 15 tail 18 lower and upper body 19 lower and upper and foot 20 lower, upper, hand and foot 21 lower, upper, and hand 22 upper and hand 255 no slot weapon/ammo 16 weapon 17 ammo
Special return values are used for getting the Equipment Type (Value Type 3) in GetOV, GetCV, GetEOV and GetECV
Special return values 18 both lower and upper body (robes)
Reserved values are currently nonfunctional and/or obsolete.
reserved 9 (weapon) 10 (back weapon) 11 (side weapon) 12 (quiver)
See Also: