Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greylin
Member
 
Join Date: Jul 2014
Posts: 46

Old June 29th, 2016, 01:43 PM
Sorry for a very basic question, but I want the below eval script for sneak attack bonus to cap out at +3d6 at 15th level rather than incrementing to +4d6 at 20th. How might I put in a 'max 3' limit please?

--snip--
~ Add our level / 5 to our sneak attack damage.
var sneak as number
sneak = field[xTotalLev].value / 5
sneak = round(sneak, 0, -1)
hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + sneak
field[livename].text = "Sneak Attack +" & sneak & "d6"
field[CustDesc].text = "+" & sneak & "d6 to your Sneak Attack damage."
Greylin is offline   #1 Reply With Quote
 

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 10:58 PM.


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