Junior Member
Join Date: Aug 2007
Posts: 17
|
I'm trying to create the Swashbuckler class from the Complete Warrior and have hit a snag at level 3. The class gets an ability called Insightful Strike (Ex), where he can add his INT bonus to his STR bonus for damage, as long as he's using a weapon capable of Weapon Finesse. I've been going back and forth on this and have no idea how to do it...any one out there know how?
|
#1 |
Junior Member
Join Date: Aug 2007
Posts: 17
|
I had the idea of somehow adapting the Monk's ability to add his WIS bonus to his AC, changing it to INT and damage, but the eval script is a bit picky. How would I write it out so that:
1) You need to be wearing light or no armor, and have light encumbrance 2) It only applies to light weapons or Weapon finesse weapons? Any help would be appreciated...we have 2 swashbucklers in our campaign and I'd like to have this up and running by next weekend... |
#2 |
Junior Member
Join Date: Aug 2007
Posts: 17
|
By george, I think I've got it...I tried this script and it seems to work...
~ Get our encumbrance level - if we're encumbered by that, or if we're wearing ~ armor or shield, we're disabled. var result as number if (hero.tagis[Encumbered.Light] = 0) then result = assign[Helper.SpcDisable] done endif if (hero.tagis[Hero.EquipArmor] + hero.tagis[Hero.EquipShld] > 0) then result = assign[Helper.SpcDisable] done endif ~ Apply our Intelligence bonus to all our Finesse weapon damage hero.child[Damage].field[tDamFiness].value = hero.child[Damage].field[tDamStr].value + hero.child[aINT].field[aModBonus].value ~ Apply our Intelligence bonus to all our Light weapon damage hero.child[Damage].field[tDamLight].value = hero.child[Damage].field[tDamStr].value + hero.child[aINT].field[aModBonus].value I had to add the last line since it didn't recognize Light weapons as being eligible for Weapon Finesse. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
bertg wrote:
> > > By george, I think I've got it...I tried this script and it seems to work... > > > ~ Get our encumbrance level - if we're encumbered by that, or if we're > wearing > ~ armor or shield, we're disabled. > var result as number > if (hero.tagis[Encumbered.Light] = 0) then > result = assign[Helper.SpcDisable] > done > endif > if (hero.tagis[Hero.EquipArmor] + hero.tagis[Hero.EquipShld] > 0) then > result = assign[Helper.SpcDisable] > done > endif > > ~ Apply our Intelligence bonus to all our Finesse weapon damage > hero.child[Damage].field[tDamFiness].value = > hero.child[Damage].field[tDamStr].value + > hero.child[aINT].field[aModBonus].value > > ~ Apply our Intelligence bonus to all our Light weapon damage > hero.child[Damage].field[tDamLight].value = > hero.child[Damage].field[tDamStr].value + > hero.child[aINT].field[aModBonus].value > > > I had to add the last line since it didn't recognize Light weapons as > being eligible for Weapon Finesse. Excellent! Glad to see you got things worked out. Adding to tDamFiness should probably add to light weapon damage too, since weapon finesse applies to all of them. I'll get that changed in a future patch. Thanks! -- Colen McAlister (colen@wolflair.com) Chief Engineer, Lone Wolf Development http://www.wolflair.com/ |
#4 |
Junior Member
Join Date: Aug 2007
Posts: 17
|
I did have to delete part of that code to get it to work correctly. I copied the encumbrance/armor check from the Monk class' AC bonus special, but that uses the [Hero.EquipArmor] tag, which covers all armor. Is there a tag for just Medium or Heavy armor?
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
bertg wrote:
> > > I did have to delete part of that code to get it to work correctly. I > copied the encumbrance/armor check from the Monk class' AC bonus > special, but that uses the [Hero.EquipArmor] tag, which covers all > armor. Is there a tag for just Medium or Heavy armor? You can test for heavy armor using Hero.HeavyArmor, or medium armor using Hero.MedArmor. Hope this helps, -- Colen McAlister (colen@wolflair.com) Chief Engineer, Lone Wolf Development http://www.wolflair.com/ |
#6 |
|
|