ShadowChemosh
Well-known member
So I have been asked by several people how to code up the soon to be released feat "Fencing Grace". If you didn't know Jason Bulmahn released the info about it in THIS post.
Here is the two scripts that are needed. But I also attached a .user file that has just this feat in it. I thought it maybe a nice feat for some people to learn about scripting from.
Pre-levels/10000
So the above code first looks to make sure the feat is not disabled. Then it does a "foreach" loop looking for all the Rapier's on the character. Then it assigns a new tag that Aaron added awhile back. This is called "Damage Option" and allows you to change the attribute that the weapon uses for damage. In this case we are setting it to use "Dex".
Then we have next script:
Render/100
This script is run VERY late as we need to see if we have the Panache class ability. If we do then we give some situational text to Disarm Maneuver Thing. That last line is one LW won't use but I added it as currently situational text won't display for specific maneuvers without it.
Now you get Dex to damage with Rapiers and we can see the situational text:
View attachment 3052
To make it easier for others to download I have moved the .user file to the d20pfsrd HL Repository.
Click HERE for the direct download link.
Here is the two scripts that are needed. But I also attached a .user file that has just this feat in it. I thought it maybe a nice feat for some people to learn about scripting from.
Pre-levels/10000
Code:
[B][COLOR="Green"]~ If we're disabled, get out now![/COLOR][/B]
doneif (tagis[Helper.FtDisable] <> 0)
[COLOR="Green"][B]~ Find all rapier weapons[/B][/COLOR]
foreach pick in hero from BaseWep where "IsWeapon.wRapier"
[B][COLOR="Green"]~ Give the optional damage tag of "Dex" to the rapiers found[/COLOR][/B]
perform eachpick.assign[DamageOpt.aDEX]
nexteach
Then we have next script:
Render/100
Code:
[B][COLOR="Green"]~ If no panache class ability get out now![/COLOR][/B]
doneif (#hasability[cSwsPanach] <> 1)
[B][COLOR="Green"]~ Set the situational text on Disarm[/COLOR][/B]
#situational[hero.child[manDisarm],"+2 to CMD with rapiers",field[name].text]
[B][COLOR="Green"]~ Remove the hide tag from the Disarm Maneuver so it displays[/COLOR][/B]
perform hero.childfound[manDisarm].delete[Hide.?]
Now you get Dex to damage with Rapiers and we can see the situational text:
View attachment 3052
To make it easier for others to download I have moved the .user file to the d20pfsrd HL Repository.
Click HERE for the direct download link.
Last edited: