Senior Member
Join Date: Jan 2011
Location: Honolulu
Posts: 250
|
Opinions wanted, please.
How would you go about implementing this racial ability: Yamabushi Weapons (Ex) A yamabushi tengu is proficient with all monk weapons and all swordlike weapons (including katanas and wakizashi), and gains a +1 bonus on attack rolls and damage rolls with such weapons. Yamabushi tengus who do not use swords favor the kusarigama. I was just going to check all the correct weapons under 'racial weapons' how the tengu did, but i don't know how to code in the attack and damage bonus. Advice? Please? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So after a little thought on this you can go after the Fighter Weapon Groups to figure out which weapons (ie tags) to hit. Their is a Monk one and a you would want to include Light and Heavy blades. I don't remember the tags but they are easy to find. Just add a monk weapon, light blade, and heavy blade to a character and look at the tags on the weapons that start with wFtrGroup.
Then in this script you can replace the XXX, YYY, ZZZ with those values: Code:
~ Give a +1H/+1D bonsu to all blades and monk weapons foreach pick in hero from BaseWep where "wFtrGroup.XXX | wFtrGroup.YYY | wFtrGroup.ZZZ" eachpick.field[Bonus].value += 1 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. Last edited by ShadowChemosh; August 4th, 2011 at 12:58 PM. |
#2 |
Senior Member
Join Date: Jan 2011
Location: Honolulu
Posts: 250
|
Awesome, that should do it... well combined with checking all the weapons in the race.
Thanks Shadow |
#3 |
Senior Member
Join Date: Jan 2011
Location: Honolulu
Posts: 250
|
I can't seem to figure out a proper Phase/Priority
This is the code I have now, and I've tried it on a few different phases, but I can't dial it in: Code:
~ Give a +1H/+1D bonus to all blades and monk weapons foreach pick in hero from BaseWep where "wFtrGroup.cFtrWMonk | wFtrGroup.cFtrWHvyBl | wFtrGroup.cFtrWLgtBl" eachpick.field[Bonus].value += 1 nexteach |
#4 |
Senior Member
Join Date: Jan 2011
Location: Honolulu
Posts: 250
|
Make that I'm an idiot and the correct code is:
Code:
~ Give a +1H/+1D bonus to all blades and monk weapons foreach pick in hero from BaseWep where "wFtrGroup.Monk | wFtrGroup.BladeHeavy | wFtrGroup.BladeLight" eachpick.field[Bonus].value += 1 nexteach |
#5 |
|
|