XCOM 2 SetSoldierStat Command


From XCOM 2, you can find a searchable table of all 17 stat IDs below. These stat IDs can be used with the SetSoldierStat console command - documentation with samples for this command can also be found below.

Stat Name Stat ID
Armor Migration Trigger Chance eStat_ArmorChance
Armor eStat_ArmorMitigation
PCM Slot (1 to allow unit to use) eStat_CombatSims
Critical Hit Chance eStat_CritChance
Enemies Detection Range eStat_DetectionRadius
Dodge eStat_Dodge
Flanking Aim Bonus eStat_FlankingAimBonus
Flanking Critical Hit Chance eStat_FlankingCritChance
Hacking eStat_Hacking
Health eStat_HP
Mobility eStat_Mobility
Aim eStat_Offense
Psi Offence eStat_PsiOffense
Sight radius eStat_SightRadius
Melee Attack Effect Trigger Chance eStat_Strength
Max Utility Items Soldier Can Carry eStat_UtilityItems
Max Will eStat_Will

SetSoldierStat Command Documentation


setsoldierstat [stat id] [value] [soldier name] [0 / 1] Avenger

This console command can set the stat of the particular solider to the particular value. If you are using the WOTC DLC, you will also require to identify the 0/1 argument at the end of the command.

Stat IDThe ID of the soldier's stat you wish to change the value of.
ValueThe value you wish to set the stat to.
Soldier NameThe name of the soldier that you wish to set the stat of. If this command isn't working, try putting the name in quotation marks - e.g. "Caleb Murray", not just Caleb Murray.
0 / 1Only required if you are playing with the WOTC DLC. Specify '1' (without quotes) here to change the soldier's base stat. Specify '0' (without quotes here) to not change the soldier's base stat.

Examples


Below you will find the working examples of the SetSoldierStat command.


SetSoldierStat eStat_FlankingCritChance 100 Caleb Murray

This console command would set the critical chance when flanking for the soldier Caleb Murray to 100%.

SetSoldierStat eStat_HP 80 Adrianna Meer

This command would set the health stat of the soldier with name Adrianna Meer to 80.

SetSoldierStat eStat_Offense 90 "Amy Ryan" 1 War of the Chosen

This console command would set the Aim stat (stat ID eStat_Offense) of the character with the name "Amy Ryan" to 90. The above command example works on WOTC.