XCOM 2
65 个评价
[WOTC] XpanD's Console Commands
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.325 MB
2023 年 12 月 13 日 上午 8:38
8 月 28 日 上午 6:47
9 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
[WOTC] XpanD's Console Commands

描述
Adds several new console commands to the game. Part utility, part developer stuff, part blatant cheating. (I won't judge)

Usage:
Angle bracket arguments ("<" and ">") are required, square bracket ones ("[" and "]") are optional. Arguments with a question mark are boolean -- they accept either "true" or "false". Debug commands are rough drafts for testing purposes.

Brackets are only used to show whether an argument is required or not. Do not include them!

This will work: SetUnitCombatStat Offense 50
This does not: SetUnitCombatStat <Offense> <50>

DropSoldier and SetUnitCombatStat are still experimental. Proceed with caution, and report any issues! (see the Change Notes page for the latest details)

Tactical commands:
EndBattleForceWin
Attempts to force-complete all objectives, and then ends the mission. See special thanks.

HealSoldier [target non-allies instead?]
Fully heals the closest unit, wakes them up if unconscious and removes bleed-outs.

FixSoldier [target non-allies instead?]
Refreshes the closest unit's will, restores AP and removes negative statuses.

RepairSoldierArmor [target non-allies instead?]
Repairs shredded armor on the closest unit, and refreshes ablative shielding.

SetUnitCombatStat <stat type to adjust> <new value>
Changes the selected stat on the closest unit to the given max value. Reverts on battle end.

KillClosestEnemy [target neutral units?] [target allies instead of enemies?]
Kills the closest enemy to the cursor. Handles stuff like mind control and regeneration properly.

KillAllEnemies [target neutral units?] [target allies instead of enemies?]
Kills all enemies on the field. If using arguments, save first! Potentially dangerous.

ToggleShowCorpses
Draws markers on the map to indicate actual corpse locations for looting, game is inaccurate. Updated every second, use again to disable. Best when paired with Extract Corpses.

ToggleShowPCPs [draw boxes at real size?]
Draws boxes and text on the map to show the boundaries of all plot cover parcels. By default, extends boxes by 50UU vertically for visibility. Best used with ToggleFreeView.

DropSoldier <full name of unit, no nickname>
Drops undeployed units into combat at the cursor, using whatever gear they had equipped last. Note that the game randomly unequips soldiers sometimes, check beforehand if possible!

Debug: DropRandomSoldiers <amount of soldiers>

Strategy commands:
HealSoldier
Fully heals the selected soldier. (or SPARK/MEC/whatever)

FixSoldier
Restores a soldier's will, and removes status effects like Tired/Shaken.

BondSoldier <full name of second unit, no nickname>
Increases the bond between two soldiers by one level.

UnbondSoldier
Breaks all of a soldier's current bonds. (yes, they can have multiple!)

SetSoldierAP <amount>
Sets a soldier's number of personal (non-XCOM) ability points.

ForceShakeSoldier
Forces a soldier into a shaken state, and sets their will to zero.

ForceSoldierWeapon <weapon template name> [replace unique weapons?]
Force-spawns a weapon onto a soldier, even if they can't equip it otherwise.

RandomizeSoldierNickname
Randomizes a soldier's nickname, picking from nicknames normally available to them.

SetSoldierNickname <nickname>
Sets a soldier's nickname. Allows illegal chars and >11-char nicknames. Seems to work fine?

SetSoldierFirstName/LastName <name>
Sets a soldier's first or last name. Also allows illegal characters and long names.

Debug: HideUIFlags, GiveRandomRookies <number of rookies>

Universal commands:
RollDie <highest number> [number of numbers to roll]
Rolls one or more random numbers between 1 and the given highest number. (inclusive)

SearchAbilityDescriptions <part of description>
Searches for abilities by their descriptions.

ListSoldiers [show unavailable units?]
Lists all available/deployed units. Passing "true" also lets it show infiltrating units.

PrintDifficultyInfo
Shows a bunch of info on the current campaign, including difficulty and when it was started.

PrintLevelInfo
Shows level/world info such as the current map name and any parcels.

ToggleFreeView
Toggles Fog of War, UI visibility and unit outlines. (plus the Better Debug Camera, if available)

Debug: DumpHelpTextOnlyAbilities, DumpDataNameOnlyUnits, DebugSetFixedTimeMult [new multiplier] [log things trying to change time?]

FindX commands:
If a template name is provided, these show any available names/description, the parent class, and any other info. Otherwise, they'll show a list of things matching the provided arguments.

FindAbility: Abilities.
FindWeapon: Weapons. Also counts heavy-slot weapons.
FindEquipment: Non-weapon equipment. (as determined by the game)
FindMiscItem or FindResource: Other items, such as resources and certain in-mission rewards.
FindHackReward: Hack rewards, and intel unlocks for "special" missions.
FindTech: Research, Proving Ground and Shadow Chamber projects.
FindUnit: Units. (nice for DropUnitImproved).
FindCommand: Console commands. Best-effort, may miss stuff. Partial matches only.

Compatibility:
No overrides and no hard requirements, should be compatible with just about anything!

(may end up requiring Highlander in the future, but that should be about it)

Other console mods:
Additional Soldier Console Commands: The de-facto mod for changing soldier classes/stats.
Xylth Debugging Tools: Allows granting abilities/kills. Check description for overrides! (dev mod)
Bstars Scope: Dumps LOTS of info to the log for the selected unit. Nice for dev/troubleshooting.
Improved Friendly Reinforcement Mechanics: Adds a nicer DropUnit, fixes AICallReinforcements.
MEME Give Soldier Command: Lets you add new rookies, either random or by name.
Amalgamation Console Helper: Adds lots of new commands for the Amalgamation overhaul.

Special thanks:
  • shiremct for Additional Soldier Console Commands. Big inspiration and a solid reference.
  • Iridar, RustyDios, Zelfana, Tedster, SwfDelicious and others for their extensive help.
  • BlackDog for contributing the EndBattleForceWin command. Finally a thing now!
  • The helpful people of the XCOM 2 Modding Discord in general.
74 条留言
crumb 11 月 17 日 上午 11:06 
This is an incredibly narrow request, but would it be possible to implement a force return to Avenger command, or do you know any way of doing this? I have an ironman save at the final mission that I want to go back to the Avenger screen from in order to get a screenshot of the soldier list in the barracks. I can't find any way of doing this. Some talented mod author is maybe my only hope!
Dragon32 10 月 31 日 下午 2:07 
What he said. :spacehamster:
XpanD  [作者] 10 月 31 日 下午 1:57 
Console is enabled with the "-allowconsole" launch argument outside of the game itself, ironman won't affect it. Assuming you're using the Alternative Mod Launcher (which you probably want to be), just go to Options > Settings and add it at the end of the "Active arguments" box. (with a space between it and the previous entry)

Once this is done, hit ` or ~ to open the big console. May be different depending on keyboard layout, just try a few keys. Make sure you use the big console, not the small single-line one at the bottom of the screen.
SlowPokeDerp 10 月 31 日 下午 1:16 
@Dragon32
Do you know of a way to enable the console in Ironman? I am hounding for it
Dragon32 10 月 31 日 下午 1:12 
@SlowPokeDerp
Yes, add the mod and enable the console in launch options
SlowPokeDerp 10 月 31 日 下午 1:00 
Is there a way to use this during an Ironman playthrough?
XpanD  [作者] 10 月 5 日 下午 3:09 
Got that on the list along with a few other similar testing commands, no ETA on it yet though.
Merlin Jonson 10 月 5 日 下午 2:50 
can you add knock out unit?
XpanD  [作者] 8 月 28 日 上午 6:51 
Aaaand another big update. (for FindX fans anyways, though ToggleFreeView got upgraded a bit too)