Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
willuwontu
Senior Member
 
Join Date: Sep 2014
Posts: 105

Old September 26th, 2014, 08:58 AM
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 by willuwontu; September 26th, 2014 at 09:22 AM.
willuwontu is offline   #1 Reply With Quote
willuwontu
Senior Member
 
Join Date: Sep 2014
Posts: 105

Old 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
willuwontu is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:42 PM.


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