Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
chava
Senior Member
 
Join Date: Jan 2011
Location: Honolulu
Posts: 250

Old August 4th, 2011, 01:32 AM
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?
chava is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 4th, 2011, 12:54 PM
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
Hopefully that should point you in the right direction.

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.
ShadowChemosh is offline   #2 Reply With Quote
chava
Senior Member
 
Join Date: Jan 2011
Location: Honolulu
Posts: 250

Old August 4th, 2011, 01:17 PM
Awesome, that should do it... well combined with checking all the weapons in the race.

Thanks Shadow
chava is offline   #3 Reply With Quote
chava
Senior Member
 
Join Date: Jan 2011
Location: Honolulu
Posts: 250

Old August 5th, 2011, 01:51 AM
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
chava is offline   #4 Reply With Quote
chava
Senior Member
 
Join Date: Jan 2011
Location: Honolulu
Posts: 250

Old August 5th, 2011, 02:06 AM
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
chava is offline   #5 Reply With Quote
Reply


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 04:02 AM.


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