View Single Post
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old December 30th, 2017, 06:34 AM
I am running the script and it tests it and allows me to use the class the script is assigned to and then gives the following message.

Invalid tag expression specified for 'foreach' statement.

var refbd as number
var fortbd as number
var willbd as number
foreach pick in hero from BaseClHelp where "c?.Bad"
refbd += eachpick.field[tLevel].value
fortbd += eachpick.field[tLevel].value
willbd += eachpick.field[tLevel].value
nexteach

hero.child[svRef].field[Bonus].value/=3
hero.child[svFort].field[Bonus].value/=3
hero.child[svWill].field[Bonus].value/=3
insaneurge is offline   #5 Reply With Quote