Difference between revisions of "Talk:SetActorValue"

Jump to navigation Jump to search
No change in size ,  16:01, 11 April 2007
revert
imported>Yt4Eyk
m
imported>Entim
(revert)
Line 11: Line 11:
== Weird Negatives ==
== 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. I think what could be happening is that the command takes an unsigned short as an argument but is applying this to an int in memory? I'm not sure why my base Health stat also got changed but it might have been when I tested using the int variable (?).
[[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. I think what could be happening is that the command takes an unsigned short as an argument but is applying this to an int in memory? I'm not sure why my base Health stat also got changed but it might have been when I tested using the int variable (?).


:[[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?
:[[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?
Anonymous user

Navigation menu