Junior Member
Join Date: Oct 2011
Posts: 8
|
I've been through all of the threads for this and still can't make heads or tails of it. I'm trying to have Improved Two-Weapon and Greater Two-Weapon fighting be added automatically if the prereqs are met, however nothing I try seems to work.
This is my current attempt: Code:
doneif (hero.tagis[HasFeat.fTwoWep] = 0) if (hero.child[Attack].field[tAtkBase].value >= 6) then if (#attrmod[aDEX] >= 17) then perform hero.assign[HasFeat.fImpTwoWep] endif endif if (hero.child[Attack].field[tAtkBase].value >= 11) then if (#attrmod[aDEX] >= 19) then perform hero.assign[HasFeat.fGrtTwoWep] endif endif |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Normally you would use a bootstrap condition, but in this case it won't work. What you could do is look at the tags the feats assign to the hero and assign those at the appropriate timings when the prereqs are met. Also you can use #BAB[] instead of hero.child[Attack].field[tAtkBase].value.
|
#2 |
Junior Member
Join Date: Oct 2011
Posts: 8
|
I've tried that as well. I think i'm getting the timing off somewhere. Is there anything supoosed to be in the brackets of #BAB[] or does it just go:
Code:
(#BAB[] >= 6) Code:
doneif (hero.tagis[HasFeat.fTwoWep] = 0) if (hero.child[Attack].field[tAtkBase].value >= 6) then if (#attrmod[aDEX] >= 17) then perform hero.assign[Hero.TwoWepImp] endif endif Last edited by CaliVanus; November 11th, 2014 at 01:05 PM. |
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
yes it's just #BAB[] >= XX
Did you check the timing of those tags on the feats and match it? |
#4 |
Junior Member
Join Date: Oct 2011
Posts: 8
|
If I'm looking at the right thing it's pre-levels 10000.
|
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
The Base Attack bonus field is calculated by the hero too late to be used for a bootstrap condition.
If you wanted to do this, I think you'd have to foreach through all classes on the hero, calculate the BAB for each class at it's current level, add that to a running total, move on to the next class. Then look at the race, count it's number of HD + the number of "extra HD" class levels added, and based on the type calculate the BAB from that. Finally add the two pools together, and if the number is greater than 6, change things such that the bootstrap condition is satisfied for that feat (perhaps by applying a Custom tag). |
#6 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Another option, which is simpler, albeit kind of wasteful, would be to add a configurable to all heroes, which can add those feats as bonus feats. It can run a script which checks the BAB after it is calculated, and add +1 to the bonus feats table of the configurable. As I said though, kind of inefficient since you've added a whole tab so the user can add 1 or two feats.
|
#7 |
|
|