Jump to content

Recommended Posts

Posted

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

Posted

Actor Property PlayerRef Auto

Perk Property AlterationAdept50 Auto

If PlayerRef.GetAV("alteration") >= 75.0 && PlayerRef.HasPerk(AlterationAdept50)

; do stuff

EndIf

  • Thanks 1
Posted

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.

Posted
  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
  • 2 weeks later...
Posted (edited)

You could use a conditional check to verify the requirements before adding.

  Reveal hidden contents

 

Edited by ZyonKrestor
  • Recently Browsing   0 members

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