Member
Join Date: Sep 2018
Posts: 30
|
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 Code:
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
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.
|
#2 |
Member
Join Date: Sep 2018
Posts: 30
|
So I can't add the feat via bootstrap in this case? Can it be added through eval script?
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
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. |
#4 |
Member
Join Date: Sep 2018
Posts: 30
|
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.
|
#5 |
Senior Member
Join Date: May 2015
Posts: 830
|
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
|
#6 |
|
|