View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 20th, 2019, 11:06 AM
Quote:
Originally Posted by Born8342 View Post
Hi Shadow Chemosh. That cleared the problem with the error showing, now for the next question, how do I get it calculate my dex indstead og my str to dmg? I have the other prereg. (My dm have ruled that when I have Bladed Brush I can use Slashing Grace).

Thanks for all the assistance
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.

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   #10 Reply With Quote