Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 20th, 2011, 07:04 PM
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)?
Mathias is online now   #11 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 21st, 2011, 11:36 AM
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
Frodie is offline   #12 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 21st, 2011, 11:41 AM
So, look at your script - what's line #3 say?

(The first look I mentioned does appear to be the problem here).
Mathias is online now   #13 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 21st, 2011, 11:47 AM
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
Frodie is offline   #14 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 21st, 2011, 12:12 PM
So which of those is line #3?

Do you see anything wrong with it?
Mathias is online now   #15 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 21st, 2011, 12:19 PM
I guess line 3 is

sp = [usrChosen1].field[aFinalVal].value * 5
Frodie is offline   #16 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 21st, 2011, 12:21 PM
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)?
Mathias is online now   #17 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 21st, 2011, 12:44 PM
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
Frodie is offline   #18 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 21st, 2011, 12:49 PM
Screen shot if that helps
Attached Images
File Type: jpg Untitled.jpg (384.5 KB, 5 views)
Frodie is offline   #19 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 21st, 2011, 12:58 PM
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.
Mathias is online now   #20 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:50 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.