Jump to content

Photo

How to get the modified maximum of an actor value?

getvalue avif actor value papyrus scripting

  • Please log in to reply
2 replies to this topic

#1
PAPVAFS11

PAPVAFS11

    Enthusiast

  • Members
  • PipPip
  • 166 posts

I feel like I've seen people ask this before, but I wasn't sure how to phrase the search terms.

 

I'm trying to make a spell that makes the player regenerate AP faster as long as they avoid completely exhausting their AP. If the player hits 0 AP, the bonus is supposed to go away until they fully regenerate their AP. My problem is that I have no idea how to get the player's actual maximum AP. I can get their base value, but I don't know how to get that after modifications, like hardcore penalties, AP bonuses, and so on.

 

Is there a reliable way to get this value?



#2
hereami

hereami

    Fan

  • Members
  • PipPipPip
  • 418 posts

Might look here GetActorValuePercentage - Actor - Creation Kit  

 

If Conditions and no scripts*, then i'd suggest GetValue==0 and GetValuePercent==1.0 and a pair of self-oscillating spells, no need to know exact numeric value. For GetValuePercent i can't say if return value may really exceed 1.0 as mentioned in the article for the function. 

* Meaning, no custom scripts....


Edited by hereami, 27 March 2023 - 03:49 am.


#3
PAPVAFS11

PAPVAFS11

    Enthusiast

  • Members
  • PipPip
  • 166 posts

I was so used to using GetHealthPercentage in conditions that I didn't even realize that existed. Thanks for the tip.







Also tagged with one or more of these keywords: getvalue, avif, actor value, papyrus, scripting

IPB skins by Skinbox
Page loaded in: 0.324 seconds