• 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

Swashbuckler's Insightful Strike

bertg

Member
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?
 
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...
 
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.
 
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/
 
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?
 
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/
 
Back
Top