XCOM 2
58 个评价
[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.
67 条留言
XpanD  [作者] 17 小时以前 
Got that on the list along with a few other similar testing commands, no ETA on it yet though.
Merlin Jonson 18 小时以前 
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)
XpanD  [作者] 8 月 24 日 上午 1:14 
You're welcome! I do want to add a few commands like that eventually, especially now that I've gotten some practice in with Quantum Supremacy. Not sure what that'll look like (or when it'll be) yet, though.
AgisTournas 8 月 23 日 下午 2:36 
@XpanD
Thank you for this wonderful mod.
Is there a chance that you could add the "GiveSoldierAWCAbility" command (as from Grimy's Console Commands) and also create/include a new one to be able to delete a soldier ability?
XpanD  [作者] 8 月 12 日 上午 1:29 
Huge update today! Check the Change Notes page for all the goods.

(@General Anakin Skywalker: this also has the captured soldiers fix in ListSoldiers)
Chubby 8 月 3 日 下午 9:08 
Yeah, no crates but mission success still so that's good enough for me. Thanks for the mod!
XpanD  [作者] 8 月 3 日 上午 2:23 
Nope, WOTC only, sorry. It's unfortunately not feasible to keep up two separate builds for two (very) different versions of the game.

(also, worth noting -- confusingly enough, ForceCompleteObjective is only for strategy objectives and does nothing in tactical, despite what some sites say)
VanDusen 8 月 3 日 上午 1:52 
Can I get this mod to work wth xcom2/LW2? Stuck on alien activity beginning of AvengerDefense and the vanilla ForceCompleteObjective doesnt work. I can force end mission but lose ... Ironman of course. Restart Level etc. nothing works, last straw here ...
Smooth 8 月 2 日 上午 3:30 
I'll keep an eye out for an update, then! No rush, it's not a big deal. Seems like once a bond lv1 is formed they get raised to 7.5 minimum anyways, which is pretty much good enough as far as I'm concerned