编辑“控制台指令

警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
{{Version|1.6}}{{需要翻译}}
{{Version|1.0}}{{需要翻译}}
此条目列出能够输入控制台窗口的指令。控制台窗口是一个特殊的调试窗口,可以在调试模式下的非铁人开局中,按下 {{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}} 可能有效。使用上下箭头键可以遍历之前使用过的指令。许多指令可以通过再次输入来关闭,但有时重新加载保存或退出游戏是必要的。
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.


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


__TOC__
__TOC__


==调试模式==
==调试模式==
 调试模式是游戏中的一组工具 允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:
 调试模式是游戏中 对用户隐藏 的一组工具 。它们 允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:


*控制台端口( 接收 指定命令)
*控制台端口( 用于玩家输入 指定命令)
*调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等)
*调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等)
*[[# 调试信息|调试信息]]
*调试信息 (显示有关角色,隐藏的事件和互动)
*调试 角色 互动(玩家可以立即更改意见、囚禁等)
*调试互动(玩家可以立即更改意见、囚禁等)
*{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。
*{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。
* File watcher自动重载被更改的文件(包括模组)到内存中。


=== 启用调试模式 ===
===Enabling debug mode===
Debug 模式能在启动游戏前开启和/或在游戏中使用mods开启. 它能通过控制台面板的按钮关闭,但一旦关闭就不能在游戏中重新开启(除非使用mods)。
Debug mode must be enabled upon launching the game. It can also be disabled within the Console Window.


  怎么开 它:
====Steam====
  若需要在steam运行调试模式,需要在steam库里面,右键该游戏,然后点击属性,在 [常规] 选项里面点击 [设置启动选项...] ,将 ['''-debug_mode'''] 添加到启动项里面。此操作需要重 游戏。


==== Mods ====
====Without Steam====
  有些mods,例如:[https://steamcommunity.com/sharedfiles/filedetails/?id=2218150778 Free Console Access]和[https://steamcommunity.com/sharedfiles/filedetails/?id=2264428428 Debug Toggle]。
  在不使用steam平台打开游戏的情况下,可以通过在ck3文件夹的binaries文件夹里面找到ck3.exe,右键它发送到桌面快捷方式,然后右键桌面的ck3图标并点击属性,在目标那一栏里面的最后面,空格一下然后输入[-debug_mode] ,然后应用即可


他们允许开关debug模式,让游戏中能够方便的使用控制台游玩,但是重新读取文件需要时间。对于mod制作者,同时使用启动器选项和mod更好。
====Xbox game pass====
 
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:
==== 启动器 ====
在游戏启动器中:
#点击左侧的游戏设置
#滑到“以调试模式打开游戏”项,点击“启动”按钮。
 
==== Steam ====
在Steam中:
#右键游戏旁的齿轮图标,再点击属性
#在通用界面把 <code>-debug_mode</code> 写进启动选项
#启动游戏
 
==== Windows ====
如果你没有安装Steam,则在Windows系统上:
#打开CK3游戏文件目录下的binaries文件夹
#右击ck3.exe来创建一个快捷方式
#右击这个快捷方式,点击属性
#在目标栏的最后添加 <code>-debug_mode</code>(所以你会看到目标栏里是这串代码 <code>"...\ck3.exe" -debug_mode</code>)
#点击快捷方式启动游戏
 
==== GOG ====
On GOG:
# Right-click the game, open Settings
# Check "Add command line arguments" and enter <code>debug_mode</code>
 
On GOG Galaxy 2.0:
# 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>


To simplify it, you can also create a batch (.bat) file with this command and run it from the desktop:
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 create a simple batch file on Windows 10, follow these steps:
# Right-click on your Desktop, choose New -> Text Document.
# Rename it to "ck3.bat". Make sure to remove ".txt" from the end. Confirm changes when prompted.
# Right-click the file and select Edit.
# Paste the command: <code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
# Save the file
# Double-click it to start the game
 
=== 关闭调试模式 ===
如果要继续达成成就,则关闭所有功能Mod并从启动选项中删除<code>-debug_mode</code>。 在开始游戏后,确保你的[[补丁|校验码]]未改变。它可以在加入游戏窗口的右上角找到。


=== 调试信息 ===
*Open Start.
调试模式启动时,角色、互动和事件将显示在正常游戏中隐藏的调试信息。
*Search for Notepad, and click the top result to start the app.
*Paste in the aforementioned command.
*Click the File menu.
*Select the Save As option or {{key press|CTRL}} + {{key press|SHIFT}} + {{key press|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 you're done!


==== 角色 ====
==Cheats==
调试模式中角色的以下数值会显示:
 下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 。They are different from scripted [[commands]]注意,在调试窗口打开时,按下 {{Key press|Tab}} 将显示指令列表,在输入选择的指令后,按下 {{Key press|Tab}} 将在调试窗口中显示适用于该指令的参数。
{| 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
 
==== 互动 ====
在点击互动后弹出的窗口中,将鼠标悬停在按钮右边的紫色R上,将显示root scope, the primary/secondary actors 和 the primary/secondary recipients。
 
== 作弊 ==
 下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的 。它们和脚本[[ 指令]] 不同。 注意,在调试窗口打开时,按下 {{Key press|Tab}} 将显示指令列表,在输入选择的指令后,按下 {{Key press|Tab}} 将在调试窗口中显示适用于该指令的参数。
{| class="wikitable"
{| class="wikitable"
!指令
!指令
第133行: 第56行:
|add_claim
|add_claim
|添加宣称 [<nowiki/>[[Console_commands#Title_IDs|头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。
|添加宣称 [<nowiki/>[[Console_commands#Title_IDs|头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。
|[角色id] [<nowiki/>[[Console_commands#Title_IDs|头衔id]]]
|[<nowiki/>[[Console_commands#Title_IDs|头衔id]]] [角色id]
|add_claim e_hre
|add_claim e_hre
|-
|-
第197行: 第120行:
|-
|-
|add_trait
|add_trait
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] 被添加到<nowiki/> [角色id],如果没有指定角色id则默认为玩家角色,按下 {{Key press|Tab}} 将显示所有特质ID
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] 被添加到<nowiki/> [角色id],如果没有指定角色id则默认为玩家角色。
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] [角色id]
|[<nowiki/>[[Console_commands#Trait_IDs|特质id]]] [角色id]
|add_trait witch
|add_trait witch
第230行: 第153行:
|[指定数值] [角色id]
|[指定数值] [角色id]
|add_learning_lifestyle_xp 2000
|add_learning_lifestyle_xp 2000
|-
|bypass_requirements
|允许玩家通过任何决议、领地法更改和头衔创建。
|无
|bypass_requirements
|-
|-
|change_culture
|change_culture
第280行: 第198行:
|[指定数值] [角色id]
|[指定数值] [角色id]
|change_prowess 16
|change_prowess 16
|-
|charinfo
|在游戏内查看角色ID、角色历史ID、角色生育力、角色健康、角色压力和角色体重。
|无
|charinfo
|-
|-
|clear_character_modifiers
|clear_character_modifiers
第317行: 第230行:
|-
|-
|discover_innovation
|discover_innovation
|[革新id] 被 [角色id] 的文化发现,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。
|[革新id] 被 [角色id] 的文化发现   ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。
|[革新id] [角色id]
|[革新id] [角色id]
|discover_innovation innovation_motte
|discover_innovation innovation_motte
第330行: 第243行:
|无
|无
|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
|event
|触发 [事件id]。
|触发 [事件id]。
|[事件id] [角色id]
|[事件id]
|event lifestyle_nicknames.0001
|event lifestyle_nicknames.0001
|-
|-
第357行: 第260行:
|-
|-
|give_title
|give_title
|添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色,按下 {{Key press|Tab}} 将显示所有头衔ID
|添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色。
|[头衔id] [角色id]
|[头衔id] [角色id]
|give_title e_hre
|give_title e_hre
第364行: 第267行:
|添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。
|添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。
|[指定数值]
|[指定数值]
|gold 500
|add_gold 500
|-
|-
|instabuild
|instabuild
第485行: 第388行:
|[指定数值] [角色id]
|[指定数值] [角色id]
|set_prowess 16
|set_prowess 16
|-
|set_date
|将日期设定为 [年.月.日],如果没有指定年份与日期则默认为一月一日
|[年.月.日]
|set_date 1066.9.15
|-
|-
|yesmen
|yesmen
第497行: 第395行:
|}
|}


== 测试指令 ==
==Testing commands==
测试指令被用于开发人员,测试员或模组制作者进行测试。
Testing commands are used for developer, beta tester or modder testing.
{| class="wikitable" width=100%
{| class="wikitable"
!指令
!指令
!效果
!效果
第509行: 第407行:
|无
|无
|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
|effect
|执行脚本效果。
|执行脚本效果。
To run the effect on a character other than the player, use <code>effect character:<character_id> = {<effect_name> = <parameters>}</code>
|[效果脚本]
|[效果脚本]
|effect test
|effect test
第565行: 第457行:
|无
|无
|portrait_editor
|portrait_editor
|-
| reload
| 重载模组和游戏文件到内存中。按tab键查看可以重载的所有(许多)可能目标。
| [filename][target]
| reload events
|-
|-
|run
|run
第585行: 第472行:
|[角色id]
|[角色id]
|set_is_player 1234
|set_is_player 1234
|-
|script_docs
|将所有的effects、event scopes、modifiers、on actions、triggers等输出到{{cite file|Documents\Paradox Interactive\Crusader Kings III\logs}}。
|无
|script_docs
|}
|}


==特质ID==
==特质ID==
{{main| 特质}}
{{main|Traits}}


所有特质都有一个ID用于在游戏内部引用。它们可以在<code>game\common\traits\00_traits.txt</code> 中找到。特质ID通常和它们的名称匹配。执行以下步骤可以根据特质的名称获得其ID:
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
* 使用下划线(<code>_</code> )替换空格(<code> </code> )和连接符(<code>-</code>
*Replace spaces (<code> </code>) and dashes (<code>-</code>) with underscores (<code>_</code>)
* 移除所有格符号(<code>'</code>
*Remove all apostrophes (<code>'</code>)
* 将大写字母换为小写字母(<code>A...Z->a...z</code>
*Turn all upper case letters into lower case (<code>A...Z->a...z</code>)


下面列出了不符合这一模式的特质,以供参考。
Traits that do not follow this pattern have been listed below for reference.


{| class="wikitable" style="float: left; margin-right: 30px;"
{| class="wikitable" style="float: left; margin-right: 30px;"
第738行: 第620行:
|physique_good_3
|physique_good_3
|-
|-
|{{icon|Melancholic}} 抑郁
|{{icon|Melancholic}} 抑郁 症患者
|depressed_1 / depressed_genetic
|depressed_1 / depressed_genetic
|-
|-
第798行: 第680行:
|{{icon|Patriarch}} 顾家男人 / 顾家女人
|{{icon|Patriarch}} 顾家男人 / 顾家女人
|family_first
|family_first
|-
| {{iconify|Herbalist|草药师}}
| 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;"
!其他特质
!其他特质
第844行: 第725行:
|{{icon|The Savior}} 救主
|{{icon|The Savior}} 救主
|savior
|savior
|-
|{{icon|Raider}} 劫掠者 / 维京
|viking
|-
|{{icon|Lover's pox}} {{icon|Great pox}} 情人的疱疹
|lovers_pox/early_great_pox
|-
|-
|{{icon|Blood of the Prophet}} 先知的血脉(未生效)
|{{icon|Blood of the Prophet}} 先知的血脉(未生效)
|blood_of_prophet
|blood_of_prophet
|-
|-
|{{icon|Child of Concubine}}  庶出
|{{icon|Raider}}  劫掠者 / 维京
|child_of_concubine_female
|viking
|-
|-
|{{icon|Child of Consort}} 庶出
|{{icon|Lover's pox}} / {{icon|Great pox}} Early Great Pox (mimics Lover's Pox)
|child_of_concubine_male
|early_great_pox<!--待验证-->
|-
|{{icon|Pilgrim}} 朝圣者<br>{{icon|Hajji}} 朝觐者 / 朝觐妇
|pilgrim
|}
|}
{{clear}}
{{clear}}


== 革新ID ==
==Title IDs==
{{main| 革新}}
{{main|Titles}}
{{hatnote|中文用户推荐参考[[革新#革新列表|革新]]词条中列出的ID}}
革新ID通常和他们的名称相对应。但以下革新使用的ID不同:
{| class="wikitable"
! 革新
! ID
|-
| [[File:Innovation majesty 02.png|35px]] 货币 || innovation_currency_01
|-
| [[File:Innovation civil construction 01.png|35px]] 公共工程 || innovation_development_01
|-
| [[File:Innovation siege weapons.png|35px]] 野驴炮 || innovation_catapult
|-
| [[File:Innovation special maa 02.png|35px]] 诸葛弩 || innovation_repeating_crossbow
|-
| [[File:Innovation special maa 01.png|35px]] 防守战术 || innovation_mobile_guards
|-
| [[File:Innovation special maa 01.png|35px]] 骠骑兵突袭 || innovation_hussar_raids
|-
| [[File:Innovation misc inventions.png|35px]] 长船 || innovation_longboats
|-
| [[File:Innovation majesty 01.png|35px]] 西非独木舟 || innovation_african_canoes
|-
| [[File:Innovation nobility 01.png|35px]] 金属硬币 || innovation_currency_02
|-
| [[File:Innovation nobility 03.png|35px]] 社区治理 || innovation_development_02
|-
| [[File:Innovation maa 01.png|35px]] 家兵 || innovation_house_soldiers
|-
| [[File:Innovation maa 02.png|35px]] 沙漠山地经验 || innovation_desert_mountain_herding
|-
| [[File:Innovation majesty 03.png|35px]] 部落公国 || innovation_stem_duchies
|-
| [[File:Innovation majesty 02.png|35px]] 银行业 || innovation_currency_03
|-
| [[File:Innovation civil construction 01.png|35px]] 城市化 || innovation_development_03
|-
| [[File:Innovation misc inventions.png|35px]] 东向移民 || innovation_east_settling
|-
| [[File:Innovation administration 01.png|35px]] 本票 || innovation_currency_04
|-
| [[File:Innovation misc inventions.png|35px]] 文艺复兴思想 || innovation_development_04
|}
 
== 头衔ID ==
{{main|头衔}}
 
所有头衔都有一个内部头衔ID,在<code>game\common\landed_titles\00_landed_titles.txt</code>中可以找到。头衔ID有一个基于头衔等级的前缀,后面接上一个下划线(<code>_</code>),之后连接它们的名称。


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.
{| class="mildtable"
{| class="mildtable"
!等级
!等级
第920行: 第746行:
!举例
!举例
|-
|-
|{{icon|Barony}} 男爵领
|{{iconify|Barony}}
|<code>b_</code>
|<code>b_</code>
|<code>Wigmore -> b_wigmore</code>
|<code>Wigmore -> b_wigmore</code>
|-
|-
|{{icon|County}} 伯爵领
|{{iconify|County}}
|<code>c_</code>
|<code>c_</code>
|<code>Sundgau -> c_sundgau</code>
|<code>Sundgau -> c_sundgau</code>
|-
|-
|{{icon|Duchy}} 公国
|{{iconify|Duchy}}
|<code>d_</code>
|<code>d_</code>
|<code>Sicily -> d_sicily</code>
|<code>Sicily -> d_sicily</code>
|-
|-
|{{icon|Kingdom}} 王国
|{{iconify|Kingdom}}
|<code>k_</code>
|<code>k_</code>
|<code>Denmark -> k_denmark</code>
|<code>Denmark -> k_denmark</code>
|-
|-
|{{icon|Empire}} 帝国
|{{iconify|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:


{{hatnote|中文用户推荐参考相关列表中列出的头衔ID:}}
*[[List of baronies]]
*[[ 伯爵领列表]]
*[[List of counties]]
*[[ 公国列表]]
*[[List of duchies]]
*[[ 王国列表]]
*[[List of kingdoms]]
*[[ 帝国列表]]
*[[List of empires]]
 
=== 根据游戏内名称查找头衔ID ===
头衔ID可能并不和游戏中头衔名称完全匹配。例如,玩家可能将游戏设置为英语外的其他语言,或者头衔存在文化特有名称。依靠以下步骤,只根据游戏内名称寻找头衔ID:
 
*找到文件<code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code>,将<code>LANGUAGE</code>替代为你使用的语言。
**简体中文:<code>game\localization\simp_chinese\titles_l_simp_chinese.yml</code>。
*使用文本编辑器如Notepad++、Notepad3打开文件,使用 {{key press|CTRL}} + {{key press|F}} 搜索游戏内的头衔名称。
*如果你成功了找到匹配项:
** 这一行应该看起来类似于<code>b_constantinople:0 "君士坦丁堡"</code>。
**头衔ID是<code>:0</code>前的代码,因此在这个例子中是<code>b_constantinople</code>。
*如果你没有找到匹配项:
**关闭文件。
**在同一文件夹中打开<code>titles_cultural_names_l_LANGUAGE.yml</code>,同样替换<code>LANGUAGE</code>。
***简体中文:<code>game\localization\simp_chinese\titles_cultural_names_l_simp_chinese.yml</code>。
**在该文件中再次搜索该头衔在游戏中的名称。
**当你找到匹配项,它应该看起来类似于:<code>cn_lunden:0 "林登"</code>。
**记住/复制<code>:0</code>前的代码(在这个例子中即为<code>cn_lunden</code>);这是头衔的''文化名称键值''。
**关闭文件。
**找到文件<code>game\common\landed_titles\00_landed_titles.txt</code>,用文本编辑器打开它。
**在这个文件中搜索之前找到的''文化名称键值''。(这个例子中即为<code>cn_lunden</code>)。
**搜索结果应该位于一个名为<code>cultural_names</code>的代码块中,用花括号括起来(<code>{</code>, <code>}</code>)。
**阅读结果前面的代码,直到另一个代码块的开始(这个例子中表示为<code>b_london = {</code>)。忽略如<code>color = {</code> or <code>color2 ={</code>的代码块。
**如<code>b_london</code>中的代码即为你的头衔ID。
 
=== 查找自定义头衔的ID ===
[[File:查找自定义头衔ID.png|thumb|right|500px|查找自定义头衔ID]]
自定义头衔(即玩家自己创建的王国/帝国)不遵循前面的名称规定。要找到ID:


*使用控制台,输入指令<code>explorer</code>打开Object Browser。
===Finding title IDs based on in-game name===
*在Object Browser中选择Provider为Landed Titles。
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:
*在search key中输入搜索名称。
*搜索结果中,鼠标悬停在name一项中,会显示头衔卡片。


== 另见 ==
*Navigate to the file located at <code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> with your game language.
* [[绰号|绰号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}}.
* [[Decisions modding|决议ID]]
*If you managed to find a match:
**The line should look similar to <code> b_my_barony_name:0 "In-game name for barony"</code>.
**The title ID is the word before the <code>:0</code>, therefore being <code>b_my_barony_name</code> in this example.
*If you could not find a match:
**Close the file.
**In the same folder as the previous file, open the file <code>titles_cultural_names_l_LANGUAGE.yml</code>, replacing <code>LANGUAGE</code> appropriately.
**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.
**Close the file.
**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>).
**The search query should land within a block named <code>cultural_names</code> enclosed by curly brackets (<code>{</code>, <code>}</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.


== 参考资料 ==
===Finding custom title ID===
<references/>
Custom titles (i.e. the title of a player created Empire) do not follow the same naming convention. To find the ID:


*From the debug console use the command <code>explorer</code> to open Object Browser
*In Object Browser choose Provider: Landed Titles
*Enter search term
*Hover over the Name field to show the title card
{{Modding navbox}}
{{Modding navbox}}
[[Category:模组制作]]
[[Category: 模组制作]]
[[en:Console commands]]
[[en:Console commands]]
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在十字军之王3百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

为防止机器编辑,请完成下方验证

取消 编辑帮助(在新窗口中打开)