Jump to content

Get perk requirements in script


Recommended Posts

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.

image.thumb.png.06a6f3a995d127b5cd8a1a903bbb5e3d.png

Link to comment
Share on other sites

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

  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!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
ร—
ร—
  • Create New...