Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
bertg
Junior Member
 
Join Date: Aug 2007
Posts: 17

Old August 24th, 2007, 04:26 PM
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?
bertg is offline   #1 Reply With Quote
bertg
Junior Member
 
Join Date: Aug 2007
Posts: 17

Old August 26th, 2007, 12:10 PM
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...
bertg is offline   #2 Reply With Quote
bertg
Junior Member
 
Join Date: Aug 2007
Posts: 17

Old August 26th, 2007, 05:10 PM
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 is offline   #3 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 27th, 2007, 07:00 PM
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/
Colen is offline   #4 Reply With Quote
bertg
Junior Member
 
Join Date: Aug 2007
Posts: 17

Old August 27th, 2007, 08:11 PM
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 is offline   #5 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 28th, 2007, 03:49 PM
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/
Colen is offline   #6 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 09:20 AM.


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