Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
CaliVanus
Junior Member
 
Join Date: Oct 2011
Posts: 8

Old November 11th, 2014, 12:41 PM
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
CaliVanus is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old November 11th, 2014, 12:54 PM
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.
AndrewD2 is offline   #2 Reply With Quote
CaliVanus
Junior Member
 
Join Date: Oct 2011
Posts: 8

Old November 11th, 2014, 01:00 PM
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 by CaliVanus; November 11th, 2014 at 01:05 PM.
CaliVanus is offline   #3 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old November 11th, 2014, 01:05 PM
yes it's just #BAB[] >= XX

Did you check the timing of those tags on the feats and match it?
AndrewD2 is offline   #4 Reply With Quote
CaliVanus
Junior Member
 
Join Date: Oct 2011
Posts: 8

Old November 11th, 2014, 01:09 PM
If I'm looking at the right thing it's pre-levels 10000.
CaliVanus is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 11th, 2014, 01:20 PM
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).
Aaron is offline   #6 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 11th, 2014, 01:22 PM
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.
Aaron is offline   #7 Reply With Quote
Reply


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 05:41 AM.


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