• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Racial Weapon Proficiency Help

chava

Well-known member
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?
 
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.
 
Last edited:
Awesome, that should do it... well combined with checking all the weapons in the race.

Thanks Shadow
 
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
 
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
 
Back
Top