Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   item that adds next feat in Step Up chain (http://forums.wolflair.com/showthread.php?t=66471)

AllusiveMan October 27th, 2021 10:10 AM

item that adds next feat in Step Up chain
 
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:

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 


Mathias October 27th, 2021 11:05 AM

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.

AllusiveMan October 27th, 2021 11:27 AM

So I can't add the feat via bootstrap in this case? Can it be added through eval script?

Mathias October 27th, 2021 12:12 PM

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.

AllusiveMan October 27th, 2021 12:22 PM

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.

Minous October 27th, 2021 01:38 PM

Quote:

Originally Posted by AllusiveMan (Post 297212)
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


All times are GMT -8. The time now is 11:42 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.