Difference between revisions of "Talk:GetObjectValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
(@Behippo: Does this work with Shields?)
 
imported>JOG
(Bugs Fixed)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
seems like there's a little glitch:
==General Talk==
 
This looks sweet, but... Isn't there already a way for the game to detect this?  I know when you steal something that the value is added to your bounty... [[User:TheImperialDragon|The Imperial Dragon]] 05:41, 20 August 2006 (EDT)
 
:[[User:JOG|JOG]] 08:20, 20 August 2006 (EDT): Nope, this is hardcoded in the crime-detection AI. For me GetObjectvalue is THE Killerfeature for OBSE (along with the fact that it now runs with my NoCD-patched Oblivion.EXE). Just a bit of testing left and I'll release a mod that gives you a sneak-penalty for wearing heavy armor (Half the weight of boots and greaves and one third of a cuirass' weight). In addition the mod determines how suitable your weapon is for backstabbing by checking its speed and then modifies the sneak-attack-multiplier gamesettings accordingly.
 
 
<br>
<br>
<br>
<br>
<br>
<br>
<br>
 
==Glitches, Bugs, Etc...==
 
[[User:JOG|JOG]]: seems like there's a little glitch:


  getov 151 LeatherShield
  getov 151 LeatherShield


Returns "1" although the Shield is LightArmor
Returns "1" although the Shield is LightArmor
== 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)
: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 identical blocks for Upper Body and Boots, but when I use it for a Shield, the penalty is applied even when I equip light armor.
:[[User:JOG|JOG]] 15:48, 19 August 2006 (EDT)
::Just for the records: There were bugs, and they were fixed in v0007 --[[User:JOG|JOG]] 04:17, 1 September 2006 (EDT)

Latest revision as of 03:17, 1 September 2006

General Talk[edit source]

This looks sweet, but... Isn't there already a way for the game to detect this? I know when you steal something that the value is added to your bounty... The Imperial Dragon 05:41, 20 August 2006 (EDT)

JOG 08:20, 20 August 2006 (EDT): Nope, this is hardcoded in the crime-detection AI. For me GetObjectvalue is THE Killerfeature for OBSE (along with the fact that it now runs with my NoCD-patched Oblivion.EXE). Just a bit of testing left and I'll release a mod that gives you a sneak-penalty for wearing heavy armor (Half the weight of boots and greaves and one third of a cuirass' weight). In addition the mod determines how suitable your weapon is for backstabbing by checking its speed and then modifies the sneak-attack-multiplier gamesettings accordingly.









Glitches, Bugs, Etc...[edit source]

JOG: seems like there's a little glitch:

getov 151 LeatherShield

Returns "1" although the Shield is LightArmor


Bugged[edit source]

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 identical blocks 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)
Just for the records: There were bugs, and they were fixed in v0007 --JOG 04:17, 1 September 2006 (EDT)