• 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 w combat style

Kaleb

Well-known member
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
 
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 &= ")"

Obviously, replace Feat1 etc with the unique ID of the feats you want to allow at that point.
 
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.
 
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.
Correct. This is exactly what I did when I made this exact same Combat Style in my house rules data set.

Code:
~ We start off with access to feat1, feat2, and feat3
hero.child[cHelpRgr].field[cBonFtExpr].text = "!Helper.Helper & ([B]HasAbility[/B].Feat1 | [B]HasAbility[/B].Feat2 | [B]HasAbility[/B].Feat3"
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....
 
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....

Everything that has the abDC field has the HasAbility tag.

To find out for a specific thing, check its tags in the debug option, and look for "component.Ability"
 
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).
 
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).
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.
 
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 &= ")"

Obviously, replace Feat1 etc with the unique ID of the feats you want to allow at that point.

I like this option for a fix, but where do I find the field to replace with this? I'm still very new at this and I'm somewhat lost in the editor.
 
Back
Top