Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Eretas
Senior Member
 
Join Date: Sep 2010
Posts: 147

Old May 16th, 2013, 12:10 PM
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:
~ 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

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
I can't check for light weapon.
Quote:
tagis[wClass.Light] <> 0
Checked for the availability of the feat, not if equipped with a light weapon. So can you help?
Eretas is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 16th, 2013, 12:32 PM
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).
Mathias is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 16th, 2013, 02:43 PM
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
Attack/Damage are global to every weapon. So you want every light weapon. So will need to do a "foreach" loop actually.

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
I have no way of testing the above but I am pretty sure its right. If not adjust as needed.

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   #3 Reply With Quote
Eretas
Senior Member
 
Join Date: Sep 2010
Posts: 147

Old May 16th, 2013, 05:16 PM
Livename give the correct answer
Code:
 field[livename].text = "Piranha Strike -" & field[abValue].value & "/+" & field[abValue2].value
But the bonus for the weapons did not work...
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
ÉDIT: "wClass.Light? & wCategory.Melee?" instead of "wCategory.Light & wCategory.Melee"

Last edited by Eretas; May 16th, 2013 at 06:49 PM. Reason: Problem solve!
Eretas is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 16th, 2013, 08:17 PM
Quote:
Originally Posted by Eretas View Post
[CODE]
ÉDIT: "wClass.Light? & wCategory.Melee?" instead of "wCategory.Light & wCategory.Melee"
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.
ShadowChemosh is offline   #5 Reply With Quote
stuartwaring
Member
 
Join Date: Jan 2015
Location: Wellington, NZ
Posts: 91

Old November 29th, 2015, 05:24 PM
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
I also have a Mythic Piranha Strike coded:

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
At my level abValue in each case is 3.

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
stuartwaring is offline   #6 Reply With Quote
Obelix de Gaul
Junior Member
 
Join Date: May 2016
Posts: 1

Old May 9th, 2016, 11:04 AM
I bought this expansion and updated my license but I still don't have access to this feat. Any ideas or thoughts?
Obelix de Gaul is offline   #7 Reply With Quote
Mystic Lemur
Senior Member
 
Join Date: Aug 2013
Location: Alabama
Posts: 254

Old May 10th, 2016, 10:55 PM
Quote:
Originally Posted by stuartwaring View Post
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
Piranha strike does not work with a rapier, RAW.

Quote:
Originally Posted by Obelix de Gaul View Post
I bought this expansion and updated my license but I still don't have access to this feat. Any ideas or thoughts?
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. :-/
Mystic Lemur is offline   #8 Reply With Quote
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old July 12th, 2016, 10:44 AM
My bad

Last edited by Sphynx; July 12th, 2016 at 10:51 AM. Reason: Oops
Sphynx is offline   #9 Reply With Quote
Agyess
Senior Member
 
Join Date: Jul 2011
Location: NorCal
Posts: 112

Old January 31st, 2018, 03:28 PM
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
Agyess is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:23 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.