XCOM 2
[WOTC] Additional Soldier Console Commands
272 comentarios
Valkerion™ 4 OCT a las 14:08 
ResetSelectedSoldiersClass doesn't fix these stat increases either, still sets them higher than before.
(I am using LWOTC btw)
Valkerion™ 4 OCT a las 13:57 
I don't see RebuildSelectedSoldiersClass giving my whole barracks XP, but I do have their HP, will, and aim constantly going higher and higher on each use, which is a problem.
Unit probably shouldn't have 84 hp, 112 will and 348 aim.
shiremct  [autor] 28 SEP a las 17:10 
Important update - RebuildSelectedSoldiersClass now attempts to retain any stat changes a unit has from randomized stat sources, covert ops bonuses, etc. This was a long-requested feature, so now if you need to rebuild a soldier mid-campaign, they will no longer lose their existing identity and earned bonuses!

A new command was added, ResetSelectedSoldiersClass, that resets everything as before when this is needed/desired.
Canthyse 3 SEP a las 10:43 
As others were pointing out, RebuildSelectedSoldiersClass its giving XP and free Stats to the selected soldier (not all barracks). Every time you use it, the soldier keeps accumulating stats. It doesnt matter if injured/tired. It doesnt go back to the original stats.
Really gamebreaking if you modify your soldiers a lot or the class mod author updates.
A temporal fix would be using the SetSelectedSoldierStat command and manually change to the original values after the Rebuild. But still the XP gain, i dont know how to fix that.
KrzepkiSzpinak 30 AGO a las 0:40 
RebuildSelectedSoldiersClass is now granting xp to whole barracks for some reason..
Daddy Kaneki 16 MAY a las 3:35 
I just discovered a bug: Using RebuildSelectedSoldiersClass on a soldier who has temporarily modified stats (injured/tired, for example) the stat will BECOME PERMANENT. So it is best to wait until the soldier is fully healed and refreshed before using this command.
EzT 8 ABR a las 14:19 
Also, you remove progress by destroying the red facilities. Some missions also reduce avatar project as a reward. Covert actions is also a good way if you have WOTC
EzT 8 ABR a las 14:18 
This mod does not, but there is one by default. Do "RemoveFortressDoom <int>"
Rea 8 ABR a las 14:14 
Hey, does this mod have a command to reset the Avatar Project? I'm just starting out and I have no clue how the sabotage missions work. I don’t get any, and I keep scanning spots over and over but nothing triggers. Would be nice to have a safety option, just in case.
Agane 9 MAR a las 15:46 
Godbless this mod. Saved me many soldiers from my modding mistakes 🙈
Jestimac 11 ENE a las 6:51 
I would like to generate 4 new recruits. Is there a console command allowing to do this ?
Jestimac 10 ENE a las 21:09 
@ChrisZero
Hello. After getting stuck myself, I finally found what was wrong.
The command lines that works are
SetSelectedSoldiersComInt eComInt_gifted
SetSelectedSoldiersComInt eComInt_genius
SetSelectedSoldiersComInt eComint_savant
I don't know the names to set "very poor" and "poor", but I assume noboby would want to modify the soldiers in order to make them dumb ;)
These commands seem to work. I would suggest setting all soldiers as "savant" would be cheating.
I have not seen what happens when combat intelligence is increased through the game after resetting it, but I don't see why it should cause problems.
ChrisZero 2 ENE a las 23:59 
@Dragon I agree with you. But i dont know what i do wrong... Thats why i ask here for help.
I start the game out of steam. When i rightklick in steam on X-Com 2, I select properties.
Then i go to workshop. There are all mods listed. Actually this mod is the only mod i have installed. It have a green arrow ( marked as active ). But it is absolutely clear, that i do something wrong or miss something ... But i dont know what...
Dragon32 2 ENE a las 13:20 
@ChrisZero
There's a difference between a mod being in a list of mods that could be enabled and it being enabled. If the mod is enabled then I don't know what your problem is, the command looks right syntactically.

If that command didn't work I'd expect it to have been mentioned before in the 6 years since it was added.
ChrisZero 2 ENE a las 12:21 
@Dragon
As i initially wrote: The mod is shown in the mod list.
It is marked as active.
Dragon32 2 ENE a las 12:09 
@ChrisZero
Did you activate the mod in whatever launcher you use? That error implies it's not enabled.
ChrisZero 2 ENE a las 12:03 
@Dragon32 I tried all between 0 and 4.
The Logwindows says :
[0072.03] Log: Command not recognized: SetSelectedSoldiersComInt 3
Dragon32 2 ENE a las 11:12 
@ChrisZero
What value are you passing it?
ChrisZero 2 ENE a las 10:41 
SetSelectedSoldiersComInt command is not working.. Mod is shown in the mod list. ( my only mod i have ) Any idea why?
Dragon32 14 OCT 2024 a las 7:35 
@SuffeR
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Probably integer
SuffeR 13 OCT 2024 a las 19:40 
And also I'm not sure why, but the command I previously mentioned isn't working.
SuffeR 13 OCT 2024 a las 19:38 
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Helios 1-1 22 SEP 2024 a las 10:52 
For some reason it doesn't show up in my mod list but works in game somehow.
Overclocked Testicle 6 AGO 2024 a las 11:08 
It worked just fine for me on LWOTC mod jam+
Ishkabeebee 28 MAR 2024 a las 17:39 
@Lokolaki Thank you so much! Really appreciate it
Lokolaki 5 MAR 2024 a las 21:58 
Here how to make Psi Op to get all abilities despite limitations with LWOTC mod:

