Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 470
|
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 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! |
#1 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 470
|
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. |
#2 |
Thread Tools | |
Display Modes | |
|
|