Ok, well I say odd, it's understandable but I'm not sure on the correct syntax to use.
Basically, trying to add a Torch to couple with the feat from Goblins of Glorian, Fire Hand, which gives weapon proficiency in the torch, and grants +1 to attack with it.
So the script currently is as follows.
if (#hasfeat[fFIreHand] <> 0) then
perform hero.assign[WepProf.wTorch]
foreach pick in hero from BaseWep where "IsWeapon.wTorch"
eachpick.field[wAttBonus].value += 1
nexteach
endif
foreach pick in hero from BaseWep where "IsWeapon.wTorch"
#extradamage[eachpick," plus 1 fire",field[livename].text]
nexteach
The problem I'm getting is that both of the foreach scripts add one iteration per copy of the torch weapon, so if I have 2 torch weapon entries (for dual weilding pyromanic goodness), I end up with getting +2 to attack, and the damage reading +1 fire +1 fire.
Any suggestions as to alternative scripts that I can use? Unfortunately I can't modify the feat to include the script (which I suspect may help matters) as the feat is from a suppliment and non-cloneable.
Basically, trying to add a Torch to couple with the feat from Goblins of Glorian, Fire Hand, which gives weapon proficiency in the torch, and grants +1 to attack with it.
So the script currently is as follows.
if (#hasfeat[fFIreHand] <> 0) then
perform hero.assign[WepProf.wTorch]
foreach pick in hero from BaseWep where "IsWeapon.wTorch"
eachpick.field[wAttBonus].value += 1
nexteach
endif
foreach pick in hero from BaseWep where "IsWeapon.wTorch"
#extradamage[eachpick," plus 1 fire",field[livename].text]
nexteach
The problem I'm getting is that both of the foreach scripts add one iteration per copy of the torch weapon, so if I have 2 torch weapon entries (for dual weilding pyromanic goodness), I end up with getting +2 to attack, and the damage reading +1 fire +1 fire.
Any suggestions as to alternative scripts that I can use? Unfortunately I can't modify the feat to include the script (which I suspect may help matters) as the feat is from a suppliment and non-cloneable.