mrclint Posted April 23 Share Posted April 23 Heya, If I want to add a perk to player character, but first want to check if the requirements are met (as seen in picture below), is there a way to determine that? I can't find any functions for that, so is there any, or does anyone have another smart way of obtaining the requirements? Right now I'm writing three separate arrays. One (formlist) with the perk, one with the level requirement and one with level requirement. Link to comment Share on other sites More sharing options...
scorrp10 Posted April 23 Share Posted April 23 Actor Property PlayerRef Auto Perk Property AlterationAdept50 Auto If PlayerRef.GetAV("alteration") >= 75.0 && PlayerRef.HasPerk(AlterationAdept50) ; do stuff EndIf 1 Link to comment Share on other sites More sharing options...
mrclint Posted April 23 Author Share Posted April 23 Ooh sorry. I forgot to type that I meant if I don't know these values. Like if I sort through an array of perks looking for the next possible according to the condition set in each perk. Link to comment Share on other sites More sharing options...
dylbill Posted April 23 Share Posted April 23 Papyrus Extender https://www.nexusmods.com/skyrimspecialedition/mods/22854 has this function: Bool Function EvaluateConditionList(Form akForm, ObjectReference akActionRef, ObjectReference akTargetRef) global native I think you pass in the perk for akForm. Worth a shot. 1 Link to comment Share on other sites More sharing options...
mrclint Posted April 24 Author Share Posted April 24 On 4/23/2025 at 6:35 PM, dylbill said: Papyrus Extender https://www.nexusmods.com/skyrimspecialedition/mods/22854 has this function: Bool Function EvaluateConditionList(Form akForm, ObjectReference akActionRef, ObjectReference akTargetRef) global native I think you pass in the perk for akForm. Worth a shot. Expand That seemed to work perfect. Just had to add PlayerRef to both ObjectReference. I should have suspected you or powerofthree had something like this Awesome, thanks! 1 Link to comment Share on other sites More sharing options...
dylbill Posted April 24 Share Posted April 24 No problem, glad it works! Link to comment Share on other sites More sharing options...
ZyonKrestor Posted yesterday at 10:47 AM Share Posted yesterday at 10:47 AM You could use a conditional check to verify the requirements before adding. Link to comment Share on other sites More sharing options...
Recommended Posts