How to Use the Debug / Dev Console
To use the debug console, you need to turn on debug mode. You can do this with a mod or by changing game settings.
Debug mode adds two new features:
- Pressing ALT and clicking on a character kills them. Be careful when using ALT+TAB.
- The key next to [1] or above TAB opens the console. This key usually shows [`] or [~] when typed.
If you’re not familiar with game cheats, be careful. You might break your game or campaign. The console has buttons with icons that do different things. You can see what they do by hovering over them.
There are two types of console commands:
- Built-in commands that you can auto-complete by pressing TAB.
- (Effects) commands that you need to write out fully.
You can use commands to get gold, renown, prestige, or change character skills and traits. Some effects need multiple lines of code and use variables. But most effects can be done in one line.
Normal Console Commands
Add and Remove Character Traits:
- To add a trait: add_trait [trait_name] [character_id]
- To remove a trait: remove_trait [trait_name] [character_id]
Note: Sometimes you need to remove a trait before adding a new one. For example, to upgrade from “Skilled Tactician” to “Brilliant Strategist”:
- remove_trait education_martial_3 [character_id]
- add_trait education_martial_4 [character_id]
Add Lifestyle Perks to Your Character:
- add_perk accomplished_forger_perk
- add_perk flexible_truces_perk
- add_perk defensive_negotiations_perk
- add_perk scientific_perk
- add_perk cutting_corners_perk
- add_perk professional_workforce_perk
- add_perk divided_attention_perk
Set Character Skills:
- set_stewardship 20 [character_id]
- set_martial 20 [character_id]
- set_diplomacy 20 [character_id]
- set_intrigue 20 [character_id]
- set_learning 20 [character_id]
- set_prowess 20 [character_id]
Start Events:
- event harm.2001 #death by disease in encampment
- event harm.2011 #death by forced march
- event harm.2021 #death by cold environment
- event harm.2031 #death by heatstroke
- event harm.2041 #mutiny
- event destiny_child.0001 #event for child of destiny
- event destiny_child.9999 #finish child of destiny chain
Change Religion Doctrines and Tenets:
- add_doctrine tenet_adaptive
- add_doctrine tenet_monasticism
- add_doctrine tenet_mendicant_preachers
- add_doctrine tenet_armed_pilgrimages
- remove_doctrine tenet_armed_pilgrimages
Note: Adding conflicting doctrines might cause problems.
Set Character Nicknames:
- set_nick [nickname] [character_id]
- set_nick nick_the_great [character_id]
Add Lifestyle Experience:
- add_martial_lifestyle_xp 20000
- add_stewardship_lifestyle_xp 20000
- add_learning_lifestyle_xp 20000
- add_diplomacy_lifestyle_xp 20000
- add_intrigue_lifestyle_xp 20000
- add_lifestyle_xp_all 10000
- add_nht_leadership_lifestyle_xp 20000
- add_nht_prowess_lifestyle_xp 20000
ChangeCounty Culture:
- change_culture [county_id] [culture_name]
- change_culture 599 radhanite
- change_culture 562 gothic
Give Titles:
- give_title [title_name] [character_id]
- give_title d_croatia 8583
Change Realm Laws:
- add_realm_law single_heir_succession_law
- add_realm_law crown_authority_3
- add_realm_law male_preference_law
Join a Culture Era:
- join_era culture_era_high_medieval
Set Character Sexuality:
- set_sexuality heterosexual
- set_sexuality asexual
- set_sexuality bisexual
Add Struggle Progress:
- progress_struggle_phase iberian_struggle struggle_iberia_phase_hostility 1000
- progress_struggle_phase iberian_struggle struggle_iberia_phase_conciliation 1000
- progress_struggle_phase iberian_struggle struggle_iberia_phase_opportunity 1000
Effect Console Commands
Tips: Use a text editor like Notepad++, VSC, or Sublime to build your effects. This helps organize complex commands.
Example of command structure:
title:target title = {set_de_jure_liege_title = title:liege title}
Add Legitimacy to Your Character:
- effect add_legitimacy = 10
Change De Jure Title of a Sub Title:
This command lets you change which higher title a lower title belongs to. For example, making a duchy part of a different kingdom.
title:target_title = {
set_de_jure_liege_title = title:liege_title
}
effect = { title:d_crimea = { set_de_jure_liege_title = title:k_pontus } }
Examples:
Make Crimea part of Pontus:
effect = { title:d_crimea = { set_de_jure_liege_title = title:k_pontus } }
Set up new titles: When adding a new title, you need to set up its place in the hierarchy. For example, to add the Duchy of Amalfi:
- Set a county as part of the duchy
- Set the duchy as part of a kingdom
- Set the kingdom as part of an empire
Example for Amalfi:
effect = { title:c_napoli = { set_de_jure_liege_title = title:d_amalfi } }
effect = { title:d_amalfi = { set_de_jure_liege_title = title:k_naples } }
effect = { title:k_naples = { set_de_jure_liege_title = title:e_italy } }
You can use similar commands for other titles, like making the Kingdom of Hansa part of the Holy Roman Empire, or setting up titles from mods.
Be the first to comment