控制台指令:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.6
→‎作弊
 
(未显示8个用户的60个中间版本)
第1行: 第1行:
{{Version|1.0}}{{需要翻译}}
{{Version|1.6}}{{需要翻译}}
This page lists the codes that may be input into the Console Window, a special debugging window that may be accessed on non-ironman games whilst in debug mode by pressing Shift+2, ALT+2+1, Shift+3,{{key press|§}}, {{key press|~}}, {{key press|^}}, {{key press|°}}, {{key press|²}}, or {{key press|`}} (key varies based upon keyboard layout). For QWERTY keyboards, the key is {{key press|`}}. Otherwise, Shift + Alt + C may work if the combinations above did not. 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.
此条目列出能够输入控制台窗口的指令。控制台窗口是一个特殊的调试窗口,可以在调试模式下的非铁人开局中,按下 {{key press|Shift}}+{{key press|2}},{{key press|ALT}}+{{key press|2}}+{{key press|1}},{{key press|Shift}}+{{key press|3}},{{key press|§}} {{key press|~}} {{key press|^}} {{key press|°}} {{key press|²}} {{key press|`}} (键盘布局不同,按键不同)来打开。对于QWERTY键盘,按键是{{key press|`}} 。此外,如果上述方法不能奏效,{{key press|Shift}}+{{key press|Alt}}+{{key press|C}} 可能有效。使用上下箭头键可以遍历之前使用过的指令。许多指令可以通过再次输入来关闭,但有时重新加载保存或退出游戏是必要的。


Character IDs can be seen by hovering the cursor over a character with debug mode enabled.
在打开调试模式的情况下,可以将鼠标悬停在角色肖像上来查看角色ID。


__TOC__
__TOC__


== 调试模式 ==
==调试模式==
 调试模式是游戏中 对用户隐藏 的一组工具 。它们 允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:
 调试模式是游戏中的一组工具 允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:
* 控制台端口 (用于玩家输入指定命令)
* 调试菜单 (包括Portrait Editor,GUI Editor,Tweak Menu等)
* 调试信息 (显示有关角色,隐藏的事件和互动)
* 调试互动 (玩家可以立即更改意见、囚禁等)
* Ctrl + clicking on a portrait takes control of the character, while Alt + click kills them.