1) Reset class - MakeSoldierAClass "Name Surname" PsiOperative
2) Lvl up - RankUpPsiOp Name Surname
3) Profit
Ishkabeebee 22 DIC 2023 a las 10:15 
Having difficulty with this mod and LWotC, specifically with Psi Ops. I can increase their rank, but it neither gives them any new abilities, nor allows them to train in the Psi Lab. Any help anyone can offer?
Dragon32 24 SEP 2023 a las 10:58 
@Gargamel The Despoiler
Are you using Alternate Mod Launcher? Try exiting and re-starting Steam, it seems to be a bit rubbish at actually downloading stuff these days.
Gargamel The Despoiler 24 SEP 2023 a las 10:25 
this doesnt even show up in my mod list what the fuck
Riuru 14 JUL 2023 a las 13:50 
Doest work with LWOTC
kajerlou1 15 ABR 2023 a las 23:21 
I subscribed and it broke a bunch of my mods immediately causing me to crash at bootup. Even after unsubscribing it is all jacked up. Now I'm coming through logs trying to figure out the damage.
zin 12 ABR 2023 a las 18:27 
Could you please add a command that lets you remove negative effects such as any form of panic from a soldier in tactical? That would be wonderful!
Snake 966 30 MAR 2023 a las 8:11 
The Boost Mod is Soldier Development. Be careful using it with Soldier Conditioning, or you can just edit the fixes using this tool, but it is a hassle still keeping track in battles.
Snake 966 30 MAR 2023 a las 7:49 
Wow what a great tool. There is a mod conflict between soldierconditioning and another mod that gives boosts based on actions. The boot resets the ability to the original (pre-conditioning) value. Your tool makes it sooooo easy to fix.

When you have used it sucessfully once, all you have to do in cheat is use your arrow to scrow up and its there already typed in. (Capitalize exactly where it says though)
Leenday 5 DIC 2022 a las 5:34 
Unfortunately botches LWOTC soldiers that had multiple non-xcom row skills (accessed by Second Wave option) by making rebuying prices inflated as stated below. Otherwise works perfectly fine. Also basically avoidable if you respec them through training center and THEN reroll.
IscaRIOT 13 NOV 2022 a las 14:54 
I tried using this after I discovered that I really didn't like a skill I'd chosen in LWOTC, where I allowed normal skills to be bought through the training centre with AP. It worked fine, but when I rebought the additional skills I had used before, the costs were all wrong. It hadn't reset the counter on bought skills, so their price was inflated as though I had bought them all twice.
Layth36 28 OCT 2022 a las 7:49 
Forgot to mention that I only tried it on soldiers that were already assigned a class, I didn't try it on rookies so not sure how it would work with a rookie.
Layth36 28 OCT 2022 a las 7:48 
I can confirm that this mod works flawlessly in LWOTC, tried it in half of my soldiers and they ranked up normally as if they would after battle. First ability costs 0 point and the rest must be bought with point as usual. So the mod works perfectly.:steamthumbsup:
Arkay 12 OCT 2022 a las 9:08 
@Ain Soph At least in LWOTC this isn't working. Technically, they do level up, but don't gain new abilities as far as I can tell.
WeeWooJ316 3 OCT 2022 a las 10:54 
@templar0396 After launching AML, go to Options, then Settings, & under Active arguments type -allowConsole

That should be all you need to do. The buttons to use it are either backslash(button below backspace) or tilde(button to the left of 1 & above tab).
templar0396 1 SEP 2022 a las 15:16 
Hi, anyone can help me? I can't seem to enable to console.. I tried everything I can find online like adding -allowconsole -log -autodebug but it still doesn't help..
Dragon32 1 SEP 2022 a las 7:03 
@Blak-Dragon
That sounds like a mod rather than a console command to me, you'd need the SDK
https://www.reddit.com/r/xcom2mods/wiki/index/
Blak-Dragon 22 AGO 2022 a las 8:05 
What command or config would I need to edit to allow Spark class types to earn Combat AP after missions ? Rather than having to spend XCOM AP.
Ain Soph 21 AGO 2022 a las 21:55 
PSI Rank up

1. Armory

LevelUpSelectedSoldier 6

2.

RankUpPsiOp "soldier name"
Example : RankUpPsiOp Alessia Costa
The NiF 19 JUN 2022 a las 10:06 
Yes I have that issue too.
philmakerguy 25 MAY 2022 a las 8:25 
Is anyone else having an issue where you can't train psi ops in the psi lab and can't rank any up with console commands?
Wander 23 MAY 2022 a las 22:40 
A nice mod. However, when I tested commands related to stats, it "adds" the new value on the original value, instead of "setting" the new value.
lordravenx 26 ABR 2022 a las 13:57 
Command Suggestions:
AddSelectedSoldiersStat <Trait> - adds the given trait
RemoveSelectedSoldiersStat <Trait> - removes the given trait
RemoveAllTraitsFromSelectedSoldier - removes all traits
HealSelectedSoldier - heals the selected soldier to full
RestoreWillSelectedSoldier - restores the will to full and removes the 'tired' state
MikeWazowski 8 ABR 2022 a las 8:09 
thanks for this. i was wanting to make 1 soldier level up due to them illing so many aliens in 1 mission but due to default game, they only leveld up once
Bethrezen 4 MAR 2022 a las 10:40 
It seems not working for psi-agent.
It`s rebuild it. yes, but i cant learn all skills after it.