Senior Member
Join Date: Sep 2010
Posts: 147
|
I want to program this feat
You make a combination of quick strikes, sacrificing accuracy for multiple, minor wounds that prove exceptionally deadly. {b}Prerequisites{/b}: Weapon Finesse, base attack bonus +1. {b}Benefit{/b}: When wielding a light weapon, you can choose to take a -1 penalty on all melee attack rolls and combat maneuver checks to gain a +2 bonus on all melee damage rolls. This bonus to damage is halved (-50%) if you are making an attack with an off-hand weapon or secondary natural weapon. When your base attack bonus reaches +4, and for every 4 points thereafter, the penalty increases by -1 and the bonus on damage rolls increases by +2. You must choose to use this feat before the attack roll, and its effects last until your next turn. The bonus damage does not apply to touch attacks or effects that do not deal hit point damage. This feat cannot be used in conjunction with the Power Attack feat. I copy power attack but: Quote:
Quote:
|
||
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Sargava, the Lost Colony, the book this feat is from, is available in Player Companion: Regions #2 (which is a part of the Player Companion Bundle).
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You will have to change that script even more as you want to ONLY set that value for light weapons. Power Attack sets it for everything with logic in the background to handle light/2handed.
So you can't use: Code:
if (field[abilActive].value <> 0) then hero.child[Attack].field[tAtkMelee].value -= field[abValue].value hero.child[Damage].field[tDamPower].value += field[abValue2].value endif In example: Code:
foreach pick in hero from BaseWep where "wCategory.Light & wCategory.Melee" eachpick.field[wAttack].value += field[abValue].value eachpick.field[wDamBonus].value += field[abValue2].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. |
#3 |
Senior Member
Join Date: Sep 2010
Posts: 147
|
Livename give the correct answer
Code:
field[livename].text = "Piranha Strike -" & field[abValue].value & "/+" & field[abValue2].value Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) var bonus as number bonus = hero.child[Attack].field[tAtkBase].value / 4 field[abValue].value += round(bonus,0,-1) + 1 field[abValue2].value += field[abValue].value * 2 field[livename].text = "Piranha Strike -" & field[abValue].value & "/+" & field[abValue2].value foreach pick in hero from BaseWep where "wCategory.Light & wCategory.Melee" eachpick.field[wAttack].value -= field[abValue].value eachpick.field[wDamBonus].value += field[abValue2].value nexteach Last edited by Eretas; May 16th, 2013 at 06:49 PM. Reason: Problem solve! |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Nice! See your getting better as you found the solution yourself.
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. |
#5 |
Member
Join Date: Jan 2015
Location: Wellington, NZ
Posts: 91
|
I have just modified my Piranha strike to use that bit of code which is a lot neater than the original code though i use a rapier, so had to use Helper.Finesse in place of Class.Light
Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) var bonus as number bonus = #BAB[] / 4 field[abValue].value += round(bonus,0,-1) + 1 field[abValue2].value += field[abValue].value * 2 field[livename].text = field[name].text & " -" & field[abValue].value & "/+" & field[abValue2].value if (field[abilActive].value <> 0) then foreach pick in hero from BaseWep where "Helper.Finesse & wCategory.Melee" eachpick.field[wAttack].value += field[abValue].value eachpick.field[wDamBonus].value += field[abValue2].value nexteach endif Code:
var bonus as number bonus = #BAB[] / 4 field[abValue].value += round(bonus,0,-1) + 1 field[abValue2].value = field[abValue].value * 3 if (hero.child[fPiranStr].field[abilActive].value <> 0) then foreach pick in hero from BaseWep where "Helper.Finesse & wCategory.Melee" eachpick.field[wDamBonus].value += field[abValue2].value nexteach endif if (field[abilActive].value <> 0) then hero.child[Attack].field[atmPenalty].value += field[abValue].value endif Now, when using this it adds the 6 & 9 (from the abValue2 fields respectively) together, and I get a total wDamBonus of 15. What is most odd, is that this doesnt happen using the tDamPower field - it only adds the 9, not 15. For the record, i did put a workaround in place (below) but i am curious as to why the fields behave differently. Any ideas why? Code:
var bonus as number bonus = #BAB[] / 4 field[abValue].value += round(bonus,0,-1) + 1 field[abValue2].value = field[abValue].value * 3 field[abValue3].value = field[abValue].value * 3 - field[abValue].value * 2 if (hero.child[fPiranStr].field[abilActive].value <> 0) then foreach pick in hero from BaseWep where "Helper.Finesse & wCategory.Melee" eachpick.field[wDamBonus].value = field[abValue3].value nexteach endif if (field[abilActive].value <> 0) then hero.child[Attack].field[atmPenalty].value += field[abValue].value endif |
#6 |
Junior Member
Join Date: May 2016
Posts: 1
|
I bought this expansion and updated my license but I still don't have access to this feat. Any ideas or thoughts?
|
#7 |
Senior Member
Join Date: Aug 2013
Location: Alabama
Posts: 254
|
Quote:
Press Ctrl+K or go to Character->Configure Hero and select the new source for that hero. If you've already tried that, then I don't know. :-/ |
|
#8 |
Member
Join Date: Apr 2007
Posts: 60
|
My bad
Last edited by Sphynx; July 12th, 2016 at 10:51 AM. Reason: Oops |
#9 |
Senior Member
Join Date: Jul 2011
Location: NorCal
Posts: 112
|
resurrecting this thread for a question. HL gives the bonus damage attack penalty to rapiers? is there a reason for that? or did that get added in the community pack.
Thanks |
#10 |
|
|