Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
I am working on script with the following foreach loop:
Quote:
Quote:
Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'p5CAbsEle' (Eval Script '#2') on line 23 -> Invalid tag expression specified Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
||
#1 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
Quote:
foreach pick in hero from BaseWep where "wCategory.Melee" #extradamage[eachpick, " damage plus 10 (3d6) poison", field[thingname].text] nexteach |
|
#2 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
It doesn't make any sense to me either.
If I commect out the foreach and nexteach lines, I get no errors. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#3 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
This is my full script in acess it matters:
Phase: Render, Priority: 10000 Quote:
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
|
#4 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
I don't know why, but I copy/pasted the foreach line from your script into mine, and now it works. They both appear identical to me . . .
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#5 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
Quote:
do you still get the error message? EDIT:wow, I took out your foreach and pasted the one I used here and it took the script. EDIT 2: ok I removed the foreach saved, tested, and then manually typed your foreach statement saved and tested and it took this time. Last edited by jjashley; February 23rd, 2018 at 02:41 PM. |
|
#6 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
Pretty sure I typed what you had.
sText = "+" & iCount & "d6 " sText &= field[pChosen].chosen.tagnames[DamageRes.?] foreach pick in hero from BaseWep where "wCategory.Melee" #extradamage[eachpick,sText,field[thingname].text] nexteach EDIT, nope I changed situational to extradamage. Edit 2, went back and changed it to situational and it took. Not sure what is wrong with what you have pasted above, but I got same error when I copied and pasted. J |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
This is fixed: Quote:
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
||
#8 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
<bah> humbug. I missed that completely. That would explain my error.
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#9 |
|
|