=== Enabling debug mode ===
*控制台端口(接收指定命令)
Debug mode must be enabled upon launching the game. It can also be disabled within the Console Window.
*调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等)
*[[#调试信息|调试信息]]
*调试角色互动(玩家可以立即更改意见、囚禁等)
*{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。
* File watcher自动重载被更改的文件(包括模组)到内存中。
 
=== 启用调试模式 ===
Debug 模式能在启动游戏前开启和/或在游戏中使用mods开启. 它能通过控制台面板的按钮关闭,但一旦关闭就不能在游戏中重新开启(除非使用mods)。
 
怎么开启它:
 
==== Mods ====
有些mods,例如:[https://steamcommunity.com/sharedfiles/filedetails/?id=2218150778 Free Console Access]和[https://steamcommunity.com/sharedfiles/filedetails/?id=2264428428 Debug Toggle]。
 
他们允许开关debug模式,让游戏中能够方便的使用控制台游玩,但是重新读取文件需要时间。对于mod制作者,同时使用启动器选项和mod更好。
 
==== 启动器 ====
在游戏启动器中:
#点击左侧的游戏设置
#滑到“以调试模式打开游戏”项,点击“启动”按钮。


==== Steam ====
==== Steam ====
  若需要在steam运行调试模式,需要在steam库里面, 右键 游戏, 然后 点击属性 [常规] 选项 里面 点击 [设置启动选项...] ,将 ['''-debug_mode'''] 添加到 启动 项里面。此操作需要重启 游戏
  在Steam中:
# 右键游戏 旁的齿轮图标 点击属性
# 通用界面把 <code>-debug_mode</code> 写进启动 选项
#启动游戏
 
==== Windows ====
如果你没有安装Steam,则在Windows系统上:
#打开CK3游戏文件目录下的binaries文件夹
#右击ck3.exe来创建一个快捷方式
#右击这个快捷方式, 点击 属性
#在目标栏的最后添加 <code>-debug_mode</code>(所以你会看到目标栏里是这串代码 <code>"...\ck3.exe" -debug_mode</code>)
#点击快捷方式 启动游戏


==== Without Steam ====
==== GOG ====
在不使用steam平台打开游戏的情况下,可以通过在ck3文件夹的binaries文件夹里面找到ck3.exe,右键它发送到桌面快捷方式,然后右键桌面的ck3图标并点击属性,在目标那一栏里面的最后面,空格一下然后输入[-debug_mode],然后应用即可。
On GOG:
# Right-click the game, open Settings
# Check "Add command line arguments" and enter <code>debug_mode</code>


==== Xbox game pass ====
On GOG Galaxy 2.0:
For the Xbox gamepass edition/windows 10 store edtion it's a tad 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:
# In the game page, select Settings (next to the Play button at the top of the page)
# Open Manage installation and select Configure...
# Make sure the Launch parameters "Custom executables / arguments" is ticked at the bottom of the page. You can duplicate the "startgame" executable and type <code>-debug_mode</code> into the Arguments field.
 
==== Xbox Game Pass ====
对于Xbox Game Pass版/Windows 10 store 版,这有点复杂,因为你不能为其创建一个普通的快捷方式。每次打开游戏时,你都必须在命令提示符中运行以下命令:


<code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
<code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>


Suffice you don't want to run Command Prompt every time, you can create a batch (.bat) file to execute the aforementioned command instead, that can run from your desktop.
To simplify it, you can also create a batch (.bat) file with this command and run it from the desktop:
To create a simple batch file on Windows 10, follow these steps:
 
* Open Start.
# Right-click on your Desktop, choose New -> Text Document.
* Search for Notepad, and click the top result to start the app.
# Rename it to "ck3.bat". Make sure to remove ".txt" from the end. Confirm changes when prompted.
* Paste in the aforementioned command.
# Right-click the file and select Edit.
* Click the File menu.
# Paste the command: <code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
* Select the Save As option or {{key press|CTRL}} + {{key press|SHIFT}} + {{key press|S}}.
# Save the file
* Type a name for the script, for example "ck3debug.bat". '''whatever you call it, it must end in .bat'''
# Double-click it to start the game
* Select Desktop for location.
 
* Click save and you're done!
=== 关闭调试模式 ===
如果要继续达成成就,则关闭所有功能Mod并从启动选项中删除<code>-debug_mode</code>。 在开始游戏后,确保你的[[补丁|校验码]]未改变。它可以在加入游戏窗口的右上角找到。
 
=== 调试信息 ===
调试模式启动时,角色、互动和事件将显示在正常游戏中隐藏的调试信息。
 
==== 角色 ====
调试模式中角色的以下数值会显示:
{| class="wikitable"
! 名称
! 描述
|-
| ID
| 角色ID。用于在事件和控制台指令中引用它们。
|-
| 历史ID
|
|-
| 生育力
| 显示为百分比的角色[[生育力]]。
|-
| 健康
| 角色的[[健康]]数值。数值有一位小数。
|-
| 压力
| 角色拥有的[[压力]]值。
|-
| 基础体重
| 与[[体重]]机制有关。
|-
| 目标体重
| 与[[体重]]机制有关。
|-
| 当前体重
| 与[[体重]]机制有关。
|}
 
==== 事件 ====
将鼠标悬停在事件选项上时会显示该选项的AI权重。同时,在事件窗口的右上角,将鼠标悬停在问号上(<code>?</code>),将显示内部详细信息,包括以下内容:
* Event ID
* Character for whom the event triggered
* Root character
* Saved event targets
* Saved list targets
* Descriptions


== Cheats ==
==== 互动 ====
 下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 。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.
在点击互动后弹出的窗口中,将鼠标悬停在按钮右边的紫色R上,将显示root scope, the primary/secondary actors 和 the primary/secondary recipients。
 
== 作弊 ==
 下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 。它们和脚本[[ 指令]] 不同。注意,在调试窗口打开时,按下 {{Key press|Tab}} 将显示指令列表,在输入选择的指令后,按下 {{Key press|Tab}} 将在调试窗口中显示适用于该指令的参数。
{| class="wikitable"
{| class="wikitable"
! 指令
!指令
! 效果
!效果
! 参数
!参数
! 举例
!举例
|-
|age
|添加 [指定数值] 的年龄到 [角色id], 如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少年龄。
|[指定数值] [角色id]
|age 20
|-
|add_claim
|添加宣称 [<nowiki/>[[Console_commands#Title_IDs|头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。
|[角色id] [<nowiki/>[[Console_commands#Title_IDs|头衔id]]]
|add_claim e_hre
|-
|-
| age
|add_doctrine
| 添加 [ 年龄指定 到 [ 角色id], 如果没有指定 角色id 默认为玩家角色 ,数字前面添加“-”为减少年龄
|添加 [ 教义id] 到 [ 信仰id中, 如果没有指定 信仰则 默认为玩家角色 的信仰。按下 {{Key press|Tab}} 将显示所有教义ID
| [amount] [character id]
|[ 教义id] [ 信仰id]
| age 20
|add_doctrine doctrine_pluralism_fundamentalist catholic
|-
|-
| add_claim
|add_dread
| 添加 宣称 [ [[Console_commands#Title_IDs|头衔id]] ] 到 [角色id] , 如果没有指定角色id默认为玩家角色。
|添加 恐惧值 [ 指定数值] 到 [角色id] , 如果没有指定角色id 默认为玩家角色。
| [ [[Console_commands#Title_IDs|头衔id]] ] [角色id]
|[ 指定数值] [角色id]
| add_claim e_hre
|add_dread 100
|-
|-
| add_doctrine
|add_maa
| Adds [doctrine id] to [faith id], if no faith is specified then the player character's faith. Pressing tab reveals all doctrine IDs.
| 添加兵士的 [ 军团 id] [ 角色id] ,如果没有指定角色id则默认为玩家角色。<!-- 原文:按下 ⇆Tab 将显示所有军团ID。但1.0游戏中测试未显示 -->
| [doctrine id] [faith id]
|[ 军团id] [ 角色id]
| add_doctrine doctrine_pluralism_fundamentalist catholic
|add_maa bowmen
|-
|-
| add_dread
|add_perk
| 添加 恐惧值 [ 指定数值] 到 [角色id] , 如果没有指定角色id默认为玩家角色。
|添加 [ 技能id] 到 [角色id]  如果没有指定角色id 默认为玩家角色 。按下 {{Key press|Tab}} 将显示所有技能ID
| [ 指定数值] [角色id]
|[ 技能id] [角色id]
| add_dread 100
|add_perk thoughtful_perk
|-
|-
| add_maa
|add_piety
| 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.
| 给玩家添加 [ 指定数值] 的虔诚,数字前面添加“- ”为减少虔诚,默认输入此命令得到1000虔诚。
| [regiment id] [character id]
|[ 指定数值]
| add_maa bowmen
|add_piety 9000
|-
|-
| add_perk
|add_prestige
| Adds [perk id] to [character id], if no character is specified then the player character. Pressing tab reveals all perk IDs.
| 给玩家添加 [ 指定数值] 的声望,数字前面添加“-”为减少声望,默认输入此命令得到1000声望。
| [perk id] [character id]
|[ 指定数值]
| add_perk thoughtful_perk
|add_prestige 16000
|-
|-
| add_piety
|add_realm_law
给玩家添加 [ 指定数值] 的 虔诚,数字前面添加“-”为减少虔诚 ,默认 输入此命令得到1000虔诚
|[法律id] [ 角色id] 的 领地通过  如果没有指定角色id则 默认 为玩家角色的领地。按下 {{Key press|Tab}} 将显示所有法律ID。
| [amount]
|[ 法律id] [角色id]
| add_piety 9000
|add_realm_law crown_authority_3
|-
|-
| add_prestige
|add_realm_law_skip_effects
给玩家添加 [ 指定数值] 的 声望,数字前面 添加 “-”为减少声望 ,默认 输入此命令得到1000声望
|[法律id] [ 角色id] 的 领地 添加 如果没有指定角色id则 默认 为玩家角色的领地。按下 {{Key press|Tab}} 将显示所有法律ID。
| [amount]
|[ 法律id] [角色id]
| add_prestige 16000
|add_realm_law_skip_effects crown_authority_3
|-
|-
| add_realm_law
|add_relation
| 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.
|[ 关系id] 被添加到 [ 角色id] 和 [角色id] 之间 ,如果只指定了一个角色,则默认为指定角色和玩家角色之间添加关系。
| [law id] [character id]
|[ 关系id] [ 角色id]
| add_realm_law crown_authority_3
|add_relation friend 1234
|-
|-
| add_realm_law_skip_effects
|add_secret
| 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.
| 给角色添加 [ 秘密id]
| [law id] [character id]
|[ 秘密id]
| add_realm_law_skip_effects crown_authority_3
|add_secret secret_witch
|-
|-
| add_relation
|add_stress
| Adds [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.
| 增加 [ 指定数值] 的压力给 [ 角色id] 。如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少压力。
| [relation id] [character id]
|[ 指定数值] [ 角色id]
| add_relation friend 1234
|add_stress 50
|-
|-
| add_secret
|add_title_law
给角色 添加 [ 秘密id]
|[头衔id] 添加 [ 继承法id] (仅开发人员!)
| [secret id]
|[ 头衔id] [法律id]
| add_secret secret_witch
|add_title_law e_hre feudal_elective_succession_law
|-
|-
| add_stress
|add_trait
| Adds [amount] of stress to [character id], if no character is specified then the player character. Negative values lower it.
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] 被添加到<nowiki/> [ 角色id] ,如果没有指定角色id则默认为玩家角色, 按下 {{Key press|Tab}} 将显示所有特质ID。
| [amount] [character id]
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] [ 角色id]
| add_stress 50
|add_trait witch
|-
|-
| add_title_law
|add_lifestyle_xp_all
| Adds [succession law id] to [title id].(Developers Only!)
| 添加 [ 指定数值] 的生活方式经验到 [ 角色id] ,如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
| [title id] [law id]
|[ 指定数值] [ 角色id]
| add_title_law e_hre feudal_elective_succession_law
|add_lifestyle_xp_all 2000
|-
|-
| add_trait
|add_diplomacy_lifestyle_xp
| Adds [ [[Console_commands#Trait_IDs|trait id]] ] to [character id], if no character is specified then the player character.
| 添加 [ 指定数值] 的外交生活方式经验到 [ 角色id] ,如果没有指定角色id则默认为玩家角色。经验默认输入此命令得到1000经验。
| [ [[Console_commands#Trait_IDs|trait id]] ] [character id]
|[ 指定数值] [ 角色id]
| add_trait witch
|add_diplomacy_lifestyle_xp 2000
|-
|-
| add_lifestyle_xp_all
|add_martial_lifestyle_xp
| 添加 [指定数值] 的生活方 式xp 到 [角色id]如果没有指定角色id默认为玩家角色。 默认输入此命令得 到1000xp
|添加 [指定数值] 的 军事 生活方 式经验 到 [角色id] 如果没有指定角色id 默认为玩家角色。默认输入此命令得 到1000经验
| [amount] [character id]
|[ 指定数值] [ 角色id]
| add_lifestyle_xp_all 2000
|add_martial_lifestyle_xp 2000
|-
|-
| add_diplomacy_lifestyle_xp
|add_stewardship_lifestyle_xp
| 添加 [指定数值] 的 外交 生活方 式xp 到 [角色id]如果没有指定角色id默认为玩家角色。 默认输入此命令得 到1000xp
|添加 [指定数值] 的 管理 生活方 式经验 到 [角色id] 如果没有指定角色id 默认为玩家角色。默认输入此命令得 到1000经验
| [amount] [character id]
|[ 指定数值] [ 角色id]
| add_diplomacy_lifestyle_xp 2000
|add_stewardship_lifestyle_xp 2000
|-
|-
| add_martial_lifestyle_xp
|add_intrigue_lifestyle_xp
| 添加 [指定数值] 的 军事 生活方 式xp 到 [角色id]如果没有指定角色id默认为玩家角色。 默认输入此命令得 到1000xp
|添加 [指定数值] 的 谋略 生活方 式经验 到 [角色id] 如果没有指定角色id 默认为玩家角色。默认输入此命令得 到1000经验
| [amount] [character id]
|[ 指定数值] [ 角色id]
| add_martial_lifestyle_xp 2000
|add_intrigue_lifestyle_xp 2000
|-
|-
| add_stewardship_lifestyle_xp
|add_learning_lifestyle_xp
| 添加 [指定数值] 的 管理 生活方 式xp 到 [角色id]如果没有指定角色id默认为玩家角色。 默认输入此命令得 到1000xp
|添加 [指定数值] 的 学识 生活方 式经验 到 [角色id] 如果没有指定角色id 默认为玩家角色。默认输入此命令得 到1000经验
| [amount] [character id]
|[ 指定数值] [ 角色id]
| add_stewardship_lifestyle_xp 2000
|add_learning_lifestyle_xp 2000
|-
|-
| add_intrigue_lifestyle_xp
|bypass_requirements
| 添加 [指定数值] 的谋略生活方式xp到 [角色id], 如果没有指定角色id默认为 玩家 角色。 默认输入此命令得到1000xp
| 允许 玩家 通过任何决议、领地法更改和头衔创建
| [amount] [character id]
|
| add_intrigue_lifestyle_xp 2000
|bypass_requirements
|-
|-
| add_learning_lifestyle_xp
|change_culture
| 添加 [ 指定数值] 的 学识生活方式xp到 [ 角色id], 如果没有指定角色id默认为玩家角色。 默认输入此命令得到1000xp
| 改变 [ 伯爵领id] 的 文化为 [ 文化id]。
| [amount] [character id]
|[ 伯爵领id] [ 文化id]
| add_learning_lifestyle_xp 2000
|change_culture 496 swedish
|-
|-
| change_culture
|change_development_level
| Changes the culture of [county id] to [culture id].
| 添加 [ 指定数值] 的发展度到 [ 伯爵领id] ,如果没有指定伯爵领则默认为玩家角色的首都,数字前面添加“-”为降低发展度。
| [county id] [culture id]
|[ 指定数值] [ 伯爵领id]
| change_culture 496 swedish
|change_development_level 100 496
|-
|-
| change_development_level
|change_fervor
| Adds [amount] of development to [county id], if no county is specified then the player character's capital. Negative values lower it.
| 添加 [ 指定数值] 的宗教热情到 [ 信仰id] ,如果没有指定信仰则默认为玩家角色的信仰,数字前面添加“-”为降低宗教热情。默认数值为10。
| [amount] [county id]
|[ 指定数值] [ 信仰id]
| change_development_level 100 496
|change_fervor 100 catholic
|-
|-
| change_fervor
|change_diplomacy
| Adds [amount] of fervor to [faith id], if no faith is specified then the player character's faith. Negative values lower it. Default 10.
| 添加 [ 指定数值] 的外交能力到 [ 角色id] ,如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
| [amount] [faith id]
|[ 指定数值] [ 角色id]
| change_fervor 100 catholic
|change_diplomacy 16
|-
|-
| change_diplomacy
|change_martial
| 添加 [ 外交指定 到 [角色id]如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少 能数值。
|添加 [ 指定数值的军事 到 [角色id] 如果没有指定角色id 默认为玩家角色,数字前面添加“-”为减少能 数值。
| [amount] [character id]
|[ 指定数值] [ 角色id]
| change_diplomacy 16
|change_martial 16
|-
|-
| change_martial
|change_stewardship
| 添加 [ 军事指定 到 [角色id]如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少 能数值。
|添加 [ 指定数值的管理 到 [角色id] 如果没有指定角色id 默认为玩家角色,数字前面添加“-”为减少能 数值。
| [amount] [character id]
|[ 指定数值] [ 角色id]
| change_martial 16
|change_stewardship 16
|-
|-
| change_stewardship
|change_intrigue
| 添加 [ 管理指定 到 [角色id]如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少 能数值。
|添加 [ 指定数值的谋略 到 [角色id] 如果没有指定角色id 默认为玩家角色,数字前面添加“-”为减少能 数值。
| [amount] [character id]
|[ 指定数值] [ 角色id]
| change_stewardship 16
|change_intrigue 16
|-
|-
| change_intrigue
|change_learning
| 添加 [ 谋略指定 到 [角色id]如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少 能数值。
|添加 [ 指定数值的学识 到 [角色id] 如果没有指定角色id 默认为玩家角色,数字前面添加“-”为减少能 数值。
| [amount] [character id]
|[ 指定数值] [ 角色id]
| change_intrigue 16
|change_learning 16
|-
|-
| change_learning
|change_prowess
| 添加 [ 学识指定 到 [角色id]如果没有指定角色id默认为玩家角色,数字前面添加“-”为减少 能数值。
|添加 [ 指定数值的勇武 到 [角色id] 如果没有指定角色id 默认为玩家角色,数字前面添加“-”为减少能 数值。
| [amount] [character id]
|[ 指定数值] [ 角色id]
| change_learning 16
|change_prowess 16
|-
|-
| change_prowess
|charinfo
| 添加 [勇武] 技能指定到 [ 色id], 如果没有指定 色id默认为玩家 角色 ,数字前面添加“-”为减少技能数值
| 在游戏内查看 色ID、 色历史ID、角色生育力、角色健康、角色压力和 角色 体重
| [amount] [character id]
|
| change_prowess 16
|charinfo
|-
|-
| clear_character_modifiers
|clear_character_modifiers
| Removes all character modifiers from [character id], if no character is specified then the player character.
| 移除 [ 角色id] 的所有角色修正,如果没有指定角色id则默认为玩家角色。
| [character id]
|[ 角色id]
| clear_character_modifiers
|clear_character_modifiers
|-
|-
| clear_title_laws
|clear_title_laws
| Removes all title succession laws from [title id].
| 移除 [ 头衔id] 的所有头衔继承法。
| [title id]
|[ 头衔id]
| clear_title_laws e_hre
|clear_title_laws e_hre
|-
|-
| clear_traits
|clear_traits
| Removes all traits from [character id], if no character is specified then the player character.
| 移除 [ 角色id] 的所有特质,如果没有指定角色id则默认为玩家角色。
| [character id]
|[ 角色id]
| clear_traits
|clear_traits
|-
|-
| discover_all_eras
|discover_all_eras
| Discovers all innovations for the culture of [character id], if no character is specified then the player character's.
|[ 角色id] 的文化发现所有革新,如果没有指定角色id则默认为玩家角色。
| [character id]
|[ 角色id]
| discover_all_eras
|discover_all_eras
|-
|-
| discover_era
|discover_era
| Discovers [era id] and all its innovations for the player character's culture. Pressing tab reveals all era IDs. Default current era.
| 玩家角色的文化进入 [ 时代id] 同时发现该时代的所有革新。按下 {{Key press|Tab}} 将显示所有时代ID。默认为当前时代。
| [era id]
|[ 时代id]
| discover_era culture_era_early_medieval
|discover_era culture_era_early_medieval
|-
|-
| discover_fascination
|discover_fascination
| Discovers the current fascination for the culture of [character id], if no character is specified then the player character's.
|[ 角色id] 的当前文化偏好被发现,如果没有指定角色id则默认为玩家角色。
| [character id]
|[ 角色id]
| discover_fascination
|discover_fascination
|-
|-
| discover_innovation
|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.
|[ 革新id] [ 角色id] 的文化发现,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。
| [innovation id] [character id]
|[ 革新id] [ 角色id]
| discover_innovation innovation_motte
|discover_innovation innovation_motte
|-
|-
| dynasty_prestige
|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.
| 添加 [ 指定数值] 的宗族威望到 [ 宗族id] ,如果没有指定宗族则默认为玩家角色的宗族,数字前面添加“-”为减少宗族威望。默认数值为1000。
| [amount] [dynasty id]
|[ 指定数值] [ 宗族id]
| dynasty_prestige 100000
|dynasty_prestige 100000
|-
|-
| end_schemes
|end_schemes
| All schemes targeting the player character are abandoned.
| 所有针对玩家角色的计谋被放弃。
| None
|
| end_schemes
|end_schemes
|-
|-
| event
|effect start_cat_story_cycle_effect
| 触发事件命令 [event id].
| 获得一只宠物猫
| [event id]
|
| event lifestyle_nicknames.0001
|effect start_cat_story_cycle_effect
|-
|-
| gain_all_dynasty_perks
|effect start_dog_story_cycle_effect
| 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
|effect start_dog_story_cycle_effect
|-
|-
| gain_all_perks
|event
| Gives all lifestyle perks to [character id], if no character is specified then the player character.
| 触发 [ 事件id]
| [character id]
|[ 事件id] [角色id]
| gain_all_perks
|event lifestyle_nicknames.0001
|-
|-
| give_title
|gain_all_dynasty_perks
| Gives [title id] to [character id], if no character is specified then the player character.
|[ 角色id] 的宗族获得所有宗族传承,如果没有指定角色id则默认为玩家角色。
| [title id] [character id]
|[ 角色id]
| give_title e_hre
|gain_all_dynasty_perks
|-
|-
| gold
|gain_all_perks
添加金钱给玩家, 数字前面添加“-”为减少金钱 ,默认 输入此命令得到1000金钱
|[角色id] 获得所有生活方式技能 如果没有指定角色id则 默认 为玩家角色
| [amount]
|[ 角色id]
| add_gold 500
|gain_all_perks
|-
|-
| instabuild
|give_title
| Holdings and buildings in the player character's domain are finished in a day. Entering it again disables it.
| 添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色,按下 {{Key press|Tab}} 将显示所有头衔ID。
| None
|[头衔id] [角色id]
| instabuild
|give_title e_hre
|-
|-
| instant_birth
|gold
| Pregnancies last a day. Entering it again disables it.
| 添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。
| None
|[指定数值]
| instant_birth
|gold 500
|-
|-
| join_era
|instabuild
| 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
|instabuild
|-
|-
| kill
|instant_birth
| 杀死 [character id] 指定的角色, 如果没有指定角色id默认为杀死玩家
| 怀孕持续一天。再次输入则失效
| [character id]
|
| kill
|instant_birth
|-
|-
| know_schemes
|join_era
发现针对 玩家角色 所有 阴谋
|[角色id] 的文化进入 [时代id],如果没有指定角色id则默认为 玩家角色 。按下 {{Key press|Tab}} 将显示 所有 时代ID
| None
|[时代id]
| know_schemes
|join_era culture_era_high_medieval
|-
|-
| merge_culture
|kill
| Changes the culture of all counties of [culture id] to [culture id].
| 杀死 [ 角色id] ,如果没有指定角色id则默认杀死玩家角色。
| [culture id] [culture id]
|[ 角色id]
| merge_culture greek swedish
|kill
|-
|-
| pregnancy
|know_schemes
| Impregnates female [character id] with father [character id], if no character is specified then an unknown father.
| 发现针对玩家角色的所有计谋。
| [character id] [character id]
|
| pregnancy 1234
|know_schemes
|-
|-
| remove_doctrine
|merge_culture
| Removes [doctrine id] from [faith id], if no faith is specified then the player character's faith. Pressing tab reveals all doctrine IDs.
| 改变 [ 文化id] 下所有伯爵领的文化为 [ 文化id]
| [doctrine id] [faith id]
|[ 文化id] [ 文化id]
| remove_doctrine doctrine_pluralism_righteous catholic
|merge_culture greek swedish
|-
|-
| remove_nick
|pregnancy
| Removes the current [[nickname]] from [character id], if no character is specified then the player character.
| 使女性 [ 角色id] 怀孕,父亲为 [ 角色id] ,如果没有指定父亲角色id则父亲未知。
| [character id]
|[ 角色id] [角色id]
| remove_nick
|pregnancy 1234
|-
|-
| remove_relation
|remove_doctrine
| Removes [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.
|[ 教义id] [ 信仰id] 中被移除,如果没有指定信仰则默认为玩家角色的信仰。按下 {{Key press|Tab}} 将显示所有教义ID。
| [relation id] [character id]
|[ 教义id] [ 信仰id]
| remove_relation friend 1234
|remove_doctrine doctrine_pluralism_righteous catholic
|-
|-
| remove_trait
|remove_nick
| Removes [trait id] from [character id], if no character is specified then the player character. Pressing tab reveals all trait IDs.
| 移除 [ 角色id] 的当前[[绰号]] ,如果没有指定角色id则默认为玩家角色。
| [trait id] [character id]
|[ 角色id]
| remove_trait witch
|remove_nick
|-
|-
| set_culture
|remove_relation
| Changes the culture to [culture id] for [character id], if no character is specified then the player character. Pressing tab reveals all culture IDs.
| 移除 [ 关系id] [ 角色id] 和 [角色id] 之间的),如果只指定了一个角色,则默认为指定角色和玩家角色之间移除关系。
| [culture id] [character id]
|[ 关系id] [ 角色id]
| set_culture swedish
|remove_relation friend 1234
|-
|-
| set_dread
|remove_trait
| Sets the dread to [amount] for [character id], if no character is specified then the player character.
|[ 特质id] [ 角色id] 上移除 ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有特质ID。
| [amount] [character id]
|[ 特质id] [ 角色id]
| set_dread 100
|remove_trait witch
|-
|-
| set_faith
|set_culture
| Changes the faith to [faith id] for [character id], if no character is specified then the player character. Pressing tab reveals all faith IDs.
|[ 角色id] 的文化改变为 [ 文化id] ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有文化ID。
| [faith id] [character id]
|[ 文化id] [ 角色id]
| set_faith catholic
|set_culture swedish
|-
|-
| set_focus
|set_dread
| Sets the focus to [focus id] for [character id], if no character is specified then the player character.
|[ 角色id] 的恐怖值设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色。
| [focus id] [character id]
|[ 指定数值] [ 角色id]
| set_focus diplomacy_majesty_focus
|set_dread 100
|-
|-
| set_nick
|set_faith
| Gives [ [[nickname id]] ] to [character id], if no character is specified then the player character.
|[ 角色id] 的信仰改变为 [ 信仰id] ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有信仰ID。
| [ [[nickname id]] ] [character id]
|[ 信仰id] [ 角色id]
| set_nick nick_the_lazy
|set_faith catholic
|-
|-
| set_sexuality
|set_focus
| Changes the sexual orientation to [sexuality id] for [character id], if no character is specified then the player character.
|[ 角色id] 的重心设定为 [ 重心id] ,如果没有指定角色id则默认为玩家角色。
| [sexuality id] [character id]
|[ 重心id] [ 角色id]
| set_sexuality bisexual
|set_focus diplomacy_majesty_focus
|-
|-
| set_stress
|set_nick
| Sets the stress to [amount] for [character id], if no character is specified then the player character.
| 添加 [<nowiki/>[[绰号|绰号id]]] [ 角色id] ,如果没有指定角色id则默认为玩家角色。
| [amount] [character id]
|[<nowiki/>[[绰号|绰号id]]] [ 角色id]
| set_stress 0
|set_nick nick_the_lazy
|-
|-
| set_diplomacy
|set_sexuality
| Sets the diplomacy skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的性取向改变为 [ 性取向id] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 重心id] [ 角色id]
| set_diplomacy 16
|set_sexuality bisexual
|-
|-
| set_martial
|set_stress
| Sets the martial skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的压力设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 指定数值] [ 角色id]
| set_martial 16
|set_stress 0
|-
|-
| set_stewardship
|set_diplomacy
| Sets the stewardship skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的外交能力设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 指定数值] [ 角色id]
| set_stewardship 16
|set_diplomacy 16
|-
|-
| set_intrigue
|set_martial
| Sets the intrigue skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的军事能力设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 指定数值] [ 角色id]
| set_intrigue 16
|set_martial 16
|-
|-
| set_learning
|set_stewardship
| Sets the learning skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的管理能力设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 指定数值] [ 角色id]
| set_learning 16
|set_stewardship 16
|-
|-
| set_prowess
|set_intrigue
| Sets the prowess skill to [amount] for [character id], if no character is specified then the player character.
|[ 角色id] 的谋略能力设定为 [ 指定数值] ,如果没有指定角色id则默认为玩家角色
| [amount] [character id]
|[ 指定数值] [ 角色id]
| set_prowess 16
|set_intrigue 16
|-
|-
| yesmen
|set_learning
| 玩家的所有 外交互动强制同意
|[角色id] 的学识能力设定为 [指定数值],如果没有指定角色id则默认为 玩家 角色
| None
|[指定数值] [角色id]
| yesmen
|set_learning 16
|-
|set_prowess
|[角色id]  勇武能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|[指定数值] [角色id]
|set_prowess 16
|-
|set_date
|将日期设定为 [年.月.日],如果没有指定年份与日期则默认为一月一日
|[年.月.日]
|set_date 1066.9.15
|-
|yesmen
|AI角色接受 所有 提议。再次输入则失效
|
|yesmen
|}
|}


== Testing commands ==
== 测试指令 ==
Testing commands are used for developer, beta tester or modder testing.
测试指令被用于开发人员,测试员或模组制作者进行测试。
{| class="wikitable"
{| class="wikitable" width=100%
! Command
! 指令
! Effect
! 效果
! Parameters
! 参数
! Example
! 举例
|-
|clear
|清除控制台历史输入。
|无
|clear
|-
| dump_bookmark_portraits
| Creates bookmark portraits of all current bookmark characters, stored in {{cite file|Documents\Paradox Interactive\Crusader Kings III\common\bookmark_portraits}}. Any changes applied through the barbershop will be kept.
| 无
| dump_bookmark_portraits
|-
|effect
|执行脚本效果。
To run the effect on a character other than the player, use <code>effect character:<character_id> = {<effect_name> = <parameters>}</code>
|[效果脚本]
|effect test
|-
|-
| clear
|faction_spawn
| 清除控制台历史输入
| 生成 [派系类型],如果存在有效的省份或廷臣来建立它
| None
|[派系类型]
| clear
|faction_spawn peasant_faction
|-
|-
| effect
|generate_cadet_coa
| Executes a scripted effect.
| 为玩家角色的家族生成一个新的盾徽。
| [effect script]
|
| effect test
|generate_cadet_coa
|-
|-
| faction_spawn
|help
| Spawns [faction type] if there are valid counties or courtiers to create it.
| 输出 [ 指令] 的相关描述,如果为空则列出所有控制台指令。
| [faction type]
|[ 指令]
| faction_spawn peasant_faction
|help help
|-
|-
| generate_cadet_coa
|instamove
| Generates a new coat of arms for the player character's house.
| 军队每一天移动一个男爵领。(同时影响AI和玩家)
| None
|
| generate_cadet_coa
|instamove
|-
|-
| help
|map_editor
| 列出所有可输入的命令
| 打开地图编辑器
| [command]
|
| help help
|map_editor
|-
|-
| instamove
|nomen
| Armies move one barony per day. (Affects AI as well as the player)
|AI 角色拒绝所有提议。再次输入则失效。
| None
|
| instamove
|nomen
|-
|-
| map_editor
|observe
| Opens the map editor.
| 进入观察者模式。
| None
|
| map_editor
|observe
|-
|-
| nomen
|play
| AI characters refuse all proposals. Entering it again disables it.
| 切换角色为 [角色id]。
| None
|[角色id]
| nomen
|play 1234
|-
|-
| observe
|portrait_editor
| Enters observer mode.
| 打开肖像编辑器。
| None
|
| observe
|portrait_editor
|-
|-
| play
| reload
| Switches character to [character id].
| 重载模组和游戏文件到内存中。按tab键查看可以重载的所有(许多)可能目标。
| [character id]
| [filename][target]
| play 1234
| reload events
|-
|-
| portrait_editor
|run
| Opens the portrait editor.
| 执行 [文件名称] 中的指令。txt文件必须位于<code>Documents/Paradox Interactive/Crusader Kings III/run</code>。
| None
|
| portrait_editor
|run test.txt
|-
|-
| run
|set_is_ai
| Executes the commands in [file name]. The txt file must be placed in Documents/Paradox Interactive/Crusader Kings III/run.
| 允许AI控制 [ 角色id]
| None
|[角色id]
| run test.txt
|set_is_ai 1234
|-
|-
| set_is_ai
|set_is_player
| Allows the AI to control [character id].
| 禁止AI控制 [ 角色id]
| [character id]
|[ 角色id]
| set_is_ai 1234
|set_is_player 1234
|-
|-
| set_is_player
|script_docs
| Disallows the AI to control [character id].
| 将所有的effects、event scopes、modifiers、on actions、triggers等输出到{{cite file|Documents\Paradox Interactive\Crusader Kings III\logs}}。
| [character id]
|
| set_is_player 1234
|script_docs
|}
|}


== Trait IDs ==
== 特质ID==
{{main|Traits}}
{{main| 特质}}
All traits have an ID that is referenced internally by the game. They can be found in <code>game\common\traits\00_traits.txt</code>. 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
所有特质都有一个ID用于在游戏内部引用。它们可以在<code>game\common\traits\00_traits.txt</code> 中找到。特质ID通常和它们的名称匹配。执行以下步骤可以根据特质的名称获得其ID:
* Replace spaces (<code> </code>) and dashes (<code>-</code>) with underscores (<code>_</code>)
 
* Remove all apostrophes (<code>'</code>)
* 如果特质在英文游戏中显示有两个名称,使用括号中的那个。
* Turn all upper case letters into lower case (<code>A...Z->a...z</code>)
* 使用下划线(<code>_</code> )替换空格(<code> </code> )和连接符(<code>-</code>
Traits that do not follow this pattern have been listed below for reference.
* 移除所有格符号(<code>'</code>
* 将大写字母换为小写字母(<code>A...Z->a...z</code>
 
下面列出了不符合这一模式的特质,以供参考。


{| class="wikitable" style="float: left; margin-right: 30px;"
{| class="wikitable" style="float: left; margin-right: 30px;"
! 教育特质
!教育特质
! ID
!ID
|-
|-
| {{icon|Naive Appeaser}} 天真的绥靖者
|{{icon|Naive Appeaser}} 天真的绥靖者
| education_diplomacy_1
|education_diplomacy_1
|-
|-
| {{icon|Adequate Bargainer}} 合格的谈判者
|{{icon|Adequate Bargainer}} 合格的谈判者
| education_diplomacy_2
|education_diplomacy_2
|-
|-
| {{icon|Charismatic Negotiator}} 魅力非凡的说客
|{{icon|Charismatic Negotiator}} 魅力非凡的说客
| education_diplomacy_3
|education_diplomacy_3
|-
|-
| {{icon|Grey Eminence}} 幕后操控人
|{{icon|Grey Eminence}} 幕后操控人
| education_diplomacy_4
|education_diplomacy_4
|-
|-
| {{icon|Misguided Warrior}} 鲁莽的战士
|{{icon|Misguided Warrior}} 鲁莽的战士
| education_martial_1
|education_martial_1
|-
|-
| {{icon|Tough Soldier}} 坚强的战士
|{{icon|Tough Soldier}} 坚强的战士
| education_martial_2
|education_martial_2
|-
|-
| {{icon|Skilled Tactician}} 优秀战术家
|{{icon|Skilled Tactician}} 优秀战术家
| education_martial_3
|education_martial_3
|-
|-
| {{icon|Brilliant Strategist}} 天才军事家
|{{icon|Brilliant Strategist}} 天才军事家
| education_martial_4
|education_martial_4
|-
|-
| {{icon|Indulgent Wastrel}} 放荡的浪子
|{{icon|Indulgent Wastrel}} 放荡的浪子
| education_stewardship_1
|education_stewardship_1
|-
|-
| {{icon|Thrifty Clerk}} 节俭的职员
|{{icon|Thrifty Clerk}} 节俭的职员
| education_stewardship_2
|education_stewardship_2
|-
|-
| {{icon|Fortune Builder}} 财富创造者
|{{icon|Fortune Builder}} 财富创造者
| education_stewardship_3
|education_stewardship_3
|-
|-
| {{icon|Midas Touched}} 点石成金者
|{{icon|Midas Touched}} 点石成金者
| education_stewardship_4
|education_stewardship_4
|-
|-
| {{icon|Amateurish Plotter}} 业余阴谋家
|{{icon|Amateurish Plotter}} 业余阴谋家
| education_intrigue_1
|education_intrigue_1
|-
|-
| {{icon|Flamboyant Trickster}} 浮夸的诈骗师
|{{icon|Flamboyant Trickster}} 浮夸的诈骗师
| education_intrigue_2
|education_intrigue_2
|-
|-
| {{icon|Intricate Webweaver}} 暗中策划者
|{{icon|Intricate Webweaver}} 暗中策划者
| education_intrigue_3
|education_intrigue_3
|-
|-
| {{icon|Elusive Shadow}} 难以捉摸的影子
|{{icon|Elusive Shadow}} 难以捉摸的影子
| education_intrigue_4
|education_intrigue_4
|-
|-
| {{icon|Conscientious Scribe}} 尽职的书吏
|{{icon|Conscientious Scribe}} 尽职的书吏
| education_learning_1
|education_learning_1
|-
|-
| {{icon|Insightful Thinker}} 有见地的思想家
|{{icon|Insightful Thinker}} 有见地的思想家
| education_learning_2
|education_learning_2
|-
|-
| {{icon|Astute Intellectual}} 明睿的智者
|{{icon|Astute Intellectual}} 明睿的智者
| education_learning_3
|education_learning_3
|-
|-
| {{icon|Mastermind Philosopher}} 哲学大师
|{{icon|Mastermind Philosopher}} 哲学大师
| education_learning_4
|education_learning_4
|-
|-
| {{icon|Bumbling Squire}} 笨手笨脚的扈从
|{{icon|Bumbling Squire}} 笨手笨脚的扈从
| education_martial_prowess_1
|education_martial_prowess_1
|-
|-
| {{icon|Confident Knight}} 自信的骑士
|{{icon|Confident Knight}} 自信的骑士
| education_martial_prowess_2
|education_martial_prowess_2
|-
|-
| {{icon|Formidable Banneret}} 令人敬畏的方旗骑士
|{{icon|Formidable Banneret}} 令人敬畏的方旗骑士
| education_martial_prowess_3
|education_martial_prowess_3
|-
|-
| {{icon|Famous Champion}} 著名勇士
|{{icon|Famous Champion}} 著名勇士
| education_martial_prowess_4
|education_martial_prowess_4
|}
|}
{| class="wikitable" style="float: left; margin-right: 30px;"
{| class="wikitable" style="float: left; margin-right: 30px;"
! 先天特质
!先天特质
! ID
!ID
|-
|-
| {{icon|Homely}} 其貌不扬
|{{icon|Homely}} 其貌不扬
| beauty_bad_1
|beauty_bad_1
|-
|-
| {{icon|Ugly}} 丑陋不堪
|{{icon|Ugly}} 丑陋不堪
| beauty_bad_2
|beauty_bad_2
|-
|-
| {{icon|Hideous}} 面目狰狞
|{{icon|Hideous}} 面目狰狞
| beauty_bad_3
|beauty_bad_3
|-
|-
| {{icon|Comely}} 眉清目秀
|{{icon|Comely}} 眉清目秀
| beauty_good_1
|beauty_good_1
|-
|-
| {{icon|Handsome}} 螓首蛾眉 / 英姿飒爽
|{{icon|Handsome}} 螓首蛾眉 / 英姿飒爽
| beauty_good_2
|beauty_good_2
|-
|-
| {{icon|Beautiful}} 倾国倾城
|{{icon|Beautiful}} 倾国倾城
| beauty_good_3
|beauty_good_3
|-
|-
| {{icon|Slow}} 迟钝
|{{icon|Slow}} 迟钝
| intellect_bad_1
|intellect_bad_1
|-
|-
| {{icon|Stupid}} 愚笨
|{{icon|Stupid}} 愚笨
| intellect_bad_2
|intellect_bad_2
|-
|-
| {{icon|Imbecile}} 痴呆
|{{icon|Imbecile}} 痴呆
| intellect_bad_3
|intellect_bad_3
|-
|-
| {{icon|Quick}} 敏锐
|{{icon|Quick}} 敏锐
| intellect_good_1
|intellect_good_1
|-
|-
| {{icon|Intelligent}} 聪慧
|{{icon|Intelligent}} 聪慧
| intellect_good_2
|intellect_good_2
|-
|-
| {{icon|Genius}} 天才
|{{icon|Genius}} 天才
| intellect_good_3
|intellect_good_3
|-
|-
| {{icon|Delicate}} 纤弱
|{{icon|Delicate}} 纤弱
| physique_bad_1
|physique_bad_1
|-
|-
| {{icon|Frail}} 脆弱
|{{icon|Frail}} 脆弱
| physique_bad_2
|physique_bad_2
|-
|-
| {{icon|Feeble}} 衰弱
|{{icon|Feeble}} 衰弱
| physique_bad_3
|physique_bad_3
|-
|-
| {{icon|Hale}} 硬朗
|{{icon|Hale}} 硬朗
| physique_good_1
|physique_good_1
|-
|-
| {{icon|Robust}} 健壮
|{{icon|Robust}} 健壮
| physique_good_2
|physique_good_2
|-
|-
| {{icon|Amazonian}} 阿玛宗 / 海格力斯
|{{icon|Amazonian}} 阿玛宗 / 海格力斯
| physique_good_3
|physique_good_3
|-
|-
| {{icon|Melancholic}} 抑郁 症患者
|{{icon|Melancholic}} 抑郁
| depressed_1 / depressed_genetic
|depressed_1 / depressed_genetic
|-
|-
| {{icon|Lunatic}} 精神错乱
|{{icon|Lunatic}} 精神错乱
| lunatic_1 / lunatic_genetic
|lunatic_1 / lunatic_genetic
|-
|-
| {{icon|Possessed}} 附身
|{{icon|Possessed}} 附身
| possessed_1 / possessed_genetic
|possessed_1 / possessed_genetic
|}
|}
{| class="wikitable" style="float: left; margin-right: 30px;"
{| class="wikitable" style="float: left; margin-right: 30px;"
! 生活特质
!生活特质
! ID
!ID
|-
|{{icon|Aspiring Blademaster}} 立志的剑客
|blademaster_1
|-
|-
| [[File:Trait blademaster 1.png|24px]] Aspiring Blademaster
|{{icon|Blademaster}} 刀剑大师
| blademaster_1
|blademaster_2
|-
|-
| [[File:Trait blademaster 2.png|24px]] Blademaster
|{{icon|Legendary Blademaster}} 传奇剑圣
| blademaster_2
|blademaster_3
|-
|-
| [[File:Trait blademaster 3.png|24px]] Legendary Blademaster
|{{icon|Novice Hunter}} 新手猎人
| blademaster_3
|hunter_1
|-
|-
| [[File:Trait hunter 1.png|24px]] Novice Hunter
|{{icon|Hunter}} 猎人
| hunter_1
|hunter_2
|-
|-
| [[File:Trait hunter 2.png|24px]] Hunter
|{{icon|Master Hunter}} 狩猎大师
| hunter_2
|hunter_3
|-
|-
| [[File:Trait hunter 3.png|24px]] Master Hunter
|{{icon|Wise Man}} 智者 / 女智者
| hunter_3
|mystic_1
|-
|-
| [[File:Trait mystic 1.png|24px]] Wise Man / Wise Woman
|{{icon|Mystic}} 神秘主义者
| mystic_1
|mystic_2
|-
|-
| [[File:Trait mystic 2.png|24px]] Mystic
|{{icon|Miracle Worker}} 行奇迹者
| mystic_2
|mystic_3
|-
|-
| [[File:Trait mystic 3.png|24px]] Miracle Worker
|{{icon|Eager Reveler}} 热切的狂欢者
| mystic_3
|reveler_1
|-
|-
| [[File:Trait reveler 1.png|24px]] Eager Reveler
|{{icon|Famous Reveler}} 著名的狂欢者
| reveler_1
|reveler_2
|-
|-
| [[File:Trait reveler 2.png|24px]] Famous Reveler
|{{icon|Legendary Reveler}} 传奇的狂欢者
| reveler_2
|reveler_3
|-
|-
| [[File:Trait reveler 3.png|24px]] Legendary Reveler
|{{icon|Novice Physician}} 新手医生
| reveler_3
|physician_1
|-
|-
| [[File:Trait physician 1.png|24px]] Novice Physician
|{{icon|Physician}} 医生
| physician_1
|physician_2
|-
|-
| [[File:Trait physician 2.png|24px]] Physician
|{{icon|Renowned Physician}} 著名医师
| physician_2
|physician_3
|-
|-
| [[File:Trait physician 3.png|24px]] Renowned Physician
|{{icon|Patriarch}} 顾家男人 / 顾家女人
| physician_3
|family_first
|-
|-
| {{icon|Patriarch}} 顾家男人/顾家女人
| {{iconify|Herbalist|草药师}}
| family_first
| lifestyle_herbalist
|}
|}
<!-- Creation of this table was partly aided by this script: https://github.com/SaucyPigeon/ck3_mapdata -->
{| class="wikitable" style="float: left; margin-right: 30px;"
{| class="wikitable" style="float: left; margin-right: 30px;"
! Trait (other)
! 其他特质
!ID
|-
|{{icon|Dynastic Kinslayer}} 弑族亲者
|kinslayer_1
|-
|{{icon|Familial Kinslayer}} 弑亲族者
|kinslayer_2
|-
|{{icon|Kinslayer}} 弑至亲者
|kinslayer_3
|-
|{{icon|Wounded}} 受伤
|wounded_1
|-
|{{icon|Severely Injured}} 身受重伤
|wounded_2
|-
|{{icon|Brutally Mauled}} 严重撕裂
|wounded_3
|-
|{{icon|Sterile}} 不育 / 不孕
|infertile
|-
|{{icon|Monk}} 修士 / 修女
|devoted
|-
|{{icon|Crusader}} 十字军战士<br>{{icon|Mujahid}} 圣战士<br>{{icon|Warrior of the Faith}} 信仰勇士
|faith_warrior
|-
|{{icon|Holy Monarch}} 圣君
|crusader_king
|-
|{{icon|Pneumonia}} 肺炎
|pneumonic
|-
|{{icon|Club-footed}} 足内翻
|clubfooted
|-
|{{icon|The Savior}} 救主
|savior
|-
|{{icon|Raider}} 劫掠者 / 维京
|viking
|-
|{{icon|Lover's pox}} {{icon|Great pox}} 情人的疱疹
|lovers_pox/early_great_pox
|-
|{{icon|Blood of the Prophet}} 先知的血脉(未生效)
|blood_of_prophet
|-
|{{icon|Child of Concubine}} 庶出
|child_of_concubine_female
|-
|{{icon|Child of Consort}} 庶出
|child_of_concubine_male
|-
|{{icon|Pilgrim}} 朝圣者<br>{{icon|Hajji}} 朝觐者 / 朝觐妇
|pilgrim
|}
{{clear}}
 
== 革新ID ==
{{main|革新}}
{{hatnote|中文用户推荐参考[[革新#革新列表|革新]]词条中列出的ID}}
革新ID通常和他们的名称相对应。但以下革新使用的ID不同:
{| class="wikitable"
! 革新
! ID
! ID
|-
|-
| {{icon|Dynastic Kinslayer}}
| [[File:Innovation majesty 02.png|35px]] 货币 || innovation_currency_01
| kinslayer_1
|-
|-
| {{icon|Familial Kinslayer}}
| [[File:Innovation civil construction 01.png|35px]] 公共工程 || innovation_development_01
| kinslayer_2
|-
|-
| {{icon|Kinslayer}}
| [[File:Innovation siege weapons.png|35px]] 野驴炮 || innovation_catapult
| kinslayer_3
|-
|-
| {{icon|Wounded}}
| [[File:Innovation special maa 02.png|35px]] 诸葛弩 || innovation_repeating_crossbow
| wounded_1
|-
|-
| {{icon|Severely Injured}}
| [[File:Innovation special maa 01.png|35px]] 防守战术 || innovation_mobile_guards
| wounded_2
|-
|-
| {{icon|Brutally Mauled}}
| [[File:Innovation special maa 01.png|35px]] 骠骑兵突袭 || innovation_hussar_raids
| wounded_3
|-
|-
| {{icon|Sterile}} / Barren
| [[File:Innovation misc inventions.png|35px]] 长船 || innovation_longboats
| infertile
|-
|-
| {{icon|Monk}} / Nun
| [[File:Innovation majesty 01.png|35px]] 西非独木舟 || innovation_african_canoes
| devoted
|-
|-
| {{icon|Crusader}}<br>{{icon|Mujahid}}<br>{{icon|Warrior of the Faith}}
| [[File:Innovation nobility 01.png|35px]] 金属硬币 || innovation_currency_02
| faith_warrior
|-
|-
| {{icon|Holy Monarch}}
| [[File:Innovation nobility 03.png|35px]] 社区治理 || innovation_development_02
| crusader_king
|-
|-
| {{icon|Pneumonia}}
| [[File:Innovation maa 01.png|35px]] 家兵 || innovation_house_soldiers
| pneumonic
|-
|-
| {{icon|Club-footed}}
| [[File:Innovation maa 02.png|35px]] 沙漠山地经验 || innovation_desert_mountain_herding
| clubfooted
|-
|-
| {{icon|The Savior}}
| [[File:Innovation majesty 03.png|35px]] 部落公国 || innovation_stem_duchies
| savior
|-
|-
| {{icon|Blood of the Prophet}} (unused)
| [[File:Innovation majesty 02.png|35px]] 银行业 || innovation_currency_03
| blood_of_prophet
|-
|-
| {{icon|Raider}} / Viking
| [[File:Innovation civil construction 01.png|35px]] 城市化 || innovation_development_03
| viking
|-
|-
| {{icon|Lover's pox}} / {{icon|Great pox}} Early Great Pox (mimics Lover's Pox)
| [[File:Innovation misc inventions.png|35px]] 东向移民 || innovation_east_settling
| early_great_pox
|-
| [[File:Innovation administration 01.png|35px]] 本票 || innovation_currency_04
|-
| [[File:Innovation misc inventions.png|35px]] 文艺复兴思想 || innovation_development_04
|}
|}
{{clear}}


== Title IDs ==
== 头衔ID ==
{{main|Titles}}
{{main| 头衔}}
All titles have an internal title ID that can be found in <code>game\common\landed_titles\00_landed_titles.txt</code>. Title IDs have a prefix based on their rank, followed by an underscore (<code>_</code>) and then their name.
 
所有头衔都有一个内部头衔ID,在<code>game\common\landed_titles\00_landed_titles.txt</code> 中可以找到。头衔ID有一个基于头衔等级的前缀,后面接上一个下划线(<code>_</code> ),之后连接它们的名称。
 
{| class="mildtable"
{| class="mildtable"
! Rank
! 等级
! Prefix
! 前缀
! Example
! 举例
|-
|-
| {{iconify|Barony}}
|{{icon|Barony}} 男爵领
| <code>b_</code>
|<code>b_</code>
| <code>Wigmore -> b_wigmore</code>
|<code>Wigmore -> b_wigmore</code>
|-
|-
| {{iconify|County}}
|{{icon|County}} 伯爵领
| <code>c_</code>
|<code>c_</code>
| <code>Sundgau -> c_sundgau</code>
|<code>Sundgau -> c_sundgau</code>
|-
|-
| {{iconify|Duchy}}
|{{icon|Duchy}} 公国
| <code>d_</code>
|<code>d_</code>
| <code>Sicily -> d_sicily</code>
|<code>Sicily -> d_sicily</code>
|-
|-
| {{iconify|Kingdom}}
|{{icon|Kingdom}} 王国
| <code>k_</code>
|<code>k_</code>
| <code>Denmark -> k_denmark</code>
|<code>Denmark -> k_denmark</code>
|-
|-
| {{iconify|Empire}}
|{{icon|Empire}} 帝国
| <code>e_</code>
|<code>e_</code>
| <code>Persia -> e_persia</code>
|<code>Persia -> e_persia</code>
|-
|-
|}
|}
Title IDs can also be seen in their respective title lists:
 
* [[List of baronies]]
{{hatnote|中文用户推荐参考相关列表中列出的头衔ID:}}
* [[List of counties]]
*[[ 伯爵领列表]]
* [[List of duchies]]
*[[ 公国列表]]
* [[List of kingdoms]]
*[[ 王国列表]]
* [[List of empires]]
*[[ 帝国列表]]
=== 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:
=== 根据游戏内名称查找头衔ID ===
* Navigate to the file located at <code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> with your game language.
头衔ID可能并不和游戏中头衔名称完全匹配。例如,玩家可能将游戏设置为英语外的其他语言,或者头衔存在文化特有名称。依靠以下步骤,只根据游戏内名称寻找头衔ID:
* Open the file with a text editor like Notepad++ and search for any instances of the in-game name using {{key press|CTRL}} + {{key press|F}}.
 
* If you managed to find a match:
* 找到文件<code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code> ,将<code>LANGUAGE</code> 替代为你使用的语言。
** The line should look similar to <code> b_my_barony_name:0 "In-game name for barony"</code>.
**简体中文:<code>game\localization\simp_chinese\titles_l_simp_chinese.yml</code>。
** The title ID is the word before the <code>:0</code>, therefore being <code>b_my_barony_name</code> in this example.
* 使用文本编辑器如Notepad++ 、Notepad3打开文件,使用 {{key press|CTRL}} + {{key press|F}} 搜索游戏内的头衔名称。
* If you could not find a match:
* 如果你成功了找到匹配项:
** Close the file.
** 这一行应该看起来类似于<code>b_constantinople:0 " 君士坦丁堡"</code>
** In the same folder as the previous file, open the file <code>titles_cultural_names_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> appropriately.
** 头衔ID是<code>:0</code> 前的代码,因此在这个例子中是<code>b_constantinople</code>
** Repeat your search for the title's in-game name in this file.
* 如果你没有找到匹配项:
** When you find a match, it should look like so: <code> cn_lunden:0 "Lunden"</code>.
** 关闭文件。
** Remember/copy the word before the <code>:0</code> (in this example, <code>cn_lunden</code>); this is a ''cultural name key'' of the title.
** 在同一文件夹中打开<code>titles_cultural_names_l_LANGUAGE.yml</code> ,同样替换<code>LANGUAGE</code>
** Close the file.
***简体中文:<code>game\localization\simp_chinese\titles_cultural_names_l_simp_chinese.yml</code>。
** Navigate to the file <code>game\common\landed_titles\00_landed_titles.txt</code> and open it with your text editor.
**在该文件中再次搜索该头衔在游戏中的名称。
** Perform a search for the ''cultural name key'' you found in the previous file (e.g., <code>cn_lunden</code>).
** 当你找到匹配项,它应该看起来类似于:<code>cn_lunden:0 " 林登"</code>
** The search query should land within a block named <code>cultural_names</code> enclosed by curly brackets (<code>{</code>, <code>}</code>).
** 记住/ 复制<code>:0</code> 前的代码(在这个例子中即为<code>cn_lunden</code> );这是头衔的'' 文化名称键值''
** Read the lines above until you reach another start of a block (denoted by <code>b_london = {</code>). Ignore any blocks like <code>color = {</code> or <code>color2 ={</code>.
** 关闭文件。
** The word in place of <code>b_london</code> is your title ID.
** 找到文件<code>game\common\landed_titles\00_landed_titles.txt</code> ,用文本编辑器打开它。
=== Finding custom title ID ===
** 在这个文件中搜索之前找到的'' 文化名称键值'' 。(这个例子中即为<code>cn_lunden</code> )。
Custom titles (i.e. the title of a player created Empire) do not follow the same naming convention. To find the ID:
** 搜索结果应该位于一个名为<code>cultural_names</code> 的代码块中,用花括号括起来(<code>{</code>, <code>}</code> )。
* From the debug console use the command <code>explorer</code> to open Object Browser
** 阅读结果前面的代码,直到另一个代码块的开始(这个例子中表示为<code>b_london = {</code> )。忽略如<code>color = {</code> or <code>color2 ={</code> 的代码块。
* In Object Browser choose Provider: Landed Titles
** <code>b_london</code> 中的代码即为你的头衔ID。
* Enter search term
 
* Hover over the Name field to show the title card
=== 查找自定义头衔的ID ===
[[File:查找自定义头衔ID.png|thumb|right|500px|查找自定义头衔ID]]
自定义头衔(即玩家自己创建的王国/帝国)不遵循前面的名称规定。要找到ID:
 
* 使用控制台,输入指令<code>explorer</code> 打开Object Browser
* 在Object Browser 中选择Provider为Landed Titles
* 在search key中输入搜索名称。
* 搜索结果中,鼠标悬停在name一项中,会显示头衔卡片。
 
== 另见 ==
* [[绰号|绰号ID]]
* [[Decisions modding|决议ID]]
 
== 参考资料 ==
<references/>
 
{{Modding navbox}}
{{Modding navbox}}
[[Category: 模组制作]]
[[Category:模组制作]]
[[en:Console commands]]
[[en:Console commands]]

2023年8月7日 (一) 15:13的最新版本

此条目列出能够输入控制台窗口的指令。控制台窗口是一个特殊的调试窗口,可以在调试模式下的非铁人开局中,按下 ⇧Shift+2Alt+2+1⇧Shift+3§~^°²` (键盘布局不同,按键不同)来打开。对于QWERTY键盘,按键是`。此外,如果上述方法不能奏效,⇧Shift+Alt+C 可能有效。使用上下箭头键可以遍历之前使用过的指令。许多指令可以通过再次输入来关闭,但有时重新加载保存或退出游戏是必要的。

在打开调试模式的情况下,可以将鼠标悬停在角色肖像上来查看角色ID。

调试模式[编辑 | 编辑源代码]

调试模式是游戏中的一组工具,允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:

  • 控制台端口(接收指定命令)
  • 调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等)
  • 调试信息
  • 调试角色互动(玩家可以立即更改意见、囚禁等)
  • ^Ctrl + 点击肖像将控制角色,而 Alt +点击肖像将杀死他们。
  • File watcher自动重载被更改的文件(包括模组)到内存中。

启用调试模式[编辑 | 编辑源代码]

Debug模式能在启动游戏前开启和/或在游戏中使用mods开启. 它能通过控制台面板的按钮关闭,但一旦关闭就不能在游戏中重新开启(除非使用mods)。

怎么开启它:

Mods[编辑 | 编辑源代码]

有些mods,例如:Free Console AccessDebug Toggle

他们允许开关debug模式,让游戏中能够方便的使用控制台游玩,但是重新读取文件需要时间。对于mod制作者,同时使用启动器选项和mod更好。

启动器[编辑 | 编辑源代码]

在游戏启动器中:

  1. 点击左侧的游戏设置
  2. 滑到“以调试模式打开游戏”项,点击“启动”按钮。

Steam[编辑 | 编辑源代码]

在Steam中:

  1. 右键游戏旁的齿轮图标,再点击属性
  2. 在通用界面把 -debug_mode 写进启动选项
  3. 启动游戏

Windows[编辑 | 编辑源代码]

如果你没有安装Steam,则在Windows系统上:

  1. 打开CK3游戏文件目录下的binaries文件夹
  2. 右击ck3.exe来创建一个快捷方式
  3. 右击这个快捷方式,点击属性
  4. 在目标栏的最后添加 -debug_mode(所以你会看到目标栏里是这串代码 "...\ck3.exe" -debug_mode
  5. 点击快捷方式启动游戏

GOG[编辑 | 编辑源代码]

On GOG:

  1. Right-click the game, open Settings
  2. Check "Add command line arguments" and enter debug_mode

On GOG Galaxy 2.0:

  1. In the game page, select Settings (next to the Play button at the top of the page)
  2. Open Manage installation and select Configure...
  3. Make sure the Launch parameters "Custom executables / arguments" is ticked at the bottom of the page. You can duplicate the "startgame" executable and type -debug_mode into the Arguments field.

Xbox Game Pass[编辑 | 编辑源代码]

对于Xbox Game Pass版/Windows 10 store版,这有点复杂,因为你不能为其创建一个普通的快捷方式。每次打开游戏时,你都必须在命令提示符中运行以下命令:

start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode

To simplify it, you can also create a batch (.bat) file with this command and run it from the desktop:

  1. Right-click on your Desktop, choose New -> Text Document.
  2. Rename it to "ck3.bat". Make sure to remove ".txt" from the end. Confirm changes when prompted.
  3. Right-click the file and select Edit.
  4. Paste the command: start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode
  5. Save the file
  6. Double-click it to start the game

关闭调试模式[编辑 | 编辑源代码]

如果要继续达成成就,则关闭所有功能Mod并从启动选项中删除-debug_mode。 在开始游戏后,确保你的校验码未改变。它可以在加入游戏窗口的右上角找到。

调试信息[编辑 | 编辑源代码]

调试模式启动时,角色、互动和事件将显示在正常游戏中隐藏的调试信息。

角色[编辑 | 编辑源代码]

调试模式中角色的以下数值会显示:

名称 描述
ID 角色ID。用于在事件和控制台指令中引用它们。
历史ID
生育力 显示为百分比的角色生育力
健康 角色的健康数值。数值有一位小数。
压力 角色拥有的压力值。
基础体重 体重机制有关。
目标体重 体重机制有关。
当前体重 体重机制有关。

事件[编辑 | 编辑源代码]

将鼠标悬停在事件选项上时会显示该选项的AI权重。同时,在事件窗口的右上角,将鼠标悬停在问号上(?),将显示内部详细信息,包括以下内容:

  • Event ID
  • Character for whom the event triggered
  • Root character
  • Saved event targets
  • Saved list targets
  • Descriptions

互动[编辑 | 编辑源代码]

在点击互动后弹出的窗口中,将鼠标悬停在按钮右边的紫色R上,将显示root scope, the primary/secondary actors 和 the primary/secondary recipients。

作弊[编辑 | 编辑源代码]

下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的。它们和脚本指令不同。注意,在调试窗口打开时,按下 ⇆Tab 将显示指令列表,在输入选择的指令后,按下 ⇆Tab 将在调试窗口中显示适用于该指令的参数。

指令 效果 参数 举例
age 添加 [指定数值] 的年龄到 [角色id], 如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少年龄。 [指定数值] [角色id] age 20
add_claim 添加宣称 [头衔id] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。 [角色id] [头衔id] add_claim e_hre
add_doctrine 添加 [教义id] 到 [信仰id] 中,如果没有指定信仰则默认为玩家角色的信仰。按下 ⇆Tab 将显示所有教义ID。 [教义id] [信仰id] add_doctrine doctrine_pluralism_fundamentalist catholic
add_dread 添加恐惧值 [指定数值] 到 [角色id] , 如果没有指定角色id则默认为玩家角色。 [指定数值] [角色id] add_dread 100
add_maa 添加兵士的 [军团 id] 给 [角色id],如果没有指定角色id则默认为玩家角色。 [军团id] [角色id] add_maa bowmen
add_perk 添加 [技能id] 到 [角色id] ,如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有技能ID。 [技能id] [角色id] add_perk thoughtful_perk
add_piety 给玩家添加 [指定数值] 的虔诚,数字前面添加“-”为减少虔诚,默认输入此命令得到1000虔诚。 [指定数值] add_piety 9000
add_prestige 给玩家添加 [指定数值] 的声望,数字前面添加“-”为减少声望,默认输入此命令得到1000声望。 [指定数值] add_prestige 16000
add_realm_law [法律id] 在 [角色id] 的领地通过 ,如果没有指定角色id则默认为玩家角色的领地。按下 ⇆Tab 将显示所有法律ID。 [法律id] [角色id] add_realm_law crown_authority_3
add_realm_law_skip_effects [法律id] 在 [角色id] 的领地添加 ,如果没有指定角色id则默认为玩家角色的领地。按下 ⇆Tab 将显示所有法律ID。 [法律id] [角色id] add_realm_law_skip_effects crown_authority_3
add_relation [关系id] 被添加到 [角色id] 和 [角色id] 之间 ,如果只指定了一个角色,则默认为指定角色和玩家角色之间添加关系。 [关系id] [角色id] add_relation friend 1234
add_secret 给角色添加 [秘密id] 。 [秘密id] add_secret secret_witch
add_stress 增加 [指定数值] 的压力给 [角色id]。如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少压力。 [指定数值] [角色id] add_stress 50
add_title_law [头衔id] 添加 [继承法id](仅开发人员!)。 [头衔id] [法律id] add_title_law e_hre feudal_elective_succession_law
add_trait [特质id] 被添加到 [角色id],如果没有指定角色id则默认为玩家角色,按下 ⇆Tab 将显示所有特质ID。 [特质id] [角色id] add_trait witch
add_lifestyle_xp_all 添加 [指定数值] 的生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。 [指定数值] [角色id] add_lifestyle_xp_all 2000
add_diplomacy_lifestyle_xp 添加 [指定数值] 的外交生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。经验默认输入此命令得到1000经验。 [指定数值] [角色id] add_diplomacy_lifestyle_xp 2000
add_martial_lifestyle_xp 添加 [指定数值] 的军事生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。 [指定数值] [角色id] add_martial_lifestyle_xp 2000
add_stewardship_lifestyle_xp 添加 [指定数值] 的管理生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。 [指定数值] [角色id] add_stewardship_lifestyle_xp 2000
add_intrigue_lifestyle_xp 添加 [指定数值] 的谋略生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。 [指定数值] [角色id] add_intrigue_lifestyle_xp 2000
add_learning_lifestyle_xp 添加 [指定数值] 的学识生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。 [指定数值] [角色id] add_learning_lifestyle_xp 2000
bypass_requirements 允许玩家通过任何决议、领地法更改和头衔创建。 bypass_requirements
change_culture 改变 [伯爵领id] 的文化为 [文化id]。 [伯爵领id] [文化id] change_culture 496 swedish
change_development_level 添加 [指定数值] 的发展度到 [伯爵领id],如果没有指定伯爵领则默认为玩家角色的首都,数字前面添加“-”为降低发展度。 [指定数值] [伯爵领id] change_development_level 100 496
change_fervor 添加 [指定数值] 的宗教热情到 [信仰id],如果没有指定信仰则默认为玩家角色的信仰,数字前面添加“-”为降低宗教热情。默认数值为10。 [指定数值] [信仰id] change_fervor 100 catholic
change_diplomacy 添加 [指定数值] 的外交能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_diplomacy 16
change_martial 添加 [指定数值] 的军事能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_martial 16
change_stewardship 添加 [指定数值] 的管理能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_stewardship 16
change_intrigue 添加 [指定数值] 的谋略能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_intrigue 16
change_learning 添加 [指定数值] 的学识能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_learning 16
change_prowess 添加 [指定数值] 的勇武能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。 [指定数值] [角色id] change_prowess 16
charinfo 在游戏内查看角色ID、角色历史ID、角色生育力、角色健康、角色压力和角色体重。 charinfo
clear_character_modifiers 移除 [角色id] 的所有角色修正,如果没有指定角色id则默认为玩家角色。 [角色id] clear_character_modifiers
clear_title_laws 移除 [头衔id] 的所有头衔继承法。 [头衔id] clear_title_laws e_hre
clear_traits 移除 [角色id] 的所有特质,如果没有指定角色id则默认为玩家角色。 [角色id] clear_traits
discover_all_eras [角色id] 的文化发现所有革新,如果没有指定角色id则默认为玩家角色。 [角色id] discover_all_eras
discover_era 玩家角色的文化进入 [时代id] 同时发现该时代的所有革新。按下 ⇆Tab 将显示所有时代ID。默认为当前时代。 [时代id] discover_era culture_era_early_medieval
discover_fascination [角色id] 的当前文化偏好被发现,如果没有指定角色id则默认为玩家角色。 [角色id] discover_fascination
discover_innovation [革新id] 被 [角色id] 的文化发现,如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有革新ID。 [革新id] [角色id] discover_innovation innovation_motte
dynasty_prestige 添加 [指定数值] 的宗族威望到 [宗族id],如果没有指定宗族则默认为玩家角色的宗族,数字前面添加“-”为减少宗族威望。默认数值为1000。 [指定数值] [宗族id] dynasty_prestige 100000
end_schemes 所有针对玩家角色的计谋被放弃。 end_schemes
effect start_cat_story_cycle_effect 获得一只宠物猫 effect start_cat_story_cycle_effect
effect start_dog_story_cycle_effect 获得一只宠物狗 effect start_dog_story_cycle_effect
event 触发 [事件id]。 [事件id] [角色id] event lifestyle_nicknames.0001
gain_all_dynasty_perks [角色id] 的宗族获得所有宗族传承,如果没有指定角色id则默认为玩家角色。 [角色id] gain_all_dynasty_perks
gain_all_perks [角色id] 获得所有生活方式技能,如果没有指定角色id则默认为玩家角色。 [角色id] gain_all_perks
give_title 添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色,按下 ⇆Tab 将显示所有头衔ID。 [头衔id] [角色id] give_title e_hre
gold 添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。 [指定数值] gold 500
instabuild 玩家角色直辖领地内的地产和建筑一天建成。再次输入则失效。 instabuild
instant_birth 怀孕持续一天。再次输入则失效。 instant_birth
join_era [角色id] 的文化进入 [时代id],如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有时代ID。 [时代id] join_era culture_era_high_medieval
kill 杀死 [角色id],如果没有指定角色id则默认杀死玩家角色。 [角色id] kill
know_schemes 发现针对玩家角色的所有计谋。 know_schemes
merge_culture 改变 [文化id] 下所有伯爵领的文化为 [文化id]。 [文化id] [文化id] merge_culture greek swedish
pregnancy 使女性 [角色id] 怀孕,父亲为 [角色id],如果没有指定父亲角色id则父亲未知。 [角色id] [角色id] pregnancy 1234
remove_doctrine [教义id] 在 [信仰id] 中被移除,如果没有指定信仰则默认为玩家角色的信仰。按下 ⇆Tab 将显示所有教义ID。 [教义id] [信仰id] remove_doctrine doctrine_pluralism_righteous catholic
remove_nick 移除 [角色id] 的当前绰号,如果没有指定角色id则默认为玩家角色。 [角色id] remove_nick
remove_relation 移除 [关系id]([角色id] 和 [角色id] 之间的),如果只指定了一个角色,则默认为指定角色和玩家角色之间移除关系。 [关系id] [角色id] remove_relation friend 1234
remove_trait [特质id] 从 [角色id] 上移除 ,如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有特质ID。 [特质id] [角色id] remove_trait witch
set_culture [角色id] 的文化改变为 [文化id],如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有文化ID。 [文化id] [角色id] set_culture swedish
set_dread [角色id] 的恐怖值设定为 [指定数值],如果没有指定角色id则默认为玩家角色。 [指定数值] [角色id] set_dread 100
set_faith [角色id] 的信仰改变为 [信仰id],如果没有指定角色id则默认为玩家角色。按下 ⇆Tab 将显示所有信仰ID。 [信仰id] [角色id] set_faith catholic
set_focus [角色id] 的重心设定为 [重心id],如果没有指定角色id则默认为玩家角色。 [重心id] [角色id] set_focus diplomacy_majesty_focus
set_nick 添加 [绰号id] 给 [角色id],如果没有指定角色id则默认为玩家角色。 [绰号id] [角色id] set_nick nick_the_lazy
set_sexuality [角色id] 的性取向改变为 [性取向id],如果没有指定角色id则默认为玩家角色 [重心id] [角色id] set_sexuality bisexual
set_stress [角色id] 的压力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_stress 0
set_diplomacy [角色id] 的外交能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_diplomacy 16
set_martial [角色id] 的军事能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_martial 16
set_stewardship [角色id] 的管理能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_stewardship 16
set_intrigue [角色id] 的谋略能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_intrigue 16
set_learning [角色id] 的学识能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_learning 16
set_prowess [角色id] 的勇武能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色 [指定数值] [角色id] set_prowess 16
set_date 将日期设定为 [年.月.日],如果没有指定年份与日期则默认为一月一日 [年.月.日] set_date 1066.9.15
yesmen AI角色接受所有提议。再次输入则失效。 yesmen

测试指令[编辑 | 编辑源代码]

测试指令被用于开发人员,测试员或模组制作者进行测试。

指令 效果 参数 举例
clear 清除控制台历史输入。 clear
dump_bookmark_portraits Creates bookmark portraits of all current bookmark characters, stored in Documents\Paradox Interactive\Crusader Kings III\common\bookmark_portraits. Any changes applied through the barbershop will be kept. dump_bookmark_portraits
effect 执行脚本效果。

To run the effect on a character other than the player, use effect character:<character_id> = {<effect_name> = <parameters>}

[效果脚本] effect test
faction_spawn 生成 [派系类型],如果存在有效的省份或廷臣来建立它。 [派系类型] faction_spawn peasant_faction
generate_cadet_coa 为玩家角色的家族生成一个新的盾徽。 generate_cadet_coa
help 输出 [指令] 的相关描述,如果为空则列出所有控制台指令。 [指令] help help
instamove 军队每一天移动一个男爵领。(同时影响AI和玩家) instamove
map_editor 打开地图编辑器。 map_editor
nomen AI角色拒绝所有提议。再次输入则失效。 nomen
observe 进入观察者模式。 observe
play 切换角色为 [角色id]。 [角色id] play 1234
portrait_editor 打开肖像编辑器。 portrait_editor
reload 重载模组和游戏文件到内存中。按tab键查看可以重载的所有(许多)可能目标。 [filename][target] reload events
run 执行 [文件名称] 中的指令。txt文件必须位于Documents/Paradox Interactive/Crusader Kings III/run run test.txt
set_is_ai 允许AI控制 [角色id]。 [角色id] set_is_ai 1234
set_is_player 禁止AI控制 [角色id]。 [角色id] set_is_player 1234
script_docs 将所有的effects、event scopes、modifiers、on actions、triggers等输出到Documents\Paradox Interactive\Crusader Kings III\logs script_docs

特质ID[编辑 | 编辑源代码]

主条目:特质

所有特质都有一个ID用于在游戏内部引用。它们可以在game\common\traits\00_traits.txt中找到。特质ID通常和它们的名称匹配。执行以下步骤可以根据特质的名称获得其ID:

  • 如果特质在英文游戏中显示有两个名称,使用括号中的那个。
  • 使用下划线(_)替换空格( )和连接符(-
  • 移除所有格符号('
  • 将大写字母换为小写字母(A...Z->a...z

下面列出了不符合这一模式的特质,以供参考。

教育特质 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
先天特质 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
生活特质 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
其他特质 ID
弑族亲者 kinslayer_1
弑亲族者 kinslayer_2
弑至亲者 kinslayer_3
受伤 wounded_1
身受重伤 wounded_2
严重撕裂 wounded_3
不育 / 不孕 infertile
修士 / 修女 devoted
十字军战士
圣战士
信仰勇士
faith_warrior
圣君 crusader_king
肺炎 pneumonic
足内翻 clubfooted
救主 savior
劫掠者 / 维京 viking
情人的疱疹 lovers_pox/early_great_pox
先知的血脉(未生效) blood_of_prophet
庶出 child_of_concubine_female
庶出 child_of_concubine_male
朝圣者
朝觐者 / 朝觐妇
pilgrim

革新ID[编辑 | 编辑源代码]

主条目:革新

中文用户推荐参考革新词条中列出的ID

革新ID通常和他们的名称相对应。但以下革新使用的ID不同:

革新 ID
Innovation majesty 02.png 货币 innovation_currency_01
Innovation civil construction 01.png 公共工程 innovation_development_01
Innovation siege weapons.png 野驴炮 innovation_catapult
Innovation special maa 02.png 诸葛弩 innovation_repeating_crossbow
Innovation special maa 01.png 防守战术 innovation_mobile_guards
Innovation special maa 01.png 骠骑兵突袭 innovation_hussar_raids
Innovation misc inventions.png 长船 innovation_longboats
Innovation majesty 01.png 西非独木舟 innovation_african_canoes
Innovation nobility 01.png 金属硬币 innovation_currency_02
Innovation nobility 03.png 社区治理 innovation_development_02
Innovation maa 01.png 家兵 innovation_house_soldiers
Innovation maa 02.png 沙漠山地经验 innovation_desert_mountain_herding
Innovation majesty 03.png 部落公国 innovation_stem_duchies
Innovation majesty 02.png 银行业 innovation_currency_03
Innovation civil construction 01.png 城市化 innovation_development_03
Innovation misc inventions.png 东向移民 innovation_east_settling
Innovation administration 01.png 本票 innovation_currency_04
Innovation misc inventions.png 文艺复兴思想 innovation_development_04

头衔ID[编辑 | 编辑源代码]

主条目:头衔

所有头衔都有一个内部头衔ID,在game\common\landed_titles\00_landed_titles.txt中可以找到。头衔ID有一个基于头衔等级的前缀,后面接上一个下划线(_),之后连接它们的名称。

等级 前缀 举例
男爵领 b_ Wigmore -> b_wigmore
伯爵领 c_ Sundgau -> c_sundgau
公国 d_ Sicily -> d_sicily
王国 k_ Denmark -> k_denmark
帝国 e_ Persia -> e_persia
中文用户推荐参考相关列表中列出的头衔ID:

根据游戏内名称查找头衔ID[编辑 | 编辑源代码]

头衔ID可能并不和游戏中头衔名称完全匹配。例如,玩家可能将游戏设置为英语外的其他语言,或者头衔存在文化特有名称。依靠以下步骤,只根据游戏内名称寻找头衔ID:

  • 找到文件game\localization\LANGUAGE\titles_l_LANGUAGE.yml,将LANGUAGE替代为你使用的语言。
    • 简体中文:game\localization\simp_chinese\titles_l_simp_chinese.yml
  • 使用文本编辑器如Notepad++、Notepad3打开文件,使用 ^Ctrl + F 搜索游戏内的头衔名称。
  • 如果你成功了找到匹配项:
    • 这一行应该看起来类似于b_constantinople:0 "君士坦丁堡"
    • 头衔ID是:0前的代码,因此在这个例子中是b_constantinople
  • 如果你没有找到匹配项:
    • 关闭文件。
    • 在同一文件夹中打开titles_cultural_names_l_LANGUAGE.yml,同样替换LANGUAGE
      • 简体中文:game\localization\simp_chinese\titles_cultural_names_l_simp_chinese.yml
    • 在该文件中再次搜索该头衔在游戏中的名称。
    • 当你找到匹配项,它应该看起来类似于:cn_lunden:0 "林登"
    • 记住/复制:0前的代码(在这个例子中即为cn_lunden);这是头衔的文化名称键值
    • 关闭文件。
    • 找到文件game\common\landed_titles\00_landed_titles.txt,用文本编辑器打开它。
    • 在这个文件中搜索之前找到的文化名称键值。(这个例子中即为cn_lunden)。
    • 搜索结果应该位于一个名为cultural_names的代码块中,用花括号括起来({, })。
    • 阅读结果前面的代码,直到另一个代码块的开始(这个例子中表示为b_london = {)。忽略如color = { or color2 ={的代码块。
    • b_london中的代码即为你的头衔ID。

查找自定义头衔的ID[编辑 | 编辑源代码]

查找自定义头衔ID

自定义头衔(即玩家自己创建的王国/帝国)不遵循前面的名称规定。要找到ID:

  • 使用控制台,输入指令explorer打开Object Browser。
  • 在Object Browser中选择Provider为Landed Titles。
  • 在search key中输入搜索名称。
  • 搜索结果中,鼠标悬停在name一项中,会显示头衔卡片。

另见[编辑 | 编辑源代码]

参考资料[编辑 | 编辑源代码]