Difference between revisions of "Talk:GetObjectValue"
Jump to navigation
Jump to search
imported>Mandrill |
imported>JOG (Other armor works fine here) |
||
Line 8: | Line 8: | ||
== Bugged == | == Bugged == | ||
I noticed that EVERY armor returns as 1, no matter if they're light or heavy :( --[[User:Mandrill|Mandrill]] 15:40, 19 August 2006 (EDT) | I noticed that EVERY armor returns as 1, no matter if they're light or heavy :( --[[User:Mandrill|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 | |||
:[[User:JOG|JOG]] 15:48, 19 August 2006 (EDT) |
Revision as of 14:48, 19 August 2006
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
- JOG 15:48, 19 August 2006 (EDT)