Senior Member
Join Date: Feb 2010
Posts: 874
|
Okay, but understand this is not currently really doing what I want it to; I'm kitbashing and trying to find problems piecemeal before I move on to the next part, so it uses code components from a couple of other things (a class ability and a feat) and they may not work right either.
What I have currently: Code:
<thing id="fRDBFuX" name="Dragonborn Fury" description="While you are bloodied, you gain a +1 racial bonus to attack rolls." compset="RaceFeat"> <eval phase="Final" priority="9001"><![CDATA[ doneif (herofield[acHPNow].value <= herofield[acHPBlood]) foreach pick in hero from WeaponBase perform eachpick.field[wpBonus].modify[+,1,""] nexteach]]></eval> <eval phase="Final" priority="9001" index="2"><![CDATA[ doneif (herofield[acHPNow].value <= herofield[acHPBlood]) foreach pick in hero where "EquipIndex.? & ImplemType.*" perform eachpick.assign[Helper.AttBonus] nexteach]]></eval> </thing> Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'fRDBFuX' (Eval Script '#1') on line 1 -> Invalid field syntax used Syntax error in 'eval' script for Thing 'fRDBFuX' (Eval Script '#2') on line 1 -> Invalid field syntax used |
#11 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
It's a copy/paste error since both have the same problem. Look at your doneif statements and compare how you wrote the herofield identifiers out.
|
#12 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Ah. The lack of the ".value" on the second half?
|
#13 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Oh, and I knew what line the problem was in; I just was somehow blind to the lack of parallelism.
|
#14 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Correct, the ".value"
|
#15 |
|
|