Advertisement
tjd802

XCOM2 Console Commands 2025

Mar 24th, 2025
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.82 KB | None | 0 0
  1. giveresource [resource id] [amount]
  2. additem [item id] [amount]
  3. SkipAI
  4. killallais
  5. DeactivateDarkEvent <DarkEventName>
  6.  
  7. ARFMRemoveRequiemFromUnit TraitTemplateNameGoesHere, UnitNameGoesHere
  8. ARFMRemoveBadTraitsFromUnit UnitNameGoesHere
  9. RebuildSelectedSoldiersClass OPTIONAL_ChangeClassTo[FName] OPTIONAL_SetRankTo[INT]
  10.  
  11. RebuildAllSoldiersClass
  12. LevelUpSelectedSoldier 2
  13. ReloadWeapon
  14. HealSoldier
  15. FixSoldier
  16. ListSoldiers True
  17. resetcamerastack
  18. KillClosestEnemy
  19. KillAllEnemies
  20. AIDebugPatrols
  21. X2DebugBehavior
  22. ForceAbortSelectedInfil (on Mission geoscape)
  23.  
  24. TheLost
  25. eTeam_Two
  26. eTeam_One
  27. eTeam_Alien
  28. eTeam_Neutral
  29. eTeam_Resistance
  30. eTeam_XCom
  31.  
  32. DamageWholeTeam 99 eTeam_One
  33. DamageWholeTeam 99 eTeam_TheLost
  34. DamageWholeTeam 99 eTeam_Two
  35. DamageWholeTeam 99 eTeam_Alien
  36. DamageWholeTeam 6 eTeam_Xcom
  37. DamageWholeTeam 3 eTeam_Xcom
  38.  
  39. EndBattleForceWin
  40.  
  41. MEME_GiveSoldier Firstname Lastname
  42.  
  43. ShowActiveLightingMap
  44.  
  45. ForceLightingMap
  46. EnvLighting_Day
  47. EnvLighting_NightSky_Bright
  48. Wilderness
  49. EnvLighting_NightSky_Terror_Bright
  50. EnvLighting_CityCenterNight_SHELL_Bright
  51. Abandoned
  52.  
  53. RebuildSelectedSoldiersClass MZPatchworkProf
  54.  
  55. GiveContinentBonus ContinentBonus_LocationScout
  56.  
  57. ExportCurrentCharacterPool
  58. ExportAllBodyPartTemplatesToFile
  59.  
  60. Base Game
  61. AddItem [item id] [amount]
  62. AddItem Supplies 100 Receive 100 supplies
  63. AddItem Supplies -100 Remove 100 supplies
  64. aichangejobs
  65. AiDebugAi
  66. aidebugjobs
  67. BondSoldiers ["soldier name"] ["soldier name"] [true / false]
  68. ChangeList
  69. degugspawningtoggle
  70. dropunit [UNIT]
  71. dumpconsolecommands
  72. fogdensity INT
  73. ForceCompleteObjective [objective id] (Strategy Only, can break stuff)
  74. ForceCritHits
  75. GiveAbilityCharges
  76. GiveActionPoints [amount]
  77. GiveContinentBonus [continent bonus id]
  78. GiveEngineer [level]
  79. GiveFacility [facility id] [avenger/map index]
  80. GiveFactionSoldiers
  81. GiveHackReward [hack reward id]
  82. GiveResource [resource id] [amount]
  83. GiveScientist [level]
  84. GiveTech [tech id]
  85. HealAllSoldiers
  86. KillAllAIExceptClosestUnitToCursor
  87. KillAllAIs
  88. killclosestunittocursor
  89. LevelUpBarracks [amount]
  90. listsounds
  91. listtextures
  92. MakeSoldierAClass ["soldier name"] [class id]
  93. PowerUp
  94. RemoveFortressDoom [amount]
  95. RestartLevel
  96. RestartLevelWithSameSeed
  97. savescum
  98. screenshot
  99. setregionreslevel 3 (gives radio relay)
  100. SetSoldierStat setsoldierstat [stat id] [value] [soldier name] [0 / 1]
  101. SetStratagyFacilitiesFree All facilities free, toggle with on/off
  102. SetStratagyFacilitiesInstantBuild Ability to build facilities instantly, toggle with on/off
  103. SetStratagyFacilitiesSuperSpree Ability to build all facilities instantly for free, toggle with on/off
  104. SetStrategyFacilitiesUnlockAll Ability to build all facilities, toggle with on/off
  105. SkipAI
  106. slomo INT [Speed]
  107. TakeNoDamage All units invincible
  108. TakeNoDamage
  109. TATC; Set Cursor for all Allies
  110. ToggleFOW
  111. ToggleGodMode;
  112. ToggleRain
  113. ToggleSquadConcealment
  114. ToggleSquadConcealment;
  115. ToggleUnlimitedActions
  116. ToggleUnlimitedAmmo
  117. ToggleUnlimitedAmmo;
  118. TTC; Set Cursor for Unit
  119. X2DebugMap
  120. x2debugvisibility
  121.  
  122. Resources (vanilla)
  123. AlienAlloy
  124. EleriumCore
  125. EleriumDust
  126. Intel
  127. Supplies
  128.  
  129. [WOTC] MEME Give Soldier Command
  130. https://steamcommunity.com/sharedfiles/filedetails/?id=3175768314
  131.  
  132. MEME_GiveSoldier Firstname Lastname - will search your character pool for this character as an xcom soldier, and create them if they exist. If not found, or not an xcom soldier (templar etc) it will FAIL.
  133.  
  134. MEME_GiveSoldier Firstname Lastname true - If no matching xcom soldier is found, a new randomised Rookie will be created with the set First/Last Name
  135.  
  136. MEME_GiveSoldier Firstname Lastname true CharacterTemplate - will search your character pool for this as character a (Xcom/Templar/Reaper/Spark/Skirmisher/Proxian/etc) soldier, and create them if they exist. If not found, or not that soldier type, a new randomised FactionSoldier will be created with the set First/Last Name
  137.  
  138. MEME_GiveSoldier Firstname Lastname true CharacterTemplate # - As above, but sets the soldier's rank.
  139.  
  140.  
  141. XPanD Tactical commands:
  142. https://steamcommunity.com/sharedfiles/filedetails/?id=3113132590
  143. Tactical commands:
  144. EndBattleForceWin
  145. Attempts to force-complete all objectives, and then ends the mission.
  146.  
  147. HealSoldier [target non-allies instead?]
  148. Fully heals the closest unit, wakes them up if unconscious and removes bleed-outs.
  149.  
  150. FixSoldier [target non-allies instead?]
  151. Refreshes the closest unit's will, restores AP and removes negative statuses.
  152.  
  153. RepairSoldierArmor [target non-allies instead?]
  154. Repairs any shredded armor on the closest unit, and refreshes any shields.
  155.  
  156. KillClosestEnemy [target neutral units?] [target allies instead of enemies?]
  157. Kills the closest enemy to the cursor. Handles stuff like mind control and regeneration properly.
  158.  
  159. KillAllEnemies [target neutral units?] [target allies instead of enemies?]
  160. Kills all enemies on the field. Save first, potentially very dangerous! (especially with arguments)
  161.  
  162. DropSoldier <full name of unit, no nickname>
  163. Drops an undeployed unit into combat at the cursor, using whatever equipment they last had.
  164.  
  165. Debug: DropRandomSoldiers <number of soldiers>
  166. Attempts to drop in the specified amount of units. Requires names to follow the "Random #" format from GiveRandomRookies, and always starts at 1.
  167.  
  168. Strategy commands:
  169. HealSoldier
  170. Fully heals the selected soldier or SPARK.
  171.  
  172. FixSoldier
  173. Restores the selected soldier's will, and removes status effects like Tired/Shaken.
  174.  
  175. BondSoldier <full name of second unit, no nickname>
  176. Increases the bond between the selected soldier and the targeted one by one level.
  177.  
  178. UnbondSoldier
  179. Breaks all of the selected soldier's current bonds.
  180.  
  181. SetSoldierAP <amount>
  182. Sets the selected soldier's number of personal (non-XCOM) ability points.
  183.  
  184. RandomizeSoldierNickname
  185. Randomizes the selected soldier's nickname. Uses the base game nickname lists.
  186.  
  187. SetSoldierNickname <nickname>
  188. Sets the selected soldier's nickname, even if they're not eligible for one yet. Allows illegal characters and >11-character nicknames, apply at your own risk! (very stable in tests, but yeah)
  189.  
  190. SetSoldierFirstName/LastName <name>
  191. Sets the selected soldier's first or last name. Also allows illegal characters and long names.
  192.  
  193. Debug: HideUIFlags
  194. Hides pending notification flags, usually seen at the bottom left. Useful if they're stuck.
  195.  
  196. Debug: GiveRandomRookies <number of rookies>
  197. Spawns in X rookies with the "Random #" name format. Requires MEME Give Soldier Command.
  198.  
  199. Universal commands:
  200. RollDie <highest number>
  201. Rolls a random number between 1 and the provided number. (inclusive)
  202.  
  203. FindAbility <internal ability name, or part of a friendly name>
  204. Displays an ability's matching names, description and parent class. Can also be used to search for abilities when provided with part of a friendly name. (the one that shows in-game)
  205.  
  206. ListSoldiers [show unavailable units?]
  207. Lists all available/deployed units. Pass "true" to show unavailable units as well. (useful for CI)
  208.  
  209. Debug: DumpHelpTextOnlyAbilities
  210. Prints all abilities with valid help text but no description. (generally tactical-only stuff)
  211.  
  212. [WOTC] Additional Soldier Console Commands
  213. https://steamcommunity.com/sharedfiles/filedetails/?id=1370543410
  214. LevelUpSelectedSoldier
  215. LevelUpSelectedSoldier Ranks[INT] Example - Level up the selected unit by 2 ranks: LevelUpSelectedSoldier 2
  216. Levels up just the currently selected soldier in the armory screen. The optional Ranks parameter lets you specify how many ranks to increase (defaults to 1 if unspecified).
  217.  
  218.  
  219.  
  220. RebuildSelectedSoldiersClass
  221. RebuildSelectedSoldiersClass OPTIONAL_ChangeClassTo[FName] OPTIONAL_SetRankTo[INT] Example - Change the currently selected unit to a rank 1 (squaddie) Ranger: RebuildSelectedSoldiersClass Ranger 1
  222. Refreshes the ability tree and rerolls the XCOM abilities for the currently selected soldier in the armory screen. Used to update a class ability tree on an existing soldier that has been changed due to new mods or mod updates. Can use the optional parameters to change the soldier's class and set their rank (up or down). Refreshing a Soldier's Class will also reroll randomized stats from Point-Based NCE, Hidden Potential, etc. - unfortunately, this can't really be avoided without causing issues with all sources of stat-gains (Covert Ops, RPGO stat purchases, etc.).
  223.  
  224. Use this instead of the vanillia MakeSoldierAClass command to change classes. The vanillia command does not properly support things like Beta Strike, NCE, XCOM/AWC Abilities, etc. Also supports classes that use the Highlander's ClassesExcludedFromAWCRoll functionality.
  225.  
  226.  
  227. RebuildAllSoldiersClass
  228. RebuildAllSoldiersClass
  229. Refresh the soldier's ability tree and XCOM abilities for All soldiers in the barracks. Does not change class or rank.
  230.  
  231.  
  232. SetSelectedSoldiersStat
  233. SetSelectedSoldiersStat eStat_Type[BYTE] Stat_Amount[FLOAT] OPTIONAL_ModifyExistingStatBase[BOOL] Example - Change the currently selected soldier's Hacking to 50: SetSelectedSoldiersStat eStat_Hacking 50 Example - Modify the currently selected soldier's Will by +20: SetSelectedSoldiersStat eStat_Will 20 true
  234. Sets the currently selected soldier's eStat to the specified value or, if the optional bool OPTIONAL_ModifyExistingStatBase is set to true, modifies the existing base stat by the specified value.
  235.  
  236. SetSelectedSoldiersComInt
  237. SetSelectedSoldiersComInt eComInt_CombatIntelligence[BYTE] Example - Change the currently selected soldier's Combat Intelligence to Gifted [2]: SetSelectedSoldiersComInt 2
  238. Sets the currently selected soldier's Combat Intelligence level - use a value between 0 (standard) and 4 (savant). This will try to adjust the soldier's AP accordingly and WILL adjust it into the negative if you drop Combat Intelligence and have already spent the AP (meaning the next ability you purchase with AP on that unit will take extra XCOM AP to cover the difference). Be careful of the resistance cards that boost AP gain - it will calculate expected AP values based on the current value.
  239.  
  240.  
  241.  
  242. Grimy's Console Commands
  243. https://steamcommunity.com/sharedfiles/filedetails/?id=693790751
  244.  
  245.  
  246. GiveSoldierAWCAbility string UnitName name AbilityName int slot
  247. UnitName -> "Firstname Lastname" of soldier, caps and spelling matters
  248. AbilityName -> TemplateName of ability you are adding
  249. Slot -> 0 = Unknown Slot, 1 = primary, 2 = secondary, 3 = Tertiary, etc.
  250. This matters because you COULD give your pistol or sword rapid fire or something like that.
  251.  
  252. Examples
  253. Give RapidFire to a sidearm: GiveSoldierAWCAbility "Joe Chill" RapidFire 2
  254.  
  255. LevelUpSoldier string UnitName int Ranks
  256. levels up a specific soldier the specified number of ranks
  257.  
  258. DeleteSoldierAWCAbilities string UnitName
  259. removes all of a soldier's AWC abiliites
  260.  
  261. GrimySetCharacterStat ECharStatType eStat float NewStat string UnitName
  262. allows you to set the stat of any character, even if they aren't a soldier.
  263.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement