Total War: WARHAMMER II

Total War: WARHAMMER II

Console Commands (Modding Tool) (WH2 VERSION)
 This topic has been pinned, so it's probably important
prop joe  [developer] 3 Aug, 2020 @ 12:57pm
Examples of command usage
spawn
First select a city or character to spawn the new army next to.
Units are separated by a comma, don't put a space between units.
(Steam breaks it into two lines here, but it's just a space between)

spawn wh2_main_hef_prince wh2_main_lzd_hexoatl wh_main_grn_mon_giant,wh_main_grn_mon_giant

if we're spawning for another faction:
spawn wh2_main_hef_prince wh2_main_lzd_hexoatl

or just this to spawn an army without any units:
spawn wh2_main_hef_prince

In the Character art sets table you can find agent subtypes (not the first column, check the column names). For this command you can only spawn lords, so only rows where the "agent_type" column is "general" are valid.
https://github.com/Shazbot/WH3-Dump/blob/main/db/campaign_character_art_sets_tables/data__.tsv
Last edited by prop joe; 13 Apr, 2023 @ 1:05pm
< >
Showing 1-15 of 53 comments
PhantomGirl 16 Feb, 2021 @ 8:02pm 
I'm not sure if it's just me but the other spawn commands wont work? I'm not sure if i'm doing it wrong but i copied and pasted literally almost the same thing.

spawn wh2_main_skv_warlord
Ronin 6 Mar, 2021 @ 9:35pm 
I haven't updated our mod since August. After I re-installed it, the "item" commands stopped working"
What's wrong? has the command changed or keys have changed?
example of commands that worked earlier:
item wh2_dlc15_anc_weapon_star_lance
item wh2_dlc15_anc_armour_forest_dragon_special
item wh2_dlc10_dwf_anc_enchanted_item_gate_keepers_belt
item wh2_dlc15_anc_enchanted_item_star_dragon_special
item wh2_dlc10_dwf_anc_talisman_ring_of_grimnir
item wh2_dlc15_anc_arcane_item_black_dragon_special
item wh2_dlc10_anc_weapon_the_widowmaker_3


traits do not work either (Here I suspect some kind of combat counter is used)
wh2_main_trait_attacking_victory_3
wh2_main_trait_defending_victory_3
wh2_main_trait_fighter_3
wh2_main_trait_casualties_3
wh2_main_trait_siege_victory_3
wh2_main_trait_wins_at_sea_3
wh2_main_trait_wins_against_humans
wh2_main_trait_wins_against_greenskins
wh2_main_trait_wins_against_dwarfs
wh2_main_trait_wins_against_vampires
wh2_main_trait_wins_against_chaos
wh2_main_trait_wins_against_beastmen
wh2_main_trait_wins_against_high_elves
wh2_main_trait_wins_against_dark_elves
wh2_main_trait_wins_against_lizardmen
wh2_main_trait_wins_3

forgive me for comment off topic. I cannot leave a comment anywhere other than here


help me please
Last edited by Ronin; 6 Mar, 2021 @ 9:40pm
Zinvo 22 Apr, 2021 @ 12:06pm 
If I was playing chaos how would I spawn another legendary lord from another faction onto my team? I love deathmaster snikch but I have played him for a long time but I am just getting annoyed with the rat troops I want something new with my favorite lord
EliteGamer11388 29 Apr, 2021 @ 4:24am 
Can we get a fix or advice on the ancies code? Every other code works except that one, I've tried on multiple different factions, nothing happens. Also, the mov code is bugged last I tried it, and it makes it so battles don't load and you have to force close the game in another desktop. Love the mod though.
EDIT: So I got ancies to work on Tomb Kings, as Arkhan, but this is the first time it's ever worked for me for any race, so not sure why it's suddenly working now lol, not sure though if it works on other races now or not. Only issue now with that, is it's giving me a handful of High Elf themed gear, and if I use it multiple times, I just get that same gear over and over, and they're not even showing up to equip to my characters, even though my event messages says I have them
Last edited by EliteGamer11388; 29 Apr, 2021 @ 7:46am
SYUK98 10 Feb, 2022 @ 7:38am 
how to spawn empire general? It seems like the key unit start with dlcXX and start with wh cannot spawn at all
ilya-rysenkov 19 May, 2022 @ 2:39pm 
Originally posted by SYUK98:
how to spawn empire general? It seems like the key unit start with dlcXX and start with wh cannot spawn at all

It seems we have to wait for Immortal Empires...
Freankh 21 May, 2022 @ 4:25am 
Is there a key to spwan Borgut Facebeater? Thanks.
ilya-rysenkov 21 May, 2022 @ 6:40am 
Originally posted by Freankh:
Is there a key to spwan Borgut Facebeater? Thanks.
Is he an original or mod hero?
Freankh 21 May, 2022 @ 7:10am 
He is not vanilla game. He appears in the famous "We´z secial" and "Bad Legendary Lord" and even 2 other mods.
ilya-rysenkov 21 May, 2022 @ 7:48am 
Use RPFM, find mod, then go to db - agent_culture_details_tables. He should be here. I can look for him.
ilya-rysenkov 21 May, 2022 @ 8:07am 
Originally posted by Freankh:
He is not vanilla game. He appears in the famous "We´z secial" and "Bad Legendary Lord" and even 2 other mods.

Use this: agent champion ws_borgut_facebeater

BUT!

You'lll have to rename him, probably. Because I did manage to make him for Asur, but he's named as Corian (in Russian, I play using Russin now).
Freankh 21 May, 2022 @ 9:19am 
Amazing. I´ll try tonight. Is it possible to find the savage orc agent "Goreaxe"? I can try to rename ingame or with saveparser.
Freankh 21 May, 2022 @ 9:24am 
And there is even a Giant legendary hero for Greenskins, called "Little Gork" (in Bad Legendary Lord). Would be amzing how he looks like. And there is Morglum Necksnapper, I once owned him as a miniature.
ilya-rysenkov 21 May, 2022 @ 10:16am 
Well, use RPFM, and search through mod data packs, look for agent tables, so you can find roles (general, wizard, spy, general, etc.) and inner name in game files.
Freankh 21 May, 2022 @ 2:40pm 
I did not find such a mod, called RPFM.
< >
Showing 1-15 of 53 comments
Per page: 1530 50