Talk:GetBaseAV2

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

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)