Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Need to adapt some code...can't find field name.. (http://forums.wolflair.com/showthread.php?t=64398)

Enforcer84 June 1st, 2020 02:11 PM

Need to adapt some code...can't find field name..
 
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.

dungeonguru June 2nd, 2020 04:52 AM

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.

dungeonguru June 2nd, 2020 05:01 AM

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

Enforcer84 June 3rd, 2020 09:12 PM

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?

Enforcer84 June 3rd, 2020 10:32 PM

I moved it to Spec5, but now I have the scout abilities to deal with...

dungeonguru June 5th, 2020 08:10 AM

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.

Enforcer84 June 11th, 2020 07:52 PM

Oooh cool! I'll give that a shot this weekend. Let you know how it goes.

Enforcer84 June 11th, 2020 08:59 PM

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

dungeonguru June 12th, 2020 05:47 AM

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.

Enforcer84 June 20th, 2020 12:12 AM

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!


All times are GMT -8. The time now is 09:07 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.