• 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

Help with bootstrapping feats.

CaliVanus

Member
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
 
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.
 
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)

This is what I had with the helpers

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:
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).
 
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.
 
Back
Top