Quote:
Originally Posted by Eretas
I made the adjustment, but the "to hit" bonus work well, but "the damage" bonus overlaps with the two abitity... How can i program it to be sure it's not the same type of bonus? For the bard with the Feat activated, it's working properly, but how to give te bonus to the team member???
|
The only way to do this is by doing a foreach loop against the Base Weapons and do an applybonus to each weapon individually. The official scripts don't do this as its a bit of an overhead to do this.
But you can do it yourself if you wish.
The code would be like this and this takes care of both the Attack and Damage.
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ loop through all the weapons on the hero
foreach pick in hero from BaseWep
~ Give a Comp bonus to hit and damage
#applybonus[BonComp, eachpick, field[pAdjust].value]
nexteach