• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

How do you assign a weapon damage bonus from a spell in the adjustment section?

kridak

Member
Hi All

I am working on adding some spells in the conditions section that increase a pc's attack and damage by 2.

I have this so far for a spell that uses BonLuck...

~ +1 Attack
Code:
hero.child[Attack].field[BonLuck].value = maximum(hero.child[Attack].field[BonLuck].value, 1)

~ +1 Damage
Code:
hero.child[Damage].field[BonLuck].value = maximum(hero.child[Damage].field[BonLuck].value, 1)

The attack part works...the damage does not.

It seems like BonLuck does not work yet if i change the code to read....

~ +1 Damage
Code:
hero.child[Damage].field[tDamBonus].value = maximum(hero.child[Damage].field[tDamBonus].value, 1)

It seems i can get a bonus to work but i have multiple spells with different types (Morale and Luck and insight) that i need have stackable.

So i figure i am missing something very simple...what would it be?
 
Last edited:
The Damage component does not have access to the modifiers because the weapons themselves are unfortunately set up so that their modifier fields apply to their attack, which means that the Damage pick can't forward its fields on to the weapons like the Attack pick can.

So, until I can figure out a way to properly distinguish an attack BonLuck and a damage BonLuck on a weapon, damage can't be tracked modifier by modifier.
 
Back
Top