Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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[table].field[cCustTeTot].arrayvalue[2] += 2 linkage[table].field[cCustTeTot].arrayvalue[6] += 3 linkage[table].field[cCustTeTot].arrayvalue[9] += 4 linkage[table].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. |
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
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 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. |
#2 |
Senior Member
Join Date: May 2016
Posts: 608
|
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 |
#3 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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 by Enforcer84; June 3rd, 2020 at 09:55 PM. |
#4 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
I moved it to Spec5, but now I have the scout abilities to deal with...
|
#5 |
Senior Member
Join Date: May 2016
Posts: 608
|
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[table].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. |
#6 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
Oooh cool! I'll give that a shot this weekend. Let you know how it goes.
|
#7 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
Well, I tried this -
doneif (tagis[Helper.Disable] <> 0) linkage[table].field[cSpec4thNm].text = "Arcane Shots" linkage[table].field[cSpec4thSi].text = "Arcane Shot" linkage[table].field[cCstS4Expr].text &= " & abCategory.abCategory.FtrAAShots" 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 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 |
#8 |
Senior Member
Join Date: May 2016
Posts: 608
|
Well, 1st issue is that the syntax is wrong, the line should read.
Code:
linkage[table].field[cCstS4Expr].text &= " & abCategory.FtrAAShots" 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" |
#9 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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 by Enforcer84; June 20th, 2020 at 12:14 AM. |
#10 |
|
|