Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 468

Old May 18th, 2024, 01:11 PM
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!
Lord Magus is offline   #1 Reply With Quote
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 468

Old May 20th, 2024, 06:03 AM
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.
Lord Magus is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

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 01:30 PM.


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