PAPVAFS11 Posted March 27, 2023 Posted March 27, 2023 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?
hereami Posted March 27, 2023 Posted March 27, 2023 (edited) 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 March 27, 2023 by hereami
PAPVAFS11 Posted March 29, 2023 Author Posted March 29, 2023 I was so used to using GetHealthPercentage in conditions that I didn't even realize that existed. Thanks for the tip.
Recommended Posts