Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Quote:
|
|
#11 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
[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 <:-(} |
#12 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 |
#13 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Quote:
"use of the +=, -=, or /= assignment forms is restricted to numeric values." But hey, that's progress! - Andrew <:-(} |
|
#14 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I see the problem, change the line that says
var currlevel as string to var currlevel as number |
#15 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Quote:
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 <:-(} |
|
#16 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Quote:
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 <:-(} |
|
#17 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
The eval script should be on a class ability, not the class itself.
|
#18 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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?
|
#19 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
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 <:-(} |
#20 |
|
|