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
pazuzu
Junior Member
 
Join Date: Jul 2007
Posts: 21

Old April 30th, 2009, 02:55 AM
I'm trying to make a feat that allows a character to add their INT mod as a bonus to their ranged attacks. Using the macro list from the tutorial, I came up with the script below and put it in the Eval Scripts section of the feat. When I hit the test button, it says it is ready for use, but when I look at the character sheet, the bonus doesn't show up. The script is

hero.child[Attack].field[tAtkRanged].value = hero.child[Attack].field[tAtkRanged].value + hero.child[aINT].field[aModBonus].value

I'd appreciate any pointers on what I'm messng up.

Thanks.
pazuzu is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 30th, 2009, 08:35 AM
What's the timing on your script? Since you want to affect the attacks, you'll need to run it before the PostAttr phase, since you need the value of an attribute, you need to run it after the attributes phase. That's a very narrow window (actually, it isn't a window).

So, I know there are other things that affect attack rolls based on attributes. I'll be looking for one, but you should also be thinking of other classes, feats, etc. that do something similar to what you're doing. Find one of them, and see what timing it uses.
Mathias is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 30th, 2009, 08:41 AM
I gave it a quick test, and the script functions at Phase: Post-Attributes, priority: 100.

Last edited by Mathias; April 30th, 2009 at 09:05 AM.
Mathias is offline   #3 Reply With Quote
pazuzu
Junior Member
 
Join Date: Jul 2007
Posts: 21

Old April 30th, 2009, 09:47 AM
I put that in there and it worked liked a champ. Many thanks for your help.
pazuzu is offline   #4 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 05:06 AM.


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