Difference between revisions of "Talk:GetBaseAV2"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ABO
m (Asked about drain abilities.)
 
imported>Mitchalek
(Wrong base values returned when affected by drain health abilities.)
 
Line 6: Line 6:


[[User:ABO|ABO]] 21:20, 8 September 2010 (EDT)
[[User:ABO|ABO]] 21:20, 8 September 2010 (EDT)
:I tested this function with drain and fortify health abilities. Note that only abilities will modify base values and not other types of spells. Information returned by this function seems not to make the difference between fortify and drain, at least when it comes to health values which is only thing I tested, so if you lets say have base health of 100 and you add one ability that will drain 10 health and another ability that will fortify health by 10 [[GetBaseAV2]] will return value of 80. Looks like a bug to me. So in order to get valid base health value one should use CS function [[GetBaseActorValue]] and [[GetTotalAEAbilityMagnitude]] of "DRHE" and "FOHE" to return ability effects of drain and fortify health and then calculate manually. [[User:Mitchalek|Mitchalek]] 10:46, 25 October 2011 (EDT)

Latest revision as of 09:46, 25 October 2011

What about drain abilities?

What about large drain abilities that drain the attribute to zero and get truncated?

There is at least one mod that uses a drain 100 ability to bring stealth down to zero. If this works under the hood by iterating through ability spells and compensating for them, then it will produce falsely high values.

ABO 21:20, 8 September 2010 (EDT)

I tested this function with drain and fortify health abilities. Note that only abilities will modify base values and not other types of spells. Information returned by this function seems not to make the difference between fortify and drain, at least when it comes to health values which is only thing I tested, so if you lets say have base health of 100 and you add one ability that will drain 10 health and another ability that will fortify health by 10 GetBaseAV2 will return value of 80. Looks like a bug to me. So in order to get valid base health value one should use CS function GetBaseActorValue and GetTotalAEAbilityMagnitude of "DRHE" and "FOHE" to return ability effects of drain and fortify health and then calculate manually. Mitchalek 10:46, 25 October 2011 (EDT)