Junior Member
Join Date: Jun 2017
Posts: 5
|
Hi folks!
I have been messing around with this for a while now and am having a heck of a time figuring out how to do this! I want to add the Glaive to the dropdown selection for the feat Slashing Grace. Anyone know where I would go about doing that? A search on the forum did not give me very much to work on and when I tried it myself I just ended up removing everything from the feat. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
Take a look at eval script #3 on that feat - you'll want to add some extra lines to that script - start with what's there, and then add more to the candidate expression - put what's already there inside (), and then add on " | IsWeapon.wGlaive", so that you can have a weapon that fulfills the normal expression, or it can be a glaive. (and double-check that wGlaive is the right Id for Glaive - I didn't test that).
|
#2 |
Junior Member
Join Date: Apr 2019
Posts: 4
|
Hi, I have been trying this as well, butI am not sure where I make a mistake. I have followed what Mathias suggested and ends up with:
var 1hanexpr as string call 1HanWepExp field[usrCandid1].text = "component.BaseWep & ((wClass.Light | " & 1hanexpr & ") & wType.S") " | IsWeapon.wGlaive" When I try to Test i get the following error message: File: PFRPG_Gestalt_Component.str (line 97) - Component 'GestHelp' (eval Script '#1') - non-existent phase id 'First' specified Where am I making a mistake? |
#3 |
Senior Member
Join Date: May 2015
Posts: 830
|
Try:
field[usrCandid1].text = "component.BaseWep & ((wClass.Light | " & 1hanexpr & ") & wType.S) | IsWeapon.wGlaive" I think that should work |
#4 |
Junior Member
Join Date: Apr 2019
Posts: 4
|
Thank you for the response Minous. Unfortunately I still get the error code:
File: PFRPG_Gestalt_Component.str (line 97) - Component 'GestHelp' (eval Script '#1') - non-existent phase id 'First' specified It seems to me, without being sure, that there is a problem with another file or code. |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
It states the name of the file generated in the error. You should contact the person who made those for a fix. I think ShadowChemosh made the Gestalt stuff.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Sorry nothing I can do to fix or prevent these errors from happening. 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. |
|
#7 |
Junior Member
Join Date: Apr 2019
Posts: 4
|
Quote:
Thanks for all the assistance |
|
#8 |
Senior Member
Join Date: Sep 2013
Location: Vancouver, Canada.
Posts: 813
|
If you have the Community Package, within the Path of War stuff there is a feat called Deadly Agility, which does exactly what you're asking.
Check out how it does that. Or you could check the weapon property Guided, which is similar except that it's giving Wisdom to both hit and damage. |
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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 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. |
|
#10 |
Thread Tools | |
Display Modes | |
|
|