I fixed the below by adjusting Phase to Pre-Level and Priority to 10000. Leaving up in case of use to others.
HOWEVER, this raises another problem: the attack bonuses add correctly in the Weapon Tab but this bonus does not add in the Weapon Summary Panel. This also happens with the SRD Halfling racial bonus (+1 sling, thrown weapons) which adds correctly in Weapon Tab but not in Weapon Summary Panel.
Suggestions or ideas welcome!
--original post--
I have coded a class ability that gives a +1 to bows for clerics of the archery god in our campaign. My coding ability is limited to copying and amending existing abilities, so I copied the Halfling sling and thrown weapon race ability.
The problem I have is that the bonus from this class ability is overlapping with magic bow bonuses (instead of stacking, as I intend).
I have this set up in the Eval Scripts in Class, Class Special in our .user file. Can anybody suggest how I should amend so it stacks instead of overlaps with magic weapon enhancement bonus?
--snip--
~find all our bows and add +1 to hit
foreach pick in hero from BaseWep where "IsWeapon.wShortbow | IsWeapon.wCompShort | IsWeapon.wLongbow | IsWeapon.wCompLong"
eachpick.field[wAttRanged].value += 1
nexteach
HOWEVER, this raises another problem: the attack bonuses add correctly in the Weapon Tab but this bonus does not add in the Weapon Summary Panel. This also happens with the SRD Halfling racial bonus (+1 sling, thrown weapons) which adds correctly in Weapon Tab but not in Weapon Summary Panel.
Suggestions or ideas welcome!
--original post--
I have coded a class ability that gives a +1 to bows for clerics of the archery god in our campaign. My coding ability is limited to copying and amending existing abilities, so I copied the Halfling sling and thrown weapon race ability.
The problem I have is that the bonus from this class ability is overlapping with magic bow bonuses (instead of stacking, as I intend).
I have this set up in the Eval Scripts in Class, Class Special in our .user file. Can anybody suggest how I should amend so it stacks instead of overlaps with magic weapon enhancement bonus?
--snip--
~find all our bows and add +1 to hit
foreach pick in hero from BaseWep where "IsWeapon.wShortbow | IsWeapon.wCompShort | IsWeapon.wLongbow | IsWeapon.wCompLong"
eachpick.field[wAttRanged].value += 1
nexteach
Last edited: