XCOM 2
28 ratings
[WOTC] Training Restrictions
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
211.637 KB
Nov 17, 2023 @ 12:46am
Nov 17, 2023 @ 11:29pm
2 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Training Restrictions

In 1 collection by lordabizi
LordAbizi's War Of The Glass
28 items
Description
Training Restrictions
Originally posted by ChatGPT:
This class seems to play a crucial role in determining whether a unit is qualified for a particular training based on various conditions such as abilities, character templates, unit values, and class identifiers. It also manages the compatibility of different training types for a soldier.
Abstract
LW1 had a mechanic in which Officer Training, Gene modding, Psionic training, and Mec Trooper augmentation had some mutual exclusivity between them. This mod ports this mechanic to WOTC.


Overview
Over the recent years, mods added ways to "train" soldiers in certain ways: psionic training, mec trooper augmentation, gene modding, officer training, and others. With time, it becomes somewhat of an inconvenient way for each mod to account to whether or not soldiers trained in some training from a different mod can also do the training from this mod. The mod presented here tries to simplify such interactions by doing them in a centralized way.

Thid mod allows users to define "types of training", based on some ways to identify soldier who has this training. For example, a Psionic can be defined as someone who is of the PsiOperative class. Or, if the user plays with PEXM, then a Psionically Graded soldier is one that has one of the Clarity Of Mind abilities. Then, the user can speicfy for each training types, what other training types are incompatible with it. It is important to note that this mod can only REDUCE the number of options, but not increase them: if a given mod's own logic disallows soldiers of certain type to go into training, then this mod CANNOT override that logic. This is just a consequence of the truth table of the OR and AND connectors, and some common sense. In a sense, this mod is simply a glorified book keeping device for house rules - nothing that this mod does the user can't achieve by just employing house rules.

By itself, this mod does nothing.


Configuration
Of course. All definitions of training types and their mutual exclusivity are handled by configs alone. There are detailed examples in the configs. In the folder 00TrainingDefinitions certain training types are defined, based on popular mods, and are ready to be used.
In 1ExampleRestrictionsDisabledByDefault some basic incompatibility rules are defined, to demonstrate the process. For example, the basic rules of LW1 are mimiced in this config, but IT IS DISABLED BY DEFAULT.
The user is ENCOURAGED to thoroughly read the instructions in that config, and warnings, before uncommenting it.

In principle, this mod can even be used to make refine the rules as to which units can go on covert actions, since covert actions also use a staff slot, and this mod can edit staff slots.



Compatibility
The configs already include definitions of training types from certain popular mods. These include:
However, adding new training types does not require any addition from me, so users can add it themselves. If you need help figuring out how to "define" a new training type from a mod which is not supported, feel free to ask.



Required Mods
Mods required are mods.


Known Issues
None so far, but the approach in this mod is somewhat experimental, so who knows.
Should be safe to add or remove mid campaign, to the best of out knowledge.




Acknowledgements
The author would like to thank ChrisTheThinMint for the discussions that lead to this mod's creations.
The author learned from Xymanek the "closure trick" used in this mod's code, as well as how to create custom Templates, which is what makes this mod work.
The author would like to thank the users of the MEME Discord Server for the continued emotional support.
Let there be peace in our times, Hamas is ISIS.
4 Comments
Stukov81-T.TV Nov 18, 2023 @ 2:49pm 
Thanks for the work Mr Author
lordabizi  [author] Nov 17, 2023 @ 10:30pm 
I never really played with augmentations, but if there are unique abilities or unit values related to augmentations, then you can use those to define augmented people. Then you can restrict them from other activities
Since augmentation doesn't require a staff slot, it's impossible to restrict other people from being augmented
The logic is: if you can describe "something" it with a class, character template, unit value, or an ability: then you can restrict "something" from places
if "something" has a staff slot - then you can restrict other people from doing "something"
Vaultwulf Nov 17, 2023 @ 2:12pm 
Another quality release from LordAbizi! :steamthis: