Junior Member
Join Date: Mar 2019
Posts: 12
|
I've been searching through these forums looking for a way to make the adjustment for a custom feat I have been working on for PF1 in HeroLab Classic. I've found a few ideas, but nothing quite seems to work out.
For the feat, when it is activated in the "In Play" tab, I want to add a +1 to hit with light or one-handed melee weapons. The functionality of checking if the ability is activated on the In Play tab is working if (field[abilActive].value <> 0) then end if The following code inserted in the above If-Then statement adds a bonus to all melee weapon attack rolls, including two-handed weapons: hero.child[Attack].field[atmBonus].value += field[abValue].value Then I tried using if (container.tagis[wClass.Light] <> 0) then foreach pick in hero from BaseWep eachpick.field[wAttMelee].value += field[abValue].value nexteach endif But that doesn't seem to be cutting it. I'm sure it's something simple that I'm missing. Any suggestions? Thank you. |
#1 |
Senior Member
Join Date: May 2013
Posts: 240
|
Try this:
Code:
if (field[abilActive].value <> 0) then foreach pick in hero from BaseWep where "wClass.Light" eachpick.field[wAttMelee].value += field[abValue].value nexteach end if |
#2 |
Junior Member
Join Date: Mar 2019
Posts: 12
|
Yes, thank you. That did it. I was close, but just a little off.
|
#3 |
|
|