Senior Member
Join Date: Oct 2016
Posts: 621
|
One of the custom abilities I am creating doubles the weapon's base damage die on the first round of combat so a shortsword does 2d6, a longsword 2d8, and a great sword 4d6.
I am completely at a loss. I can find the tag for this under wMain and the Fields connected with it are wDamage, wMMainDNum and wMMainDSiz but I don't know what I am doing with them |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So its the same as Vital Strike feat then? Maybe look at that feat sense its doing pretty much the exact same thing.
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. |
#2 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
OK Thanks
|
#3 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
OK, so Vital Strike uses a foreach loop, which I was told to avoid, but seems like this is the only way to do this;
Code:
foreach pick in hero from AttDam where "!IsWeapon.wBlast" ~normally, we only multiply the dice, not the bonuses if (tagis[Custom.fMyVitStri] = 0) then eachpick.field[wDiceMul].value *= field[abValue].value eachpick.field[wRanDiceMl].value *= field[abValue].value ~but with the mythic vital strike feat, we multiply everything - dice ~and bonuses else eachpick.field[wDamMult].value *= field[abValue].value eachpick.field[wRanDamMul].value *= field[abValue].value endif Code:
eachpick.field[wDiceMul].value *= field[abValue].value eachpick.field[wRanDiceMl].value *= field[abValue].value But I need a foreach for Code:
foreach pick in hero from AttDam where "?.?" Help please |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
For all weapons you just leave off the TAG search logic: Code:
foreach pick in hero from AttDam 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 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
|
#6 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
|
#7 |
|
|