Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Can't get weapon die bonus to show (http://forums.wolflair.com/showthread.php?t=50848)

willuwontu September 26th, 2014 08:58 AM

Can't get weapon die bonus to show
 
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?

willuwontu September 26th, 2014 09:29 AM

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


All times are GMT -8. The time now is 10:29 PM.

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