View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 13th, 2012, 03:37 PM
Quote:
Originally Posted by Eretas View Post
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

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote