Luck Bonus to all Attacks/Damage
What am I doing wrong?
~+2 to all Attack #applybonus[BonLuck, hero.child[Attack], 2] ~+2 to all Damage #applybonus[BonLuck, hero.child[Damage], 2] I'm trying to apply a luck bonus to all attacks from a magic item. |
Phase? Priority?
|
Quote:
Attempt to access field 'BonLuck' that does not exist for thing 'Damage'. --- Attempt to access field 'BonLuck' that does not exist for thing 'Damage'. Here's the full eval script; everything works except for the latter two items: ~ If we're not equipped, get out if (field[gIsEquip].value = 0) then done endif #applybonus[BonLuck, hero.child[vFort], 2] #applybonus[BonLuck, hero.child[vRef], 2] #applybonus[BonLuck, hero.child[vWill], 2] ~+2 to Armor Class #applybonus[BonLuck, hero.child[ArmorClass], 2] ~+2 to all Attack #applybonus[BonLuck, hero.child[Attack], 2] ~+2 to all Damage #applybonus[BonLuck, hero.child[Damage], 2] |
I know, at least for the d20 system, that there are no typed bonus fields for Damage. I've since asked that such be added, and hopefully in the future they will be. I can't say if Pathfinder has these fields or not, but from the error you have, it would seem that you are suffering from the same exclusion of fields that the d20 system does.
There is a workaround, that is not ideal. There is a BonLuck field on weapons, which applies BOTH the bonus to the attack value and the damage value. This would make the Attack thing's bonus you have listed stack with a weapon thing's bonus, even though they are the same (because they come from different sources). So, you would have to also either not apply the BonLuck to Attack, or you would have to subtract one from the weapon's attack. As I said, not ideal. Anyways, that's my guess on what's happening with your script, hopefully a Pathfinder expert can step in and give a more definitive answer. |
Quote:
You can see what fields are on a Thing. We now have a Video that goes over this actually. See THIS video about 4 minutes in it goes over how to see the different Fields/Value on Things which is VERY helpful in finding answers. Hope that helps. |
Quote:
|
Shadow is da Man!
Quote:
|
Quote:
Also see THIS post about the videos and as it shows which one to watch 1st, 2nd, 3rd, and finally 4th. It will make more sense that way. ;) |
Quote:
|
Quote:
|
All times are GMT -8. The time now is 09:17 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.