Member
Join Date: Sep 2008
Posts: 48
|
I am entering in the Radiant Servant prestige class, and one of the abilities grants an extra cleric domain. I have created a class special and have How do I increase the number of domains allowed? On the Class Special, I have an eval script that runs on Post-Attributes (Users), Priority 10000 and looks like this:
Code:
if (hero.tagcount[Classes.RadiantS] >= 5) then linkage[table].field[cGiveSpec].value += 1 endif The code compiles when I hit test, but when the special is applied, I get an error: "Linkage pick 'table' not located for current context" Help? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
It looks link the "linkage[table]" is only accessible from the domain - your script is running from the class.
Here's how to go about solving this - add a level of cleric, and go to the develop menu, then select "Floating Info Windows" and then "Show Selection Fields". In the list that comes up, select the second cleric thing (the one that starts with cHelp - the class helper has most of the information about a class). Now, go to the Cleric tab, and select a domain. Watch the floating info window for what changes. The answer is actually field[cGiveSpec].value, but I was trying to walk you through the generic procedure for finding information about a class in HL. So, Code:
if (hero.tagcount[Classes.RadiantS] >= 5) then hero.childfound[cHelpClr].field[cGiveSpec].value += 1 endif Oh, and I used "childfound[cHelpClr]" instead of "child[cHelpClr]" because it is possible that a user will add the prestige class without having added cleric levels - it that happens, you want the script to do nothing, rather than putting up an error message. Last edited by Mathias; June 29th, 2009 at 09:31 AM. Reason: Switched to childfound |
#2 |
Member
Join Date: Sep 2008
Posts: 48
|
Worked perfectly thanks!
And extra thanks for teaching me how you did it - that will help greatly in the future. |
#3 |
|
|