Senior Member
Join Date: Aug 2010
Posts: 576
|
I am trying to make a Firearms Combat style for the ranger I copied the archery combat style and made subed firearms for archery and it is working fine but I would like to change the bonus feats and do not know where to change them the eval script for the archery combat style is
~ at level 6, we add more bonus feats available (we add them to ourself, ~ and then at First/1500, all fInclude tags are forwarded to the class) if (hero.tagcount[Classes.Ranger] >= 6) then perform assign[BonusFor.RgrArch6] endif ~ at level 10, we add more bonus feats available (we add them to ourself, ~ and then at First/1500, all fInclude tags are forwarded to the class) I think this is the statement that points to the bonus feats [perform assign[BonusFor.RgrArch6] ] but I am unsure how to modify it so I can change the bonus feats Ca someone tell me how to go about changing that statement to change the bonus feats please |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Unfortunately, those tags are made by us, and users don't have access to those mechanisms. You can still do this though, you just have to overwrite the correct field after it is set by those tags and whatnot. The field is "cBonFtExpr" on the class helper.
Final 99999999 Code:
~ We start off with access to feat1, feat2, and feat3 hero.child[cHelpRgr].field[cBonFtExpr].text = "!Helper.Helper & (HasAbility.Feat1 | HasAbility.Feat2 | HasAbility.Feat3" ~ At level 6 we gain access to feat4 and feat 5 if (field[xTotalLev].value >= 6) then hero.child[cHelpRgr].field[cBonFtExpr].text &= "HasAbility.Feat4 | HasAbility.Feat5" endif ~ Close the parenthesis hero.child[cHelpRgr].field[cBonFtExpr].text &= ")" |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Aaron, those tags are in a place users can get to them. On the feats tab, one of the options is "Bonus Feat For..." - for each of the feats you want to add as a bonus feat, create a replacement of that feat, and create a new "Bonus For..." option that all of them share. Then, assign the new BonusFor tag you've created, instead of BonusFor.RgrArch6.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So just to double check cause I am not near HL. Do feats also get the the HasAbility tag? Maybe they do I just don't remember them having it.... Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Quote:
To find out for a specific thing, check its tags in the debug option, and look for "component.Ability" |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Ok cool it does come from the Ability Component. Sweet!
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#6 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Hmm, I thought BonusFor wasn't a tag group which was Dynamic, my bad. I should probably stop opening my big mouth, since I seem to be putting my foot in it more often than not lately.
However, I think my method might still work, and with the benefit of not having to copy and replace a bunch of feats, which should be kept to a minimum (since a thing can't be replaced by more than one thing). |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I agree I do like what you have above. For mine I had all new feats so I didn't need to do the Replace Thing ID. I do all sorts of scripting to try and keep the Replace Thing ID to a bare minimum in my houserules data set.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#8 |
Junior Member
Join Date: Sep 2014
Posts: 17
|
Quote:
|
|
#9 |
|
|