Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Manalishi66
Senior Member
 
Join Date: Jul 2010
Posts: 157

Old June 20th, 2014, 06:57 PM
rying to create my own kensai class. Need script help to do the following.....

The Kensai selects one type of weapon or unarmed strikes as his chosen weapon. When striking with his chosen weapon, he gains a bonus to damage equal to half his level (round up).

A Kensai of at least 5th level gains a +1 on attack rolls with his chosen weapon. This bonus increases by +1 every four levels to a maximum of +4 at 17th level.

Failed to find scripts that helped me. Can someone please show me a working script that I could add to this Class Special Ability to make it work.

script so far (just damage bonus right now), but I cant get the damage bonus add to the weapon chosen?


~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ If we're disabled, just get out now
doneif (tagis[Helper.SpcDisable] <> 0)

~ If we're not the first copy, just get out now
doneif (tagis[Helper.FirstCopy] = 0)

var bonus as number
bonus = (#levelcount[KEN])/ 2
field[abValue].value += round(bonus,0,1)

field[abSumm].text = "+" & field[abValue].value & " damage with your chosen weapon."
field[livename].text = field[thingname].text & " +" & field[abValue].value

doneif (hero.childfound[cFtrWeapCh].field[usrChosen1].ischosen = 0)

field[livename].text &= ": " & hero.childfound[cFtrWeapCh].field[usrChosen1].chosen.field[name].text
var searchexpr as string
searchexpr = hero.childfound[cFtrWeapCh].field[usrChosen1].chosen.tagids[IsWeapon.?,"|"]

foreach pick in hero from BaseWep where searchexpr
eachpick.field[wDamBonus].value += bonus
Manalishi66 is offline   #1 Reply With Quote
Reply


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 08:56 PM.


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