Difference between revisions of "Talk:SetActorValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
imported>DragoonWraith
(ok, now it's in the right place)
Line 8: Line 8:


:Jep. A base-value can't go below 0... --[[User:JOG|JOG]] 04:43, 30 August 2006 (EDT)
:Jep. A base-value can't go below 0... --[[User:JOG|JOG]] 04:43, 30 August 2006 (EDT)
== Weird Negatives ==
[[User:GuidoBot|GuidoBot]] 04:51, 12 October 2006 (EDT): I was trying to use SetAV in the way described on the WIKI. From a script '''player.SetAV X''' actually actually performs the equivalent to '''player.ModBaseAV X'''. That is X if +ve. If X is -ve then the result is equivalent to '''player.SetBaseAV 65536-X''' (i.e. the result is > 65536)! I also tried using a variable that was an int rather than a short for the -ve value. No difference. I also tried setting the value to 65536+X (X<0) and this gave the exactly same value (i.e. as X>0)! Very strange behavior. Not only that but my base health value also got changed by +256. There's definitely some kind of memory overwriting going on here. I'm sending this to you since I'm modding and it is best that someone else confirm this wierd behavior and a note added to the Wiki that SetAV doesn't do what is expected. We should probably confirm the scripting us too.
:[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=2>D</font>ragoon <font face="Oblivion,Daedric Runes" size=2>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 05:15, 12 October 2006 (EDT): Why are you setting a stat to a negative value?

Revision as of 04:15, 12 October 2006

It actually seems to me that SetActorValue really acts as a ModBaseActorValue function. It doesn't seem to set the base actor value, but rather it seems to just modify it. SBKing

No, it definately sets it. ("Set" as in setting to a certain value as opposed to "modify" (adding a certain value to the current value) Note that the Actor Value Functions work differently in the console than they do in scripts.--JOG 09:52, 14 June 2006 (EDT)

SetActorValue does not seem to let you set (at least certain stats) below 0. So far I have only tested with strength. For instance SetActorValue Strength -1000 was returning 24?! ForceActorValue and ModActorValue however both seem to let you set this stat to negative values.

Darknel 19:38, 29 August 2006 (EDT)

Jep. A base-value can't go below 0... --JOG 04:43, 30 August 2006 (EDT)

Weird Negatives

GuidoBot 04:51, 12 October 2006 (EDT): I was trying to use SetAV in the way described on the WIKI. From a script player.SetAV X actually actually performs the equivalent to player.ModBaseAV X. That is X if +ve. If X is -ve then the result is equivalent to player.SetBaseAV 65536-X (i.e. the result is > 65536)! I also tried using a variable that was an int rather than a short for the -ve value. No difference. I also tried setting the value to 65536+X (X<0) and this gave the exactly same value (i.e. as X>0)! Very strange behavior. Not only that but my base health value also got changed by +256. There's definitely some kind of memory overwriting going on here. I'm sending this to you since I'm modding and it is best that someone else confirm this wierd behavior and a note added to the Wiki that SetAV doesn't do what is expected. We should probably confirm the scripting us too.

Dragoon Wraith TALK 05:15, 12 October 2006 (EDT): Why are you setting a stat to a negative value?