Talk:GetActorValuePercentage - Actor
Jump to navigation
Jump to search
This seems to be wrong, at least based on what I've tested so far. I scripted an effect to display the result of GetActorValue and GetActorValuePercentage for Melaran (Blue Palace), who has a base magicka of 143 and an extra 100 from gear. The script returned:
GetActorValue("Magicka") = 243 (correct)
GetActorValuePercentage("Magicka") = 1.6993
Not only does this contradict the Wiki, which says GetAVPercentage returns a value from 0.0 to 1.0, but it also means the examples here don't work. Is this a problem with my own Skyrim (I have SKSE installed), or do others get the same behavior? —The preceding unsigned comment was added by Rynas (talk • contribs) 2013-12-03T16:47:54
- This function DOES NOT return value between 0-1. The base value of the stat is treated as 100% (1.0). All other modifiers adds to it. So these examples will give you wrong values. —The preceding unsigned comment was added by Techprince (talk • contribs) 2014-06-01T15:40:37
- Reverse-engineering indicates that the "maximum" for this function is the base value plus the permanent modifier. The "current" value is the base plus all three modifiers (permanent, temporary, and damage). If the maximum is zero, then this function always returns 1.0. DavidJCobb (talk) 2019-01-29T13:33:27 (EST)