Jump to content

A way to add AWC Perks to a column of their own?


ArunnyE

Recommended Posts

I'm trying to figure out a way to add a third column to each soldier class, which calls upon the AWC Perk pool, assigning a set of unique options for each character.

 

This will create a kind of pseudo-Training Roulette system, where every class has two columns of set abilities, and one randomized that you can pick from as you see fit. This avoids the issues present in XCOM:EU/EW, but maintains a degree of control that is completely missing from XCOM2.

 

I was thinking that I'd be using the Enhanced Perk Tree mod, but I can't seem to find a way to call upon the pool of AWC perks, after poring over the .ini:s. Any suggestions?

Link to comment
Share on other sites

The EPT mod appears to be graphical only. That is, it is a great new display for existing information, but it doesn't add or change any information. I haven't found another mod which changes the way perks are assigned yet. You may try looking at the "True retroactive AWC" mod in steam workshop; maybe this will give more direct leads.

Link to comment
Share on other sites

I'm also working on a similar mod. Take a look at the source for Long War's leader pack, too. You'll have to create a GameState object to persist the randomly selected option at each rank for each soldier, and then find basically every usage of the GameState_Unit's SCATProgression to see where you need to extend it to read a union of the base ability tree and your custom rando-selection.

Link to comment
Share on other sites

Some creativity is going to be required.

 

The way perks work currently is that they're a property of whatever the soldier's ClassTemplate happens to be - if you want to give a soldier a perk, it has to be one somewhere in the ClassTemplate's ability tree. The exception is AWC perks, which can be any perk you want, but these are not respected by any current promotion UI for purposes of consuming level-ups (barring the bug involving consuming choices already in the soldier's ability tree), and of course (currently) get auto-granted as soon as you get the right rank.

 

You could potentially co-opt the AWC data mechanism to get it to do what you want (e.g. have the structure store your column of randomly chosen perks, and change EPT to disable auto-grant and make those buttons clickable and do "The Right Thing"). I might be convinced to add the necessary points of integration in EPT once I get the opportunity.

 

Otherwise, the solution would involve adding your own per-soldier GameState and doing some other voodoo; because the normal ability tree is linked to the ClassTemplate it's not easy to do anything resembling classic TR.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...