Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
AllusiveMan
Member
 
Join Date: Sep 2018
Posts: 30

Old October 27th, 2021, 10:10 AM
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 
AllusiveMan is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old 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.
Mathias is online now   #2 Reply With Quote
AllusiveMan
Member
 
Join Date: Sep 2018
Posts: 30

Old 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?
AllusiveMan is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old 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.
Mathias is online now   #4 Reply With Quote
AllusiveMan
Member
 
Join Date: Sep 2018
Posts: 30

Old 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.
AllusiveMan is offline   #5 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old October 27th, 2021, 01:38 PM
Quote:
Originally Posted by AllusiveMan View Post
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
Minous is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:13 AM.


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