Member
Join Date: Oct 2013
Posts: 79
|
Hello,
I'm looking to add Deadly Aim into 3.5. In summary, Deadly Aim is the equivalent of Power Attack for ranged players. I copied the data from Power Attack and modified some of it to work with ranged attack bonus instead of melee attack bonus. However, I'm having difficulty transfering the damage to ranged weapons. Any thoughts? Here is the Power Attack code Code:
hero.child[Attack].field[tAtkMelee].value -= field[hUsed].value hero.child[Damage].field[tDamPowOne].value += field[hUsed].value hero.child[Damage].field[tDamPowTwo].value += 2 * field[hUsed].value Any thoughts? -S |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
hero.child[Damage] does not currently seem to have a field for modifying ranged weapon damage. You can view this child through the Develop - Floating Info Windows menu. So, what you would need to do is use a foreach loop to modify all ranged weapons in your possession.
Code:
foreach pick in hero from BaseWep where "wCategory.Range?" eachpick.field[wDamRanged].value += field[hUsed].value nexteach |
#2 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Of course, this is because there is only one damage display in the GUI. Your weapon does X damage, and always defaults to the melee damage. Therefore, there is no way to differentiate ranged damage from melee damage, you just have to apply it manually.
Would this be a good time to ask ShadowChemosh to add a ranged damage field to the GUI, is that possible? Or maybe Colen could entertain the notion? That way ranged damage doesn't get applied to those weapons that can also be used as melee weapons as well and will be displayed separately from the melee damage. Just a thought, not a big deal otherwise. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#4 |
|
|