• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

item that adds next feat in Step Up chain

AllusiveMan

Active member
Hi. I'm creating a custom item similar to War-kilt of Sarenrae. I want it to automatically grant the wearer the next feat in the Step Up --> Following Step --> Step Up and Strike chain, depending on which they may already have.

My current thought is to have an eval script set abValue to 1, 2, or 3 (as below), and then add the appropriate feat via bootstrap with a condition that checks abValue. Am I on the right track? If so, I think I just need to know what phases and priorities to use.

PHP:
if (#hasfeat[fStepUp] = 0) then
  field[abValue].value = 1
elseif (#hasfeat[fFollStep] = 0) then
  field[abValue].value = 2
elseif (#hasfeat[fStepUpStr] = 0) then
  field[abValue].value = 3
  endif
 
This will need to be based on hiding things with tags, not on bootstrap conditions. At the very early timing needed for bootstrap conditions, all you can test for is whether a pick with that Id exists, and if this is trying to handle a chain, you've got interference from the feats added by this item itself, in terms of figuring out whether that feat is already present. It might work for an item that didn't try to add more than one feat, although the tag tested by #hasfeat is assigned ultra-late (it's intended only for prereqs), and bootstrap conditions need to be ultra-early.
 
You cannot create something that needs to run its own eval scripts with an eval script.


What I'm saying is that while you can add the feat with a bootstrap, I don't see a way to tell whether the earlier feats have been gained and therefore the next one in the chain should become a live bootstrap.
 
Okay. Thank you. I will just jank it by having the item add Step Up via bootstrap, and make a note in the item description that if they already have Step Up, they will need to manually add the appropriate feat themselves.
 
Okay. Thank you. I will just jank it by having the item add Step Up via bootstrap, and make a note in the item description that if they already have Step Up, they will need to manually add the appropriate feat themselves.

Different approach is to add a configurable, and limit the options to the feats in that tree (you will need to delete, and add the next one when you get the current feat added to your character that it's granting) then limit it to 1 feat pick
 
Back
Top