XCOM 2
[WotC] The Valkyrie Class Mod
 This topic has been pinned, so it's probably important
LaWu103  [developer] 30 May, 2018 @ 4:44pm
Making a unique Mercy character
With a few mods and some tiny config file changes, you can make sure this class is only ever used by Mercy from your character pool. Just be warned that you'll probably have to do these changes every time the mod updates.

First off, you'll need the following mods:

Open up your C drive and go to the file path
C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\1397425613
You'll know you're in the right place if the folder has a file called MercyClassMod.XComMod. Once you're in there, go to the Config folder, then open up the XComClassData file in a text editor of your choice. You should see something like this at the top of the file:

[XComGame.X2SoldierClass_DefaultClasses] +SoldierClasses = "MercyClassMod" [MercyClassMod X2SoldierClassTemplate] +bMultiplayerOnly=0 +ClassPoints=3 +IconImage="img:///UILibrary_MercyClassMod.MercyClassIcon" +NumInForcedDeck=1 ;Set to 0 to prevent being trainable/assignable (default 1). +NumInDeck=4 ;Set to 0 to prevent being trainable/assignable (default 4). +KillAssistsPerKill=3 +SquaddieLoadout="SquaddieMercy" +AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="bullpup") +AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="gremlin") +AllowedArmors="soldier" +bAllowAWCAbilities=0 +bCanHaveBonds=true +UnfavoredClasses="MercyClassMod" +BaseAbilityPointsPerPromotion=3

NumInForcedDeck and NumInDeck are what we want to change. Set both of those numbers to 0, then save the file. (For those wondering, setting these numbers to 0 is what removes the class from the random pool the game uses when promoting rookies and such. However, thanks to the Use My Class mod, the game can still assign it to soldiers who are specified to use it.)

Next, start the game and create Mercy in your character pool.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1398846545

Make sure the soldier type, soldier class, and appearance settings are identical to that of the image above. Also make sure your character pool usage isn't set to Random Only, otherwise none of your custom soldiers will be used in the game.

And that's it! With luck, you'll soon find the valkyrie Mercy in your game, whether it be through your starting rookies, soldier recruitment, or mission/black market rewards.

Optional: Resurrect voice line tweaking
For the pack I recommended, the "Heroes never die!" voice line is attached to the cue for the specialist's Restoration ability. By default Resurrect doesn't use this cue as it sounds odd with any pack that's not Mercy's, but if you want it to use it, go to the Src folder of my mod and open X2Ability_MercyClassMod. Find the function
static function X2AbilityTemplate Resurrect()
and the line
Template.ActivationSpeech = 'HealingAlly';
inside it, then change HealingAlly to RestorativeMist (keep the quotes in there though).
Last edited by LaWu103; 2 Jul, 2018 @ 7:35pm
< >
Showing 1-2 of 2 comments
Haywire 16 Jun, 2018 @ 10:26pm 
Is there a way to make the class available to just female soldiers? Or is that not easily coded? Male valkyries seems weird. lol
LaWu103  [developer] 17 Jun, 2018 @ 9:14am 
Originally posted by Haywire:
Is there a way to make the class available to just female soldiers? Or is that not easily coded? Male valkyries seems weird. lol
It might be possible, but seeing as how the base game doesn't bother with gender-specific classes the necessary code's probably out of my league. If it really breaks your immersion you can use the Commander's Choice mod to manually choose who gets to become a valkyrie.
< >
Showing 1-2 of 2 comments
Per page: 1530 50