Talk:GetObjectValue
Revision as of 14:56, 19 August 2006 by imported>JOG (→Bugged)
seems like there's a little glitch:
getov 151 LeatherShield
Returns "1" although the Shield is LightArmor
Bugged
I noticed that EVERY armor returns as 1, no matter if they're light or heavy :( --Mandrill 15:40, 19 August 2006 (EDT)
- Hm... other armor works fine here (I'm in the process of making a sneak-tweaking mod)
if Greaves != player.GetEquippedObject 3 ; Player Changed Lower Body Armor set Greaves to player.GetEquippedObject 3 player.modav sneak GreavesPenalty set GreavesPenalty to 0 if getov 151 Greaves == 1 ; New armor-type = Heavy? set GreavesPenalty to getov 0 Greaves / -2 ; Decrease sneak by 1/2 weight player.modav sneak GreavesPenalty set GreavesPenalty to -GreavesPenalty endif endif
- When the player equips light greaves, nothing happens, when he equips heavy greaves, his sneak skill is reduced by half the weight of the armor
I use the same block for Upper Body and Boots, but when I use it for a Shield, the penalty is applied even when I equip light armor.
- JOG 15:48, 19 August 2006 (EDT)