Member
Join Date: Dec 2012
Posts: 40
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#2 |
Member
Join Date: Dec 2012
Posts: 40
|
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. |
#3 |
|
|