![]() |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
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. |
|
![]() |
![]() |
Senior Member
Join Date: Oct 2016
Posts: 621
|
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 |
![]() |
![]() |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
|
|
![]() |
![]() |
Junior Member
Join Date: Nov 2016
Posts: 6
|
Quote:
![]() |
|
![]() |
![]() |
Senior Member
Join Date: Dec 2011
Posts: 100
|
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. |
![]() |
![]() |
Member
Join Date: Mar 2016
Posts: 55
|
Paragon is from the Epic Level Handbook, the bonus is a luck bonus, and it's applied to all melee and thrown weapon attacks.
|
![]() |
![]() |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
That Paragon Creature template was added with the last release. It is contained with the Epic Level Handbook user file.
|
![]() |
![]() |
![]() |
|
|