• 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

Difficulty with field pChosen2

Lord Magus

Well-known member
I have created an adjustment that grants a +1 inherent bonus to 2 different ability scores. I have set Menus #1 and #2 to Attributes.

Code:
Pre-Attributes / 10000
~ If we're not enabled, get out now
  doneif (field[pIsOn].value = 0)

~ If ability score(s) not chosen, get out now
  doneif (field[pChosen].ischosen = 0)
  doneif (field[pChosen2].ischosen = 0)

~ Add to our chosen attribute(s)
  field[pChosen].chosen.field[aNormMod].value += 1
  field[pChosen2].chosen.field[aNormMod].value += 1

And I get the following error message:
Attempt to assign field value with no pick context
Location: 'eval' script for Thing 'pSOULGftUwGds' (Eval Script '#2') near line 10

which corresponds to the attribute chosen in pChosen2. I have not been able to circumvent that, and actually need to use this adjustment as a part of a complex ability. Any pointers as to what is going on? Thanks!
 
And the problem went away on its own.

Might be related to the fact I run HeroLab on an old laptop, with RAM and disk space quite squeezed. I previously had another script not working as intended for a couple of tries, then "magically" behaving normally afterwards.


Anyways, leaving this here for reference or in case there is indeed something to correct on the script.
 
Back
Top