Jump to content

How to get the modified maximum of an actor value?


Recommended 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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...