This page lists the codes which may be input into the Console Window, a special debugging window which may be accessed on non-ironman games while in debug mode by pressing Shift+2, ALT+2+1, Shift+3,§, ~, ^, °, ², or ` (key varies based on keyboard layout). For a QWERTY keyboard, the key is `. Else, try pressing Shift + Alt + C if none of the above worked. Press the up or down arrow keys to traverse through previously executed commands. Many codes can be turned off by repeating the command, but sometimes reloading the save or exiting the game is necessary.
Character IDs can be seen by hovering the cursor over a character with debug mode enabled.
调试模式
调试模式是游戏中对用户隐藏的一组工具。它们允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:
- 控制台端口 (用于玩家输入指定命令)
- 调试菜单 (包括Portrait Editor,GUI Editor,Tweak Menu等)
- 调试信息 (显示有关角色,隐藏的事件和互动)
- 调试互动 (玩家可以立即更改意见、囚禁等)
Enabling debug mode
Debug mode must be enabled upon launching the game. It can also be disabled within the Console Window.
Steam
若需要在steam运行调试模式,需要在steam库里面,右键该游戏,然后点击属性,在 [常规] 选项里面点击 [设置启动选项...] ,将 [-debug_mode] 添加到启动项里面。此操作需要重启游戏。
Without Steam
在不使用steam平台打开游戏的情况下,可以通过在ck3文件夹的binaries文件夹里面找到ck3.exe,右键它发送到桌面快捷方式,然后右键桌面的ck3图标并点击属性,在目标那一栏里面的最后面,空格一下然后输入[-debug_mode],然后应用即可。
Xbox game pass
For the Xbox gamepass edition/windows 10 store edtion, it is a little more complicated you cannot create a normal shortcut for it instead you are going to need to run in command prompt this command everytime:
start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode
Alternatively, you can create a batch file on your desktop and paste in that code to run it. To create a simple batch file on Windows 10, use these steps:
- Open Start.
- Search for Notepad, and click the top result to start the app.
- Paste in the above code provided.
- Click the File menu.
- Select the Save As option or ^Ctrl + ⇧Shift + S.
- Type a name for the script for example, "ck3debug.bat". Whatever you call it it must end in .bat
- Select Desktop for location.
- Click save and your done!
Cheats
下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的。
指令 | 效果 | 参数 | 举例 |
---|---|---|---|
age | 添加 [年龄] 指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少年龄。 | [amount] [character id] | age 20 |
add_claim | 添加宣称 [ 头衔id ] 到 [角色id] 上, 如果没有指定角色id默认为玩家角色。 | [ 头衔id ] [角色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 | 添加恐惧值 [指定数值] 到 [角色id] , 如果没有指定角色id默认为玩家角色。 | [指定数值] [角色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 | 给玩家添加 [指定数值] 的虔诚,数字前面添加“-”为减少虔诚,默认输入此命令得到1000虔诚 | [amount] | add_piety 9000 |
add_prestige | 给玩家添加 [指定数值] 的声望,数字前面添加“-”为减少声望,默认输入此命令得到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 | 给角色添加 [秘密id] 。 | [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]. | [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 | 添加 [指定数值] 的生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [amount] [character id] | add_lifestyle_xp_all 2000 |
add_diplomacy_lifestyle_xp | 添加 [指定数值] 的外交生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [amount] [character id] | add_diplomacy_lifestyle_xp 2000 |
add_martial_lifestyle_xp | 添加 [指定数值] 的军事生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [amount] [character id] | add_martial_lifestyle_xp 2000 |
add_stewardship_lifestyle_xp | 添加 [指定数值] 的管理生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [amount] [character id] | add_stewardship_lifestyle_xp 2000 |
add_intrigue_lifestyle_xp | 添加 [指定数值] 的谋略生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [amount] [character id] | add_intrigue_lifestyle_xp 2000 |
add_learning_lifestyle_xp | 添加 [指定数值] 的学识生活方式xp到 [角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp。 | [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 | 添加 [外交] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [amount] [character id] | change_diplomacy 16 |
change_martial | 添加 [军事] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [amount] [character id] | change_martial 16 |
change_stewardship | 添加 [管理] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [amount] [character id] | change_stewardship 16 |
change_intrigue | 添加 [谋略] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [amount] [character id] | change_intrigue 16 |
change_learning | 添加 [学识] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [amount] [character id] | change_learning 16 |
change_prowess | 添加 [勇武] 技能指定到 [角色id], 如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少技能数值。 | [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 |
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 | 触发事件命令 [event id]. | [event 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 | 添加金钱给玩家, 数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。 | [amount] | add_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 | 杀死 [character id] 指定的角色, 如果没有指定角色id默认为杀死玩家。 | [character id] | kill |
know_schemes | 发现针对玩家角色的所有阴谋。 | 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 |
yesmen | 玩家的所有外交互动强制同意。 | None | yesmen |
Testing commands
Testing commands are used for developer, beta tester or modder testing.
Command | Effect | Parameters | Example |
---|---|---|---|
clear | 清除控制台历史输入。 | None | clear |
effect | Executes a scripted effect. | [effect script] | effect test |
faction_spawn | Spawns [faction type] if there are valid counties or courtiers to create it. | [faction type] | faction_spawn peasant_faction |
generate_cadet_coa | Generates a new coat of arms for the player character's house. | None | generate_cadet_coa |
help | 列出所有可输入的命令。 | [command] | help help |
instamove | Armies move one barony per day. (Affects AI as well as the player) | None | instamove |
map_editor | Opens the map editor. | None | map_editor |
nomen | AI characters refuse all proposals. Entering it again disables it. | None | nomen |
observe | Enters observer mode. | None | observe |
play | Switches character to [character id]. | [character id] | play 1234 |
portrait_editor | Opens the portrait editor. | None | portrait_editor |
run | Executes the commands in [file name]. The txt file must be placed in Documents/Paradox Interactive/Crusader Kings III/run. | None | run test.txt |
set_is_ai | Allows the AI to control [character id]. | [character id] | set_is_ai 1234 |
set_is_player | Disallows the AI to control [character id]. | [character id] | set_is_player 1234 |
Trait IDs
主条目:Traits
All traits have an ID that is referenced internally by the game. They can be found in game\common\traits\00_traits.txt
. A trait's ID typically matches its name. To get a trait's ID from its name, perform the following steps:
- If a trait displays two names in-game, use the one in brackets
- Replace spaces (
-
) with underscores (_
) - Remove all apostrophes (
'
) - Turn all upper case letters into lower case (
A...Z->a...z
)
Traits that do not follow this pattern have been listed below for reference.
Title IDs
主条目:Titles
All titles have an internal title ID that can be found in game\common\landed_titles\00_landed_titles.txt
. Title IDs have a prefix based on their rank, followed by an underscore (_
) and then their name.
Rank | Prefix | Example |
---|---|---|
Barony | b_
|
Wigmore -> b_wigmore
|
County | c_
|
Sundgau -> c_sundgau
|
Duchy | d_
|
Sicily -> d_sicily
|
Kingdom | k_
|
Denmark -> k_denmark
|
Empire | e_
|
Persia -> e_persia
|
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:
- Navigate to the file located at
game\localization\LANGUAGE\titles_l_LANGUAGE.yml
, replacingLANGUAGE
with your game language. - Open the file with a text editor like Notepad++ and search for any instances of the in-game name using ^Ctrl + F.
- If you managed to find a match:
- The line should look similar to
b_my_barony_name:0 "In-game name for barony"
. - The title ID is the word before the
:0
, therefore beingb_my_barony_name
in this example.
- The line should look similar to
- If you could not find a match:
- Close the file.
- In the same folder as the previous file, open the file
titles_cultural_names_l_LANGUAGE.yml
, replacingLANGUAGE
appropriately. - Repeat your search for the title's in-game name in this file.
- When you find a match, it should look like so:
cn_lunden:0 "Lunden"
. - Remember/copy the word before the
:0
(in this example,cn_lunden
); this is a cultural name key of the title. - Close the file.
- Navigate to the file
game\common\landed_titles\00_landed_titles.txt
and open it with your text editor. - Perform a search for the cultural name key you found in the previous file (e.g.,
cn_lunden
). - The search query should land within a block named
cultural_names
enclosed by curly brackets ({
,}
). - Read the lines above until you reach another start of a block (denoted by
b_london = {
). Ignore any blocks likecolor = {
orcolor2 ={
. - The word in place of
b_london
is your title ID.
文档 | Effects • 触发器 • 修正 • 作用域 • 变量 • 数据类型 • 本地化 • 可定制的本地化 |
脚本 | AI • 剧本 • 角色 • 效果指令 • 内阁 • 文化 • 决议 • 宗族 • 事件 • 政体 • 历史 • 地产 • 生活方式 • 军队 • 宗教 • Story cycles • 头衔 • 特质 |
地图 | 地图 • 地形 |
图形 | 3D模型 • Exporters • 界面 • Coat of arms • Graphical assets • Fonts • Particles • Shaders • Unit models |
音频 | Music • Sound |
其他 | 控制台指令 • 校验码 • 模组结构 • Troubleshooting |