While playing, press  tilde to bring down the console, then type any of the following codes:
Units are 10 cheaper.
Walls will crumble.
Add money. = amount.
Code: addpopulation Y X
Adds population, where Y is the settlement name and X is the amount.
Code: autowin attacker/defender
Attacker or defender automatically wins the next auto resolved battle.
Code: createunit settlement/charactername unitID amount exp/armour/weapon
Creates a unit in the selected settlement or characters army with the stats you input.
Code: givetrait characternname traitname level
Gives the character the trait at the chosen level.
Code: processcq settlement
Finished the building queue in the settlement.
Lists all traits.
Code: movecharacter Z X,Y
Moves character to location, where Z is character name and X Y are coordinates.
Code: givetraitpoints charactername traitname points
Gives points for the character&65533;s trait.
Code: forcediplomacy accept/decline/off
Forces opponent to accept diplomatic proposal.
Code: invulnerablegeneral charactername
General is invulnerable in combat.
Code: date year
Code: killcharacter charactername
Kills selected character.
Code: season summer/winter
Code: capturesettlement settlementname