Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
wolfang237
Member
 
Join Date: Dec 2012
Posts: 40

Old September 29th, 2016, 01:30 PM
1) I have a good bit of code that applies the affects of haste but which scales with Mythic tier (the speed boost ends up being +70, as if it were an augmented mythic version of the spell).

It works swell except that the +5 bonus to attack, reflex, and dodge isn't applying itself to the attack...

Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)

doneif (field[abilActive].value = 0)

 ~ spell adjustment should not stack.
doneif (hero.tagis[Hero.Hasted] <> 0)

~first we calculate the base tier
if (#tiereffect[] = 1) then
      field[abValue].value += (#tiereffect[]) - 1
else
      field[abValue].value += (#tiereffect[]) - 2
endif

~then we calculate combat bonuses
field[abValue4].value += .5 * field[abValue].value
field[abValue5].value += round(field[abValue4].value,0,1)

~then we input the combat bonuses
hero.child[Attack].field[Bonus].value += field[abValue5].value    
hero.child[ArmorClass].field[tACDodge].value += 1 + field[abValue5].value
hero.child[svRef].field[Bonus].value += 1 + field[abValue5].value
The attack code worked earlier but other things were funky so I kept editing. Didn't change that part though so I'm not sure what's wrong with it now. The Dodge and Reflex, as said, work fine. Timing is Final Phase, 9900.
wolfang237 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 29th, 2016, 02:14 PM
Develop menu...Floating Info Windows...Show Selection Tasks. Then, check "Attack Bonus (Attack)" from that list, and click OK.

(Enable Data File Debugging, at the top of the Develop menu, will need to be turned on in order to use floating info windows).

What's the timing of a script named "Attack Helper applies general bonuses to Melee Ranged specific fields"?

Your script needs to come BEFORE that script, not at the same time.
Mathias is offline   #2 Reply With Quote
wolfang237
Member
 
Join Date: Dec 2012
Posts: 40

Old September 29th, 2016, 02:49 PM
Thanks for letting me know about the debugging! It's nice that there's a cataloger of sorts that has the script timing in hero lab.

As for the script, I change my script to run at Post-attributes 10000, so it runs before the Attack helper and everything worked great. Thanks for all of your help and advice so far!

EDIT: Also patience.
wolfang237 is offline   #3 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:02 AM.


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