• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

What is illegal in this script?

Steev42

Well-known member
A simple script, at Post-Attributes/10000

Code:
     field[trkMax].value += herofield[tHitDice].value
     field[trkMax].value += hero.child[aSTR].value

Testing gives me an error:
"Syntax error in 'eval' script for Thing 'raXXXX' (Eval Script '#1') on line 2
-> Invalid use of a reserved word in script"

I had originally thought that it was trkMax, but that's on line 1. So, can anyone tell me what reserved word is being used illegally here? (This is a Racial Special, btw).

As an aside, but related, perhaps the error dialogs could include what's causing the issue?
 
You only got half the transition done. So you went from hero to the Pick but you didn't tell it which field on the strength attribute to get the value from. I think it has like a dozen fields.
 
A simple script, at Post-Attributes/10000

Code:
     field[trkMax].value += herofield[tHitDice].value
     field[trkMax].value += hero.child[aSTR].value

Testing gives me an error:
"Syntax error in 'eval' script for Thing 'raXXXX' (Eval Script '#1') on line 2
-> Invalid use of a reserved word in script"

I had originally thought that it was trkMax, but that's on line 1. So, can anyone tell me what reserved word is being used illegally here? (This is a Racial Special, btw).

As an aside, but related, perhaps the error dialogs could include what's causing the issue?

Your problem is that you are not referencing a field... values are stored in fields my friend...
 
Thanks to both of you. I'd actually figured it out about 20-30 minutes after I posted my original, but forgot to come on and retract the question.
 
Back
Top