• 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

Can't get weapon die bonus to show

willuwontu

Well-known member
Code:
The Magehunter gains a +1 bonus on all attack rolls against creatures capable of casting spells and creatures possessing one or more spell-like abilities. 

They also deal an additional 1d8 points of damage on a successful hit made against creatures capable of casting spells or possessing spell-like abilities. 

The bonuses to attack rolls increase by +1 every odd level after first. The bonus damage increases by +1d8 every four levels after level 1.


Code:
Phase: Post-attributes Priority: 14000
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      doneif (field[abilActive].value = 0)

var text as string

text = signed(round(field[xIndex].value/2,0,-1)+1) & "d8"

foreach pick in hero from BaseWep where ""
      #extradamage[eachpick,text,field[name].text]
nexteach

      hero.child[Attack].field[Bonus].value += field[xCount].value

So right now I have this as an activated ability and the attack bonus is applying correctly, However I can't seem to get the extra damage to show up on my hero's weapons. Any ideas on what I'm screwing up this time?
 
Last edited:
Figured it out

Code:
var text as string

text = signed(round(field[xCount].value/2,0,-1)+1) & "d8"

foreach pick in hero from BaseWep
      #extradamage[eachpick,text,field[name].text]
nexteach

Needed to remove the where "" function
 
Back
Top