

Money is found in the value property of this structure. Using Notepad++ or your favorite editor of choice, open up the json file that the above command created, then you can tweak your save. For example, if you are tweaking save9, make a copy of save9 and call it save9.old (or save9 - Copy or whatever).ĥ. The save file CANNOT be a tactical save, the tool only works with saves that occur in your base. Go to your save directory and run the following command in command prompt or PowerShell: `xcom2json.exe save#`, where # is the number of the save you want to play with. This step just makes it easier to run the commands without having to type in that long path.Ĥ. C:\Users\UserName\Documents\My Games\XCOM - Enemy Within\XComGame\SaveData). Copy xcom2json.exe and json2xcom.exe to your save file directory (i.e. Download the release from the Github link and unzip it.ģ. In steam, disable cloud syncing of saves (since you are modifying the save file there's a chance Steam will undo your changes at first).Ģ. The tool works for both Enemy Unknown and Enemy Within.ġ.

The above command example works on WOTC.You can modify your save file by using this editor tool on Github. This console command would set the Aim stat (stat ID eStat_Offense) of the character with the name "Amy Ryan" to 90. SetSoldierStat eStat_Offense 90 "Amy Ryan" 1 War of the Chosen This command would set the health stat of the soldier with name Adrianna Meer to 80. This console command would set the critical chance when flanking for the soldier Caleb Murray to 100%. SetSoldierStat eStat_FlankingCritChance 100 Caleb Murray

Specify '0' (without quotes here) to not change the soldier's base stat.įind below working examples of the SetSoldierStat command. Specify '1' (without quotes) here to change the soldier's base stat. Only required if you are playing with the WOTC DLC. If this command isn't working, try putting the name in quotation marks - e.g. The name of the soldier that you wish to set the stat of. The ID of the soldier's stat you wish to change the value of.

If you are using the WOTC DLC, you will also need to specify the 0/1 argument at the end of the command. See commands.gg/xcom2/setsoldierstat for stat IDs. This console command will set the stat of the specified solider to the specified value.
