Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You don't say why that doesn't work - is there an error reported? Is it not doing what it's supposed to? What is it doing?
You've also left out the phase and priority of your script. As a first look, check your usages of usrChosen1 - see any difference between the first time you reference it (correctly), and the second time you reference it (incorrectly)? |
#11 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I am sorry, my bad. The error is
"Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'cMHMind' (Eval Script '#1') on line 3 -> Error in right-side expression of assignment" I have it at Final Phase at 10000 as a Custom Ability. And I have this in the Custom Expression thingid.aCHA|thingid.aINT|thingid.aWIS |
#12 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
So, look at your script - what's line #3 say?
(The first look I mentioned does appear to be the problem here). |
#13 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
if (field[usrChosen1].ischosen <> 0) then
var sp as number sp = [usrChosen1].field[aFinalVal].value * 5 sp = round(sp, 0, -1) That's the whole thing at the moment |
#14 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
So which of those is line #3?
Do you see anything wrong with it? |
#15 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I guess line 3 is
sp = [usrChosen1].field[aFinalVal].value * 5 |
#16 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Correct.
As I said before, check your usages of usrChosen1 - see any difference between the first time you reference it (correctly), and the second time you reference it (incorrectly)? |
#17 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
ok this is the error when I rebooted
The data files could not be loaded due to errors. Hero Lab will now attempt to load them in recovery mode. Once loaded, you can access the editor as normal to correct any errors. The following errors occurred: Syntax error in 'eval' script for Thing 'cMHMind' (Eval Script '#1') on line 3 -> Error in right-side expression of assignment |
#18 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Screen shot if that helps
|
#19 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Frodie, I can see exactly what's wrong with it. But, this isn't the first time you've asked a question where the problem was not understanding the syntax of Hero Lab's programming language, so I'm trying to lead you to the solution, so that next time, you'll have a better understanding of how to solve these yourself.
|
#20 |
|
|