Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Born8342
Junior Member
 
Join Date: Apr 2019
Posts: 4

Old April 20th, 2019, 11:15 PM
Quote:
Originally Posted by ShadowChemosh View Post
This feat has had some major changes done to it sense Mathias originally posted. To get this to full work requires the 2nd script to also be changed now.

Totally replace the second script with this version:
Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      ~ Equipping a shield or another weapon in our off hand negates our bonuses
      ~ Unless that off hand shield is a buckler (This is a FAQ from July 2015)
      if (hero.tagis[Hero.GraceTWF] = 0) then
        doneif (hero.tagexpr[Hero.EquipOff | (Hero.EquipShld & !Hero.ShldOffOK)] <> 0)
        endif

      ~ If we're not chosen, get out now
      doneif (field[usrChosen1].ischosen + tagis[Target.?] = 0)

      ~ The construction of this search expression is complicated because we
      ~ need to allow Martial Versatility to expand the affected weapons, but
      ~ only to those weapons this feat could normally select. Thus we create
      ~ the base expression, and append some expansions if the appropriate feats
      ~ are present.
      var searchexpr as string
      searchexpr = " & !(fieldval:gIsEquip <> 0 & fieldval:wIs2nd <> 0) & (wClass.Light | wClass.OneHanded) & wType.S"

      if (tagcount[Hero.MartVersa] + hero.tagcount[Hero.MartMaster] + tagcount[Hero.MyMartVers] + hero.tagcount[Hero.MyMartMast] <> 0) then
        searchexpr = tagids[wFtrGroup.?, " | "] & searchexpr
      else
        if (tagis[Target.?] <> 0) then
          searchexpr = tagids[Target.?, " | "] & searchexpr
        else
          searchexpr = field[usrChosen1].chosen.tagids[IsWeapon.?, " | "] & searchexpr & " | " & field[usrChosen1].chosen.tagids[IsWeapon.?, " | "]
          endif
        endif

      foreach pick in hero from BaseWep where searchexpr
        perform eachpick.assign[DamageOpt.aDEX]
        nexteach
That will cause the Glaive in this case to use Dex to damage.
Hi Chemosh

Would never have figured it out on my own, thank you for you time and patience.

I replaced the second script with your new script, but the glaive still calculates str instead og dex to dmg.

Hope that all this is not a bother.
Born8342 is offline   #11 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 21st, 2019, 08:46 AM
Quote:
Originally Posted by Born8342 View Post
Hi Chemosh

Would never have figured it out on my own, thank you for you time and patience.

I replaced the second script with your new script, but the glaive still calculates str instead og dex to dmg.

Hope that all this is not a bother.
At this point then can you email me your .user file so I can look at it? My email is my forum user id at yahoo dot com.

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   #12 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 12:31 PM.


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