Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old October 25th, 2016, 04:05 AM
Quote:
Originally Posted by ErinRigh View Post
Darn it Sendric, I thought i was done, but i missed an ability. I can't figure out where to add the special ability +20 damage with melee/thrown, can you offer any help?

Erin

BTW, thanks for the last bit there
Ah, this one is a bit trickier. To do this in d20 you will need to use a foreach loop. Normally, we try to avoid them, but sometimes they are necessary. In any case, this is how you would add +20 damage to a melee or thrown weapon. Note that I have no idea what the Paragon is or where its from so I'm not looking at the special you are referring to.

Code:
foreach pick in hero from BaseWep where "wCategory.Melee | wCategory.RangeThrow"
    eachpick.field[wDamBonus].value += 20
nexteach

Last edited by Sendric; October 25th, 2016 at 05:16 AM.
Sendric is offline   #11 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old October 25th, 2016, 04:21 AM
Thanks mate, unfortunately I get a syntax error in that code when I go to use it, and since my coding xp is only now about 25, i don't know what I have done wrong, the error is;

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'xParaDMG' (Eval Script '#1') on line 1
-> Invalid syntax within 'foreach' statement
ErinRigh is offline   #12 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old October 25th, 2016, 05:17 AM
Quote:
Originally Posted by ErinRigh View Post
Thanks mate, unfortunately I get a syntax error in that code when I go to use it, and since my coding xp is only now about 25, i don't know what I have done wrong, the error is;

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'xParaDMG' (Eval Script '#1') on line 1
-> Invalid syntax within 'foreach' statement
Sorry. "here" should be "hero". I have fixed it in the above code block.
Sendric is offline   #13 Reply With Quote
odinlowejr88
Junior Member
 
Join Date: Nov 2016
Posts: 6

Old November 4th, 2016, 12:34 PM
Quote:
Originally Posted by ErinRigh View Post
Well if someone can help me with that special ability, I'll upload the finished template
Were you able to finish this template and if so would it be possible to get a copy? I've started trying to write it up myself but I'm beginning to think I should start with something simpler
odinlowejr88 is offline   #14 Reply With Quote
Nightfox
Senior Member
 
Join Date: Dec 2011
Posts: 100

Old November 22nd, 2016, 05:37 PM
Weapons have a field[wDamBonus].value that adds a bonus to weapon damage.

When you say "damage with melee/thrown" is that for a specific weapon, all weapons of a type, or just all weapons the character wields? This will affect the script used so the bonus is not added at the wrong time or to the wrong items.
Nightfox is offline   #15 Reply With Quote
Dark_Soul
Member
 
Join Date: Mar 2016
Posts: 55

Old November 24th, 2016, 08:57 PM
Paragon is from the Epic Level Handbook, the bonus is a luck bonus, and it's applied to all melee and thrown weapon attacks.
Dark_Soul is offline   #16 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old November 25th, 2016, 07:18 AM
Quote:
Originally Posted by odinlowejr88 View Post
Were you able to finish this template and if so would it be possible to get a copy? I've started trying to write it up myself but I'm beginning to think I should start with something simpler
That Paragon Creature template was added with the last release. It is contained with the Epic Level Handbook user file.
Sendric is offline   #17 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 05:23 PM.


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