stuartwaring
Well-known member
First: apologies if this should be in the Authoring Kit section
I am trying to use the Hero Lab editor to create a Mythic version of the Piranha Strike feat (such that it is equivalent to the Mythic version of Power attack)
As i want it to apply in exactly the same way i duplicated the Mythic Power attack feat and then changed the eval scripts so that instead of the Eval Script saying:
doneif (tagis[Helper.FtDisable] <> 0)
hero.childfound[fPowerAtt].field[abValue2].value *= 1.5
hero.childfound[fPowerAtt].field[abValue2].value = round(hero.childfound[fPowerAtt].field[abValue2].value,0,-1)
doneif (field[abilActive].value = 0)
hero.childfound[fPowerAtt].field[abValue].value = 0
it goes
doneif (tagis[Helper.FtDisable] <> 0)
hero.childfound[fPiranStr].field[abValue2].value *= 1.5
hero.childfound[fPiranStr].field[abValue2].value = round(hero.childfound[fPiranStr].field[abValue2].value,0,-1)
doneif (field[abilActive].value = 0)
hero.childfound[fPiranStr].field[abValue].value = 0
(fPiranStr is the unique id for the piranha strike feat)
Unfortunately this does not work: it does not negate the penalties when checked, or increase the bonus damage as it should (ie the abValue field when checked is not being set to 0, and abvalue.2 is not being multiplied by 1.5)
Below is the script for the Piranha strike feat (which cannot be edited), but all the variables seem to match up, so i cant figure out why it doesnt work.
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 = "Piranha Strike -" & field[abValue].value & "/+" & field[abValue2].value
if (field[abilActive].value <> 0) then
hero.child[Attack].field[atmPenalty].value -= field[abValue].value
hero.child[Damage].field[tDamPower].value += field[abValue2].value
endif
One more thing: when wielding the weapon with 2 hands, the damage is increased even further. This should not be occuring, but there is nothing i can see that should cause this (other than the general rule that using 2 hands gives 1.5* damage - though should only be the case on strength based damage)!
Any help would be much appreciated!
Thanks
Stuart
I am trying to use the Hero Lab editor to create a Mythic version of the Piranha Strike feat (such that it is equivalent to the Mythic version of Power attack)
As i want it to apply in exactly the same way i duplicated the Mythic Power attack feat and then changed the eval scripts so that instead of the Eval Script saying:
doneif (tagis[Helper.FtDisable] <> 0)
hero.childfound[fPowerAtt].field[abValue2].value *= 1.5
hero.childfound[fPowerAtt].field[abValue2].value = round(hero.childfound[fPowerAtt].field[abValue2].value,0,-1)
doneif (field[abilActive].value = 0)
hero.childfound[fPowerAtt].field[abValue].value = 0
it goes
doneif (tagis[Helper.FtDisable] <> 0)
hero.childfound[fPiranStr].field[abValue2].value *= 1.5
hero.childfound[fPiranStr].field[abValue2].value = round(hero.childfound[fPiranStr].field[abValue2].value,0,-1)
doneif (field[abilActive].value = 0)
hero.childfound[fPiranStr].field[abValue].value = 0
(fPiranStr is the unique id for the piranha strike feat)
Unfortunately this does not work: it does not negate the penalties when checked, or increase the bonus damage as it should (ie the abValue field when checked is not being set to 0, and abvalue.2 is not being multiplied by 1.5)
Below is the script for the Piranha strike feat (which cannot be edited), but all the variables seem to match up, so i cant figure out why it doesnt work.
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 = "Piranha Strike -" & field[abValue].value & "/+" & field[abValue2].value
if (field[abilActive].value <> 0) then
hero.child[Attack].field[atmPenalty].value -= field[abValue].value
hero.child[Damage].field[tDamPower].value += field[abValue2].value
endif
One more thing: when wielding the weapon with 2 hands, the damage is increased even further. This should not be occuring, but there is nothing i can see that should cause this (other than the general rule that using 2 hands gives 1.5* damage - though should only be the case on strength based damage)!
Any help would be much appreciated!
Thanks
Stuart