• 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

Inquisitor Judgment

i'm trying to coding the justicar from one of the Super Genius works.

basically is an alternate class of the inquisitor that can choose from multiple judgment.

so i make various custom special and bootstrapped to them the "Judgment of" class special.

when i add the custom to class (from the class panel in herolab) i get this error:
Code:
Attempt to access field 'cClrTurn' that does not exist for thing 'cJusJustic'
Location: 'eval' script for Thing 'cInqJJusti' (Eval Script '#1') near line 13
- - -

i checked the "select deity/etc" option in the editor.
 
The error message mentions that the problem is in Eval Script #1 of the cJusJustic thing - I'd recommend copying and pasting that script here, so that we can see what you're trying to accomplish here. (describing the ability you're trying to implement is also recommended).
 
mmm... ok.
basically, i bootstrapped an inquisitor judgement (destruction, for example) to a custom class in order to make it a selectable for an alternate class of the inquisitor.
it seems to me that the problem is this line of script:

if (root.field[cClrTurn].value < 0) then
field[livename].text = "Judgement of Profane Destruction"
elseif (root.field[cClrNeutGE].value > 0) then
field[livename].text = "Judgement of Profane Destruction"
else
field[livename].text = "Judgement of Sacred Destruction"
endif

i tried to create a new judgement of Destruction to replace the standard without this line of script and its works.
 
The "root." transition will transition to the pick that bootstrapped this pick - so, by bootstrapping it from a custom class ability, the root of that class special is the custom class ability, not the class, and custom class abilities don't have the cClrTurn field that classes do.

So, once you reach the root pick, you need to transition again, this time to the class whose table this ability was added to:

Code:
root.linkage[table].field[cClrTurn].value

If you meant "Archetype", not "Custom Class Ability", use this instead, in order to go from the class special, to the archetype that bootstrapped it, to the class that archetype is linked to:

Code:
root.linkage[varies].field[cClrTurn].value
 
The "root." transition will transition to the pick that bootstrapped this pick - so, by bootstrapping it from a custom class ability, the root of that class special is the custom class ability, not the class, and custom class abilities don't have the cClrTurn field that classes do.

So, once you reach the root pick, you need to transition again, this time to the class whose table this ability was added to:

Code:
root.linkage[table].field[cClrTurn].value

If you meant "Archetype", not "Custom Class Ability", use this instead, in order to go from the class special, to the archetype that bootstrapped it, to the class that archetype is linked to:

Code:
root.linkage[varies].field[cClrTurn].value

ok, understand.
thank you.
 
Back
Top