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
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 4th, 2014, 01:20 PM
Quote:
Originally Posted by quistar View Post
Much appreciated! I did get an error on Line 1 for Eval Script "calc for Soul of Burnished Bronze", error in right-side expression of assignment. No idea what that means.

Thanks in advance for your patience. I'm learning to do the scripts by example and using similar scripts, but that only carries me so far without help.

- Andrew <:-(}
The error message tells you the problem is on line 1. What is on line 1 which might be the issue?
Aaron is offline   #11 Reply With Quote
quistar
Member
 
Join Date: May 2014
Location: Plantation, FL
Posts: 78

Old June 4th, 2014, 06:27 PM
[QUOTE=Aaron;184744]Yeah, I guess this one is pretty tough for a beginner. Here is how I would start. As I said, not tested, may need to tweak.

Yeah, the last real programming I did was in high school, a lot longer ago than I care to disclose. And that was nothing compared to this. My head spins trying to keep track of all this and I'm honestly not up to the job.

Tried this and got a syntax error in the 'eval' script on line 10, error in right-side expression of assignment.

No idea what this means but I hope you do. I copied and pasted your script as written above.

I know I should know better, but I apologize for being a bit of a pest. I checked the how-to guides on the forum (and will re-check them since I can learn more), but they don't cover a lot of the intricate coding detail and there's just no way I can figure it all out on my own.

- Andrew <:-(}
quistar is offline   #12 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 4th, 2014, 06:32 PM
Line 10 is
currlevel = eachpick.field[cTotalLev].value - 1

which I thought was fine. I guess try changing it to

currlevel = eachpick.field[cTotalLev].value
currlevel -= 1
Aaron is offline   #13 Reply With Quote
quistar
Member
 
Join Date: May 2014
Location: Plantation, FL
Posts: 78

Old June 4th, 2014, 07:13 PM
Quote:
Originally Posted by Aaron View Post
Line 10 is
currlevel = eachpick.field[cTotalLev].value - 1

which I thought was fine. I guess try changing it to

currlevel = eachpick.field[cTotalLev].value
currlevel -= 1
Well, that fixed the error on line 10. But now line 11 is giving an error:
"use of the +=, -=, or /= assignment forms is restricted to numeric values."

But hey, that's progress!

- Andrew <:-(}
quistar is offline   #14 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old June 4th, 2014, 07:44 PM
I see the problem, change the line that says

var currlevel as string to
var currlevel as number
AndrewD2 is offline   #15 Reply With Quote
quistar
Member
 
Join Date: May 2014
Location: Plantation, FL
Posts: 78

Old June 4th, 2014, 07:53 PM
Quote:
Originally Posted by AndrewD2 View Post
I see the problem, change the line that says

var currlevel as string to
var currlevel as number
DING! We got it!

I had one more error on the tag of the pclass, but through trial and error I was able to track that down myself in the Tags. Thank you! One down, about a gazillion to go! (I'll go slowly on them!)

- Andrew <:-(}
quistar is offline   #16 Reply With Quote
quistar
Member
 
Join Date: May 2014
Location: Plantation, FL
Posts: 78

Old June 4th, 2014, 07:57 PM
Quote:
Originally Posted by quistar View Post
DING! We got it!

I had one more error on the tag of the pclass, but through trial and error I was able to track that down myself in the Tags. Thank you! One down, about a gazillion to go! (I'll go slowly on them!)
Or so I thought...

When I went to apply this on a character I'd created, I got an error message:

"Attempt to access field 'UsrCandid1' that does not exist for thing 'cHelpMhr'"

Same error message for 'UsrChosen1'

cHelpMhr is the Unique ID for the pclass Monster Hunter.

- Andrew <:-(}
quistar is offline   #17 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 4th, 2014, 10:41 PM
The eval script should be on a class ability, not the class itself.
Aaron is offline   #18 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 5th, 2014, 06:38 AM
The error message you've quoted shows some capitalization errors - UsrCandid1, instead of usrCandid1 and UsrChosen1 instead of usrChosen1. Did you capitalize those when writing down the error message, or are they capitalized in your code?
Mathias is offline   #19 Reply With Quote
quistar
Member
 
Join Date: May 2014
Location: Plantation, FL
Posts: 78

Old June 5th, 2014, 12:19 PM
Quote:
Originally Posted by Mathias View Post
The error message you've quoted shows some capitalization errors - UsrCandid1, instead of usrCandid1 and UsrChosen1 instead of usrChosen1. Did you capitalize those when writing down the error message, or are they capitalized in your code?
I capitalized them when typing here. They are lower case in the error message, which doesn't allow me to select and copy text so I'm transcribing. Good question.

- Andrew <:-(}
quistar is offline   #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 12:05 AM.


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