crusader kings 3 коды trait
Console commands
This article has been verified for the current version (1.4) of the game.
Character IDs can be seen by hovering the cursor over a character with debug mode enabled.
Содержание
Debug mode
Debug mode is a set of game tools that allow to modify game behavior outside of normal means. It includes:
Enabling debug mode
Debug mode can be enabled before launching the game and/or toggled in the game using mods. It can be disabled from the console, but can’t be re-enabled after it’s closed (unless with mods).
There are a number of mods, like Free Console Access and Debug Toggle.
They allow to toggle the debug mode on and off, making it convenient to use the console and play, but this doesn’t enable instant reloading of files. For modding, it’s better to use both a mod and launch options.
Launcher
In the game Launcher:
Steam
Windows
Without Steam, on Windows:
Xbox Game Pass
For the Xbox Game Pass / Windows 10 Store edtion it’s more complicated, as you cannot create a normal shortcut for it, so you’ll have to run the following commands in Command Prompt every time you open the game:
To simplify it, you can also create a batch (.bat) file with this command and run it from the desktop:
Disabling debug mode
Debug info
When debug mode is activated, characters, interactions and events will show debug info which is normally hidden during normal gameplay.
Characters
The following values are shown for characters under debug mode:
Name | Description |
---|---|
ID | The character’s ID. Used to reference them in events and console commands. |
Historical ID | |
Fertility | The character’s fertility as a percentage. |
Health | The character’s health as a number. Values are provided with one decimal place. |
Stress | The amount of stress the character has. |
Base Weight | Related to the weight mechanic. |
Target Weight | Related to the weight mechanic. |
Current Weight | Related to the weight mechanic. |
Events
Interactions
In a given interaction’s menu, hovering over the purple R next to the final button will show the root scope, the primary/secondary actors and the primary/secondary recipients.
Cheats
Cheats are console commands that can be used to give unfair advantages as opposed to sole testing purposes. They are different from scripted commands. Note that pressing the Tab key with the debug window open will show a list of commands, and pressing tab again after typing chosen command will show parameters available for the command in the debug window.
Command | Effect | Parameters | Example |
---|---|---|---|
age | Adds [amount] of age to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | age 20 |
add_claim | Adds a pressed claim on [ title id ] to [character id], if no character is specified then the player character. | [ title id ] [character id] | add_claim e_hre |
add_doctrine | Adds [doctrine id] to [faith id], if no faith is specified then the player character’s faith. Pressing tab reveals all doctrine IDs. | [doctrine id] [faith id] | add_doctrine doctrine_pluralism_fundamentalist catholic |
add_dread | Adds [amount] of dread to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | add_dread 100 |
add_maa | Adds [regiment id] of of men-at-arms to [character id], if no character is specified then the player character. Pressing tab reveals all regiment IDs. | [regiment id] [character id] | add_maa bowmen |
add_perk | Adds [perk id] to [character id], if no character is specified then the player character. Pressing tab reveals all perk IDs. | [perk id] [character id] | add_perk thoughtful_perk |
add_piety | Adds [amount] of piety to the player character. Negative values lower it. Default 1000. | [amount] | add_piety 9000 |
add_prestige | Adds [amount] of prestige to the player character. Negative values lower it. Default 1000. | [amount] | add_prestige 16000 |
add_realm_law | Passes [law id] to the realm of [character id], if no character is specified then the player character’s realm. Pressing tab reveals all law IDs. | [law id] [character id] | add_realm_law crown_authority_3 |
add_realm_law_skip_effects | Adds [law id] to the realm of [character id], if no character is specified then the player character’s realm. Pressing tab reveals all law IDs. | [law id] [character id] | add_realm_law_skip_effects crown_authority_3 |
add_relation | Adds [relation id] between [character id] and [character id], if only one character is specified then between the player character and them. | [relation id] [character id] | add_relation friend 1234 |
add_secret | Adds [secret id] to the player character. Pressing tab reveals all secret IDs. | [secret id] | add_secret secret_witch |
add_stress | Adds [amount] of stress to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | add_stress 50 |
add_title_law | Adds [succession law id] to [title id]. (Developers Only!) | [title id] [law id] | add_title_law e_hre feudal_elective_succession_law |
add_trait | Adds [ trait id ] to [character id], if no character is specified then the player character. | [ trait id ] [character id] | add_trait witch |
add_lifestyle_xp_all | Adds [amount] of experience to all lifestyles of [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_lifestyle_xp_all 2000 |
add_diplomacy_lifestyle_xp | Adds [amount] of diplomacy lifestyle experience to [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_diplomacy_lifestyle_xp 2000 |
add_martial_lifestyle_xp | Adds [amount] of martial lifestyle experience to [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_martial_lifestyle_xp 2000 |
add_stewardship_lifestyle_xp | Adds [amount] of stewardship lifestyle experience to [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_stewardship_lifestyle_xp 2000 |
add_intrigue_lifestyle_xp | Adds [amount] of intrigue lifestyle experience to [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_intrigue_lifestyle_xp 2000 |
add_learning_lifestyle_xp | Adds [amount] of learning lifestyle experience to [character id], if no character is specified then the player character. Default 1000. | [amount] [character id] | add_learning_lifestyle_xp 2000 |
change_culture | Changes the culture of [county id] to [culture id]. | [county id] [culture id] | change_culture 496 swedish |
change_development_level | Adds [amount] of development to [county id], if no county is specified then the player character’s capital. Negative values lower it. | [amount] [county id] | change_development_level 100 496 |
change_fervor | Adds [amount] of fervor to [faith id], if no faith is specified then the player character’s faith. Negative values lower it. Default 10. | [amount] [faith id] | change_fervor 100 catholic |
change_diplomacy | Adds [amount] of diplomacy skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_diplomacy 16 |
change_martial | Adds [amount] of martial skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_martial 16 |
change_stewardship | Adds [amount] of stewardship skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_stewardship 16 |
change_intrigue | Adds [amount] of intrigue skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_intrigue 16 |
change_learning | Adds [amount] of learning skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_learning 16 |
change_prowess | Adds [amount] of prowess skill to [character id], if no character is specified then the player character. Negative values lower it. | [amount] [character id] | change_prowess 16 |
clear_character_modifiers | Removes all character modifiers from [character id], if no character is specified then the player character. | [character id] | clear_character_modifiers |
clear_title_laws | Removes all title succession laws from [title id]. | [title id] | clear_title_laws e_hre |
clear_traits | Removes all traits from [character id], if no character is specified then the player character. | [character id] | clear_traits |
discover_all_eras | Discovers all innovations for the culture of [character id], if no character is specified then the player character’s. | [character id] | discover_all_eras all |
discover_era | Discovers [era id] and all its innovations for the player character’s culture. Pressing tab reveals all era IDs. Default current era. | [era id] | discover_era culture_era_early_medieval |
discover_fascination | Discovers the current fascination for the culture of [character id], if no character is specified then the player character’s. | [character id] | discover_fascination |
discover_innovation | Discovers [innovation id] for the culture of [character id], if no character is specified then the player character’s. Pressing tab reveals all innovation IDs. | [innovation id] [character id] | discover_innovation innovation_motte |
dynasty_prestige | Adds [amount] of renown to [dynasty id], if no dynasty is specified then the player character’s dynasty. Negative values lower it. Default 1000. | [amount] [dynasty id] | dynasty_prestige 100000 |
end_schemes | All schemes targeting the player character are abandoned. | None | end_schemes |
event | Triggers [event id]. | [event id] [character id] | event lifestyle_nicknames.0001 |
gain_all_dynasty_perks | Buys all dynasty legacies for the dynasty of [character id], if no character is specified then the player character’s. | [character id] | gain_all_dynasty_perks |
gain_all_perks | Gives all lifestyle perks to [character id], if no character is specified then the player character. | [character id] | gain_all_perks |
give_title | Gives [title id] to [character id], if no character is specified then the player character. | [title id] [character id] | give_title e_hre |
gold | Adds [amount] of gold to the player character. Negative values lower it. Default 1000. | [amount] | gold 500 |
instabuild | Holdings and buildings in the player character’s domain are finished in a day. Entering it again disables it. | None | instabuild |
instant_birth | Pregnancies last a day. Entering it again disables it. | None | instant_birth |
join_era | Enters [era id] for the culture of [character id], if no character is specified then the player character’s. Pressing tab reveals all era IDs. | [era id] | join_era culture_era_high_medieval |
kill | Kills [character id], if no character is specified then the player character. | [character id] | kill |
know_schemes | Discovers all schemes targeting the player character. | None | know_schemes |
merge_culture | Changes the culture of all counties of [culture id] to [culture id]. | [culture id] [culture id] | merge_culture greek swedish |
pregnancy | Impregnates female [character id] with father [character id], if no character is specified then an unknown father. | [character id] [character id] | pregnancy 1234 |
remove_doctrine | Removes [doctrine id] from [faith id], if no faith is specified then the player character’s faith. Pressing tab reveals all doctrine IDs. | [doctrine id] [faith id] | remove_doctrine doctrine_pluralism_righteous catholic |
remove_nick | Removes the current nickname from [character id], if no character is specified then the player character. | [character id] | remove_nick |
remove_relation | Removes [relation id] between [character id] and [character id], if only one character is specified then between the player character and them. | [relation id] [character id] | remove_relation friend 1234 |
remove_trait | Removes [trait id] from [character id], if no character is specified then the player character. Pressing tab reveals all trait IDs. | [trait id] [character id] | remove_trait witch |
set_culture | Changes the culture to [culture id] for [character id], if no character is specified then the player character. Pressing tab reveals all culture IDs. | [culture id] [character id] | set_culture swedish |
set_dread | Sets the dread to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_dread 100 |
set_faith | Changes the faith to [faith id] for [character id], if no character is specified then the player character. Pressing tab reveals all faith IDs. | [faith id] [character id] | set_faith catholic |
set_focus | Sets the focus to [focus id] for [character id], if no character is specified then the player character. | [focus id] [character id] | set_focus diplomacy_majesty_focus |
set_nick | Gives [ nickname id ] to [character id], if no character is specified then the player character. | [ nickname id ] [character id] | set_nick nick_the_lazy |
set_sexuality | Changes the sexual orientation to [sexuality id] for [character id], if no character is specified then the player character. | [sexuality id] [character id] | set_sexuality bisexual |
set_stress | Sets the stress to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_stress 0 |
set_diplomacy | Sets the diplomacy skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_diplomacy 16 |
set_martial | Sets the martial skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_martial 16 |
set_stewardship | Sets the stewardship skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_stewardship 16 |
set_intrigue | Sets the intrigue skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_intrigue 16 |
set_learning | Sets the learning skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_learning 16 |
set_prowess | Sets the prowess skill to [amount] for [character id], if no character is specified then the player character. | [amount] [character id] | set_prowess 16 |
set_date | Sets the date to [year.month.day], if no month or day is specified, sets to the 1 of January. | [year.month.day] | set_date 1100.6.15 |
yesmen | AI characters accept all proposals. Entering it again disables it. | None | yesmen |
Testing commands
Testing commands are used for developer, beta tester or modder testing.
To run the effect on a character other than the player, use effect character: = < =
Trait IDs
Traits that do not follow this pattern have been listed below for reference.
Trait (education) | ID |
---|---|
| education_diplomacy_1 |
| education_diplomacy_2 |
| education_diplomacy_3 |
| education_diplomacy_4 |
| education_martial_1 |
| education_martial_2 |
| education_martial_3 |
| education_martial_4 |
| education_stewardship_1 |
| education_stewardship_2 |
| education_stewardship_3 |
| education_stewardship_4 |
| education_intrigue_1 |
| education_intrigue_2 |
| education_intrigue_3 |
| education_intrigue_4 |
| education_learning_1 |
| education_learning_2 |
| education_learning_3 |
| education_learning_4 |
| education_martial_prowess_1 |
| education_martial_prowess_2 |
| education_martial_prowess_3 |
| education_martial_prowess_4 |
Trait (congenital) | ID |
---|---|
| beauty_bad_1 |
| beauty_bad_2 |
| beauty_bad_3 |
| beauty_good_1 |
| beauty_good_2 |
| beauty_good_3 |
| intellect_bad_1 |
| intellect_bad_2 |
| intellect_bad_3 |
| intellect_good_1 |
| intellect_good_2 |
| intellect_good_3 |
| physique_bad_1 |
| physique_bad_2 |
| physique_bad_3 |
| physique_good_1 |
| physique_good_2 |
| physique_good_3 |
| depressed_1 / depressed_genetic |
| lunatic_1 / lunatic_genetic |
| possessed_1 / possessed_genetic |
Trait (lifestyle) | ID |
---|---|
| blademaster_1 |
| blademaster_2 |
| blademaster_3 |
| hunter_1 |
| hunter_2 |
| hunter_3 |
| mystic_1 |
| mystic_2 |
| mystic_3 |
| reveler_1 |
| reveler_2 |
| reveler_3 |
| physician_1 |
| physician_2 |
| physician_3 |
| family_first |
| lifestyle_herbalist |
Trait (other) | ID |
---|---|
| kinslayer_1 |
| kinslayer_2 |
| kinslayer_3 |
| wounded_1 |
| wounded_2 |
| wounded_3 |
| infertile |
| devoted |
| faith_warrior |
| crusader_king |
| pneumonic |
| clubfooted |
| savior |
| viking |
early_great_pox | |
| blood_of_prophet |
| child_of_concubine_female |
| child_of_concubine_male |
| pilgrim |
Innovation IDs
Innovation IDs usually match their name. The following innovations use a different ID however:
Innovation | ID |
---|---|
innovation_currency_01 | |
innovation_development_01 | |
innovation_catapult | |
innovation_repeating_crossbow | |
innovation_mobile_guards | |
innovation_hussar_raids | |
innovation_longboats | |
innovation_african_canoes | |
innovation_currency_02 | |
innovation_development_02 | |
innovation_house_soldiers | |
innovation_desert_mountain_herding | |
innovation_stem_duchies | |
innovation_currency_03 | |
innovation_development_03 | |
innovation_east_settling | |
innovation_currency_04 | |
innovation_development_04 |
Title IDs
Title IDs can also be seen in their respective title lists:
Finding title IDs based on in-game name
The title ID may not match the title’s name in-game. For example, the player may have their game set to a language other than English or a title has a culture-specific name. Use the following steps to find a title ID purely on its in-game name:
Finding custom title ID
Custom titles (i.e. the title of a player created Empire) do not follow the same naming convention. To find the ID: