[WOTC] Choose My Class
A lighter alternative to Commander’s Choice, Choose My Class lets you choose from a random selection of 3 (# is configurable) classes when a rookie gets promoted, without laying out every single option available. It’s a middle-ground between NO choice (base game) and ANY choice (Commanders Choice). It’s similar to the promotion mechanics in EU/EW.
Makes a good companion mod to [WOTC] Use My Class – by default, the first class option will be reserved for the class specified in the unit’s character pool template, if applicable and available (this behavior can also be toggled to always fully random choices, if desired).
Designed to work with [WOTC] Disable Any Class GTS Redux, an easy way to manage enabling/disabling individual classes without worrying about config changes being overwritten during updates.
The options available to a soldier may change a bit when either adding/removing new classes from rotation, changing relative weights of classes (class NumInDeck values), or toggling the UseMyClass option reserving the first choice to the character pool defined class. This is all by design – in general, you are stuck with the handful of options from the pool given to each soldier, but changes to the pool of available classes WILL get filtered in. Adding, removing, and updating mods shouldn’t break your unpromoted rookies.
- You CAN run it alongside Commander’s Choice, but you really shouldn’t. Use -1 in the config for NumClassChoices if you want behavior similar to Commander’s Choice where all valid and available classes can be chosen.
- This is heavily based on Commander’s Choice and has many of the same minor issues (using the arrow keys on a class’ ability tree to navigate to a promotable rookie will promote them randomly like the base game, etc.).
- Uses a pseudo-random roll to prevent the class options from re-rolling every time you click the button – works well, but the complexity of that roll may need to be increased in the future if strong patterns become apparant over time (like the first units of campaigns always rolling similar options, etc.) – let me know if things start to get too predictable.
This is largely based on Commander’s Choice, so credit to those guys for amazing work on a long-time staple. Also big thanks to robojumper for helping point me in the right direction for storing the available choices with the pseudo-random rolls and thanks to FearTheBunnies for code support.
(See Change Notes for full history)
- 1.2.0:
- Added config to enable alphabetical sorting.
- Updated config comments and streamlined code handling to better support NumClassChoices = -1 for allowing to choose from all available classes. Alphabetical sorting is always used with -1.
- When bUseMyClass = true, the character pool class will always be top of list, even with sorting enabled.
- Updated the choice selection formula to accomodate situations where there are more than 100 choices (Amalgamation). Thank you to Tedster for identifying the issue and suggesting a simplified formula!
- Updated random number generation formula to pull in some additional parameters. Now works with LWOTC where the starting unit ObjectIDs are always the same.
- Added support for Rusty’s Disable Any Class GTS Redux. Removed support for original version of Disable Any Class (didn’t work consistently anyway).
1.1.0:
1.0.8:
Required items:
Click the title to search on this site.
X2WOTCCommunityHighlander v1.30.4 — Steam Workshop
Revisions:
Old revisions of this mod are available below. Click the link to download.
