• 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

Trigger Class Special Ability List after picking another Special Ability

smokeh

Member
There are 2 ability group lists that I don't want to appear until the user has chosen a class Specialist. I feel like this should be fairly trivial, and I have an exact example I'm trying to copy from, but I just can't get this to work.

The UA Artificer from the Community Pack has an Alchemist specialist. When you pick that specialist, it creates a new special ability called 'Alchemical Formulas' with new picks.

From what I can see, the 'Alchemist' special ability has this eval script:

Code:
       linkage[table].field[cSpec3rdNm].text = "Alchemical Formulas"
       linkage[table].field[cSpec3rdSi].text = "Alchemical Formula"

       linkage[table].field[cCustTeTot].arrayvalue[0] += 1
       linkage[table].field[cCustTeTot].arrayvalue[2] += 2
       linkage[table].field[cCustTeTot].arrayvalue[8] += 3
       linkage[table].field[cCustTeTot].arrayvalue[13] += 4
       linkage[table].field[cCustTeTot].arrayvalue[16] += 5

It's running at Post-Levels 9000 with a special timing of 'before Calc cGiveSp3rd'. There was nothing else on the 'Alchemist' Special Ability that I could see referencing creating the new field. I checked the fields on the Artificer class itself, and only saw the starting 'cSpecSing' for the specialist created.

When I add this variation into my specialist's Eval Script, it's not creating the new ability list. I already have a second and third ability I'm adding manually through the Class, and if I change the eval script I'm running to reference the 'third', it will change the name. I'm also not able to find a 'Calc cGiveSp4th', so my assumption is I'm missing something basic to trigger the creation of the 4th ability before my Eval Script can change it's values. I've also tried creating a new ability that references a fourth list (Helper.Quaternary tag), thinking that might drive some type of creation, but that also didn't work.

I double checked the 'cSpec4thNm' by adding a new field on the class.

Code:
       linkage[table].field[cSpec4thNm].text = "Test1"
       linkage[table].field[cSpec4thSi].text = "Test1"

 linkage[table].field[cCustTeTot].arrayvalue[0] += 1

Thanks for taking the time to read this, any help would be much appreciated.
 
Have you created any Quaternary abilities for this ability yet?

The list only appears if you've already created a few custom abilities.


Look at Arcane Archer in the XGTE - the subclass has the following:

Code:
       doneif (tagis[Helper.Disable] <> 0)

       linkage[table].field[cSpec4thNm].text = "Arcane Shots"
       linkage[table].field[cSpec4thSi].text = "Arcane Shot"

       linkage[table].field[cCustQuTot].arrayvalue[2] += 2
       linkage[table].field[cCustQuTot].arrayvalue[6] += 3
       linkage[table].field[cCustQuTot].arrayvalue[9] += 4
       linkage[table].field[cCustQuTot].arrayvalue[14] += 5
       linkage[table].field[cCustQuTot].arrayvalue[17] += 6

In order for the shots to appear you have to create the abilities in the Custom Ability tab though as HL won't show an empty list.

When you look at Beguiling Arrow (one of the arcane shots), you'll see that it's set as a Quaternary ability available to the Fighter class.
 
For some reason I wasn't catching on that there was a different array field. I'll update my arrayvalues to use the 'cCustQuTot' field and it should work out. Thanks for the help!
 
Back
Top