View Single Post
Santok1972
Junior Member
 
Join Date: Mar 2019
Posts: 12

Old February 20th, 2021, 01:38 PM
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.
Santok1972 is offline   #1 Reply With Quote