Overview
I’m was writing down console commands for my own use. Might as well post here, in case it helps anyone else. Any suggestions are welcome.
How to activate the Developer Console
As of e1.4.2, you can just press ALT + tilde to open the console. No mod required.
This may vary, depending on your keyboard layout.
If you are playing an earlier version, you’re gonna need this:
[link]
Activating Cheat Mode
If you want to cheat, you will have to activate cheat mode.
The command is config.cheat_mode 1. Press Enter to activate.
You can deactivate cheat mode by entering the command again, but with a 0 instead of a 1.
Things to do in Cheat Mode
While cheat mode is active, the left side of the inventory screen contains 10 units of every item in the game. Just open the inventory and start filling you pockets.
There are also some hotkeys that have various effects.
On the world map:
Push again to disable.
In battle:
This is good to know, if an enemy glitches through a wall and can’t be hit.
Spawning Items
You can spawn items with the campaign.give_item_to_main_party command.
The syntax is campaign.give_item_to_main_party [ItemName] [Amount].
While you can also spawn items in the inventory screen, you can only get 10 units at a time. If you need 1000 units of something, using the console is much faster.
Spawning Troops
You can spawn troops with the campaign.give_troops command.
The syntax is campaign.give_troops [TroopId] [Number].
Type campaign.give_troops help to get a list of all available troops.
This does not show all troops in the game, though.
List of tested commands
Remember that you can type a question mark at the end of any command, to get more information about that command. Obsoive:
Hero:
If nothing is entered, gives 1000 gold to your character.
Party:
Not recommended. They’re dumbasses.
Relations:
Write faction names without spaces. Thusly:
campaign.declare_war northernempire westernempire
Settlements:
campaign.add_progress_to_current_building lycaron 100
Sets progress of current project in Lycaron to 100%. One day still needs to pass, before work is started on the next project.
Misc:
If a characters name contains multiple words, use underscores instead of spaces.
Thusly:
campaign.take_hero_prisoner sir_butterworth biggus_dickus
Result:
Sir Butterworth is taken prisoner by Biggus Dickus.
If you want to cheat more
Try this excellent mod: [link]
Questions
Does anyone know how to spawn peasants as troops?