• 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

Need to adapt some code...can't find field name..

Enforcer84

Well-known member
So I'm using the Battle Master as a template for my Rune Knight build.

the Battle Master has a script to assign the number of Maneuvers, this script uses -

linkage
.field[cCustTeTot].arrayvalue[2] += 2
linkage
.field[cCustTeTot].arrayvalue[6] += 3
linkage
.field[cCustTeTot].arrayvalue[9] += 4
linkage
.field[cCustTeTot].arrayvalue[14] += 5

so I'm needing to turn it to a quadrary ability...and I can't for the life of me figure out where cCustTeTot came from.

because I've tried cCustSeTot for secondary and that totally didn't work. So I'd like to find the fields for Primary, Secondary, Quadrary, and Quintary versions of this.
 
You could look at Arcane Archer - I think it used Quartenary.

Code:
       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

I did a Rune Knight that had 5th:
Code:
       linkage[table].field[cSpec5thNm].text = "Runic Augmentations"
       linkage[table].field[cSpec5thSi].text = "Runic Augmentation"

       linkage[table].field[cCust5Tot].arrayvalue[2] += 3
       linkage[table].field[cCust5Tot].arrayvalue[6] += 5
       linkage[table].field[cCust5Tot].arrayvalue[9] += 7
       linkage[table].field[cCust5Tot].arrayvalue[14] += 9
       linkage[table].field[cCust5Tot].arrayvalue[17] += 11


That leave primary and secondary. The secondary is reserved for subclasses normally so I'd suggest leaving it alone.

cSpecSing (single name .. i.e. Fighting Style)
cSpecName (plural name .. i.e. Fighting Styles)
cCustTot (array for the number allowed)

cSpec2ndSi
cSpec2ndNm
cCustScTot

For reference on the 3rd:
cSpec3rdNm (plural name)
cSpec3rdSi (single name)


You can find these references by going into:
Develop -> Floating Info Windows -> Show Selection Fields -> and then choose the cHelpXXX on a character that has a class assigned to it.
 
Addendum:

I think I did my Rune Knight runes as a 5th because I kept seeing the Arcane Shots when I did it as a 4th. You can avoid this by modifying the appropriate abilities field tag expression.

The tag expression fields are:

cCstSpExpr
cCstS2Expr
cCstS3Expr
cCstS4Expr
cCstS5Expr
 
That's why I moved to Quatranary beacuse I got all the Battle Master maneuvers :) Darnit Fighers!

thanks for the response Guru, I'd tried to do a secondary on a wizard but found it easier to do Tertiary with my copied code.

Looking at the addendum, I'm not sure where I'd put the expression fields...oh looking the community files it I see Scout's Favored Terrains and Arcane Arrows in the quarternary spot and all showing up with my runes. It's a reces peanutbutter cup of features.

Is there a way to hide features based on the Subclass?
 
Last edited:
This is all theory since I haven't tried it yet, but in the code where you set up your progression you would have to have a statement like:

linkage
.field[cCstS5Expr].text &= " & abCategory.CATID"

where you are appending the text above to the search string. CATID is the category tag for the ability that you create/choose for the abilities.

Like for example the Arcane Shots for the Arcane Archer all have the tag abCategory.FtrAAShots in the XGtE community source file.

The issue here would be that you have to do that for every subclass that has been created by the community so that the tertiary/quartenary/quintenary abilities only show up for the category you want to see.
 
Well, I tried this -

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

linkage
.field[cSpec4thNm].text = "Arcane Shots"
linkage
.field[cSpec4thSi].text = "Arcane Shot"
linkage
.field[cCstS4Expr].text &= " & abCategory.abCategory.FtrAAShots"

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

And it did not separate my Arcane arrows from the Favored Terrains. I could have put it in the wrong place...

This is Post-Levels, Priority 9000
 
Well, 1st issue is that the syntax is wrong, the line should read.

Code:
linkage[table].field[cCstS4Expr].text &= " & abCategory.FtrAAShots"

Second issue is with timing, which I figured out by playing with it.

For my files and testing, I made my "runeguard" and arcane archer both have Quaternary abilities.

My intial script changes didn't work so I dug around and looked at the timing report. It seems that LoneWolf runs a script at Final/9999999 that initializes cCstS4Expr's text field. So, that means you can't play with the field until right after that.

So I took the line I suggested out and put it in a second script that runs immediately after LoneWolf's (at timing Final/10000000)

Example 2nd script:
Code:
doneif (tagis[Helper.Disable] <> 0)

linkage[table].field[cCstS4Expr].text &= " & abCategory.FtrAAShots"

This worked, now my arcane archer doesn't see anything but arcane shots for the quaternary ability. I did the same to my runeguard and now it can't see the arcane shots and only the runes.
 
Sweet...not sure how I doubled up on the abCategory but hey, it's me Not surprised.

Edit: And that totally worked. Thank you again!
 
Last edited:
Back
Top