XCOM 2
739 avaliações
[WOTC] Additional Soldier Console Commands
2
2
2
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Tamanho
Publicado em
Atualizado em
154.235 KB
25/abr./2018 às 23:10
5/set./2022 às 10:35
9 notas de atualização (ver)
Você precisa de certos conteúdos adicionais para usar este item.

Inscreva-se para baixar
[WOTC] Additional Soldier Console Commands

Em 1 coleção de shiremct
Proficiency Class Pack Suggested Mods Collection
94 itens
Descrição
[WOTC] Additional Soldier Console Commands

Currently adds three new console commands that can be used from the armory and one command used in tactical missions. Though the commands may be used to do cheaty things, the primary purpose of these commands are to help modders test and players integrate/update mod changes in their on-going campaigns:


LevelUpSelectedSoldier
LevelUpSelectedSoldier Ranks[INT] Example - Level up the selected unit by 2 ranks: LevelUpSelectedSoldier 2
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).


RebuildSelectedSoldiersClass
RebuildSelectedSoldiersClass OPTIONAL_ChangeClassTo[FName] OPTIONAL_SetRankTo[INT] Example - Change the currently selected unit to a rank 1 (squaddie) Ranger: RebuildSelectedSoldiersClass Ranger 1
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.).

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.


RebuildAllSoldiersClass
RebuildAllSoldiersClass
Refresh the soldier's ability tree and XCOM abilities for All soldiers in the barracks. Does not change class or rank.


SetSelectedSoldiersStat
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
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.


SetSelectedSoldiersComInt
SetSelectedSoldiersComInt eComInt_CombatIntelligence[BYTE] Example - Change the currently selected soldier's Combat Intelligence to Gifted [2]: SetSelectedSoldiersComInt 2
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.

Modified from code initially provided by PZ.


ReloadWeapon
ReloadWeapon
In a tactical mission, reloads the currently selected unit's primary weapon.


Thanks and Credits
  • PZ for providing the initial code for the command to set Combat Intelligence.

Version History
(See Change Notes for full history)
    1.3.3
    • Fixed issues with XP allocation for Rebuild and LevelUp soldier commands.
    1.3.2:
    • Fixed issue with AcceptedCharacterTemplates when using RebuildSelectedSoldiersClass command for classes with CharacterTemplate limitations.
    1.3.1:
    • Fix for incorrect XP allocation when using RebuildSelectedSoldiersClass command and changing a unit's level.
    1.3.0:
    • Added SetSelectedSoldiersStat command to set or modify an eStat for the selected soldier.
    • Updated RebuildSelectedSoldiersClass command to remove any PCS chip they may have equipped and return it to the HQ inventory.
    1.2.1:
    • Small bugfix for the LevelUpSelectedSoldier command.
    1.2.0:
    • Added a RebuildAllSoldiersClass command that will refresh the ability trees and XCOM abilities for All soldiers in the barracks.
    1.1.1:
    • Added a ReloadWeapon command that will reload the selected unit's primary weapon in tactical.
    1.1.0:
    • Added the SetSelectedSoldiersComInt command (thanks to PZ).
    • Added Console feedback messages indicating errors and successful command completions.
    • Updated the RebuildSelectedSoldiersClass command to reapply stat modifiers (like Beta Strike HP, NCE stats, etc.) to the unit. Note that randomized stats (NCE, Hidden Potential, etc.) will be rerolled.
    • Updated the RebuildSelectedSoldiersClass command to enforce a class' required character templates (ex: you cant make a skirmisher character into a templar class).
    1.0.0:
    • Initial Release!.

If you think there is a need for additional commands, leave a suggestion.
Discussões populares Ver todos (4)
4
23 de jan. às 0:47
Would it be possible to add commands to break and create bonds?
Nadarith
1
5 de fev. às 13:11
Command to add/remove specific traits/abilities?
Lief
2
5/fev./2021 às 12:29
Add pls consol command for random changing class
WolfGunt
253 comentário(s)
Dragon32 14 de out. às 7:35 
@SuffeR
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Probably integer
SuffeR 13 de out. às 19:40 
And also I'm not sure why, but the command I previously mentioned isn't working.
SuffeR 13 de out. às 19:38 
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Helios 1-1 22 de set. às 10:52 
For some reason it doesn't show up in my mod list but works in game somehow.
ADVENT Testiculator 6 de ago. às 11:08 
It worked just fine for me on LWOTC mod jam+
Ishkabeebee 28 de mar. às 17:39 
@Lokolaki Thank you so much! Really appreciate it
Lokolaki 5 de mar. às 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/dez./2023 às 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/set./2023 às 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/set./2023 às 10:25 
this doesnt even show up in my mod list what the fuck