Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 09:09 PM
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
ErinRigh is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2017, 09:17 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 21st, 2017, 12:09 AM
OK Thanks
ErinRigh is offline   #3 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 21st, 2017, 12:29 AM
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
I think the relevant part is;

Code:
          eachpick.field[wDiceMul].value *= field[abValue].value
          eachpick.field[wRanDiceMl].value *= field[abValue].value
With setting abValue to 2

But I need a foreach for

Code:
foreach pick in hero from AttDam where "?.?"
but I don't know what I am looking for there exactly or where to look, the feat applys to all weapons

Help please
ErinRigh 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 November 21st, 2017, 08:56 AM
Quote:
Originally Posted by ErinRigh View Post
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;
But sometimes you have no choice.

Quote:
Originally Posted by ErinRigh View Post
Code:
foreach pick in hero from AttDam where "?.?"
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.
ShadowChemosh is offline   #5 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old November 21st, 2017, 09:09 AM
Quote:
Originally Posted by ShadowChemosh View Post
But sometimes you have no choice.


For all weapons you just leave off the TAG search logic:
Code:
foreach pick in hero from AttDam
Just be glad we dont have to use underscore.js -shudder-
TobyFox2002 is offline   #6 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 21st, 2017, 04:01 PM
Quote:
Originally Posted by ShadowChemosh View Post
For all weapons you just leave off the TAG search logic:
Code:
foreach pick in hero from AttDam
Sweet! that fixes that, tyvm
ErinRigh is offline   #7 Reply With Quote
Reply

Thread Tools
Display Modes

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 02:23 AM.


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