Difference between revisions of "Talk:SetActorValue"

Jump to navigation Jump to search
1,241 bytes added ,  04:15, 12 October 2006
ok, now it's in the right place
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?

Navigation menu