Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Piranha Strike - need help (http://forums.wolflair.com/showthread.php?t=44144)

Eretas May 16th, 2013 12:10 PM

Piranha Strike - need help
 
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?

Mathias 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).

ShadowChemosh 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.

Eretas 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...:confused:
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"

ShadowChemosh May 16th, 2013 08:17 PM

Quote:

Originally Posted by Eretas (Post 157010)
[CODE]
ÉDIT: "wClass.Light? & wCategory.Melee?" instead of "wCategory.Light & wCategory.Melee"

Nice! See your getting better as you found the solution yourself. :)

stuartwaring 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


Obelix de Gaul May 9th, 2016 11:04 AM

No access to Pirhana Strike feat
 
I bought this expansion and updated my license but I still don't have access to this feat. Any ideas or thoughts?

Mystic Lemur May 10th, 2016 10:55 PM

Quote:

Originally Posted by stuartwaring (Post 219876)
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 (Post 229459)
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. :-/

Sphynx July 12th, 2016 10:44 AM

My bad

Agyess 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


All times are GMT -8. The time now is 10:45 PM.

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