控制台指令:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.6
(Pokewiz移动页面Console commands控制台指令
→‎作弊:​ 格式修正
 
(未显示13个用户的71个中间版本)
第1行: 第1行:
{{Version|1.0}}{{Copy edit|reason=duplicate commands in tables.}}
{{Version|1.6}}{{ 需要翻译}}
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,{{key press|§}}, {{key press|~}}, {{key press|^}}, {{key press|°}}, {{key press|²}}, or {{key press|`}} (key varies based on keyboard layout). For a QWERTY keyboard, the key is {{key press|`}}. 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.
此条目列出能够输入控制台窗口的指令。控制台窗口是一个特殊的调试窗口,可以在调试模式下的非铁人开局中,按下 {{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}} 可能有效。使用上下箭头键可以遍历之前使用过的指令。许多指令可以通过再次输入来关闭,但有时重新加载保存或退出游戏是必要的。


To start the game in debug mode, within Steam, right-click to set the game's Properties, then under the General tab, click the Set Launch Options... button. Add -debug_mode to the launch options. You will have to restart the game.
  在打开调试模式的情况下,可以将鼠标悬停在角色肖像上来查看角色ID。
 
Alternatively, without using Steam, you can start the game in debug mode by going to your main CK3 installation folder and creating a shortcut by right-clicking on the main CK3 application and selecting Create shortcut. Right-click the new shortcut and select properties. In the Shortcut tab where it says Target add -debug_mode to the very end of the field and hit apply. This will enable debug mode when launching the game using that shortcut.
 
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:
 
<code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
 
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 {{key press|CTRL}} + {{key press|SHIFT}} + {{key press|S}}.
* Type a name for the script for example, "ck2debug.bat". '''Whatever you call it it must end in .bat'''
* Select Desktop for location.
* Click save and your done!
 
Character IDs can be seen by hovering the cursor over a character.


__TOC__
__TOC__


== Cheats ==
== 调试模式==
Cheats are console commands that can be used to give unfair advantages as opposed to sole testing purposes.
调试模式是游戏中的一组工具,允许玩家在正常游玩的时候修改游戏。调试模式包含以下工具:
{| class="wikitable"
! Command
! Effect
! Parameters
! Example
|-
| age
| Adds [amount] of age to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| age 20
|-
| add_claim
| Adds a pressed claim on [title id] to [character id], if no character is specified then the player character.
| [title id] [character id]
| add_claim e_hre
|-
| add_doctrine
| Adds [doctrine id] to [faith id], if no faith is specified then the player character's faith. Pressing tab reveals all doctrine IDs.
| [doctrine id] [faith id]
| add_doctrine doctrine_pluralism_fundamentalist catholic
|-
| add_dread
| Adds [amount] of stress to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| add_dread 100
|-
| add_maa
| Adds [regiment id] of of men-at-arms to [character id], if no character is specified then the player character. Pressing tab reveals all regiment IDs.
| [regiment id] [character id]
| add_maa bowmen
|-
| add_perk
| Adds [perk id] to [character id], if no character is specified then the player character. Pressing tab reveals all perk IDs.
| [perk id] [character id]
| add_perk thoughtful_perk
|-
| add_piety
| Adds [amount] of piety to the player character. Negative values lower it. Default 1000.
| [amount]
| add_piety 9000
|-
| add_prestige
| Adds [amount] of prestige to the player character. Negative values lower it. Default 1000.
| [amount]
| add_prestige 16000
|-
| add_realm_law
| Passes [law id] to the realm of [character id], if no character is specified then the player character's realm. Pressing tab reveals all law IDs.
| [law id] [character id]
| add_realm_law crown_authority_3
|-
| add_realm_law_skip_effects
| Adds [law id] to the realm of [character id], if no character is specified then the player character's realm. Pressing tab reveals all law IDs.
| [law id] [character id]
| add_realm_law_skip_effects crown_authority_3
|-
| add_relation
| Adds [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.
| [relation id] [character id]
| add_relation friend 1234
|-
| add_secret
| Adds [secret id] to the player character. Pressing tab reveals all secret IDs.
| [secret id]
| add_secret secret_witch
|-
| add_stress
| Adds [amount] of stress to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| add_stress 50
|-
| add_title_law
| Adds [succession law id] to [title id].
| [title id] [law id]
| add_title_law e_hre feudal_elective_succession_law
|-
| add_trait
| Adds [trait id] to [character id], if no character is specified then the player character.
| [trait id] [character id]
| add_trait witch
|-
| add_lifestyle_xp_all
| Adds [amount] of experience to all lifestyles of [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_lifestyle_xp_all 2000
|-
| add_diplomacy_lifestyle_xp
| Adds [amount] of diplomacy lifestyle experience to [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_diplomacy_lifestyle_xp 2000
|-
| add_martial_lifestyle_xp
| Adds [amount] of martial lifestyle experience to [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_martial_lifestyle_xp 2000
|-
| add_stewardship_lifestyle_xp
| Adds [amount] of stewardship lifestyle experience to [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_stewardship_lifestyle_xp 2000
|-
| add_intrigue_lifestyle_xp
| Adds [amount] of intrigue lifestyle experience to [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_intrigue_lifestyle_xp 2000
|-
| add_learning_lifestyle_xp
| Adds [amount] of learning lifestyle experience to [character id], if no character is specified then the player character. Default 1000.
| [amount] [character id]
| add_learning_lifestyle_xp 2000
|-
| change_culture
| Changes the culture of [county id] to [culture id].
| [county id] [culture id]
| change_culture 496 swedish
|-
| change_development_level
| Adds [amount] of development to [county id], if no county is specified then the player character's capital. Negative values lower it.
| [amount] [county id]
| change_development_level 100 496
|-
| change_fervor
| Adds [amount] of fervor to [faith id], if no faith is specified then the player character's faith. Negative values lower it. Default 10.
| [amount] [faith id]
| change_fervor 100 catholic
|-
| change_diplomacy
| Adds [amount] of diplomacy skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_diplomacy 16
|-
| change_martial
| Adds [amount] of martial skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_martial 16
|-
| change_stewardship
| Adds [amount] of stewardship skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_stewardship 16
|-
| change_intrigue
| Adds [amount] of intrigue skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_intrigue 16
|-
| change_learning
| Adds [amount] of learning skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_learning 16
|-
| change_prowess
| Adds [amount] of prowess skill to [character id], if no character is specified then the player character. Negative values lower it.
| [amount] [character id]
| change_prowess 16
|-
| clear_character_modifiers
| Removes all character modifiers from [character id], if no character is specified then the player character.
| [character id]
| clear_character_modifiers
|-
| clear_title_laws
| Removes all title succession laws from [title id].
| [title id]
| clear_title_laws e_hre
|-
| clear_traits
| Removes all traits from [character id], if no character is specified then the player character.
| [character id]
| clear_traits
|-
| discover_all_eras
| Discovers all innovations for the culture of [character id], if no character is specified then the player character's.
| [character id]
| discover_all_eras
|-
| discover_era
| Discovers [era id] and all its innovations for the player character's culture. Pressing tab reveals all era IDs. Default current era.
| [era id]
| discover_era culture_era_early_medieval
|-
| discover_fascination
| Discovers the current fascination for the culture of [character id], if no character is specified then the player character's.
| [character id]
| discover_fascination
|-
| discover_innovation
| Discovers [innovation id] for the culture of [character id], if no character is specified then the player character's. Pressing tab reveals all innovation IDs.
| [innovation id] [character id]
| discover_innovation innovation_motte
|-
| dynasty_prestige
| Adds [amount] of renown to [dynasty id], if no dynasty is specified then the player character's dynasty. Negative values lower it. Default 1000.
| [amount] [dynasty id]
| dynasty_prestige 100000
|-
| end_schemes
| All schemes targeting the player character are abandoned.
| None
| end_schemes
|-
| event
| Triggers [event id].
| [event id]
| event lifestyle_nicknames.0001
|-
| gain_all_dynasty_perks
| Buys all dynasty legacies for the dynasty of [character id], if no character is specified then the player character's.
| [character id]
| gain_all_dynasty_perks
|-
| gain_all_perks
| Gives all lifestyle perks to [character id], if no character is specified then the player character.
| [character id]
| gain_all_perks
|-
| give_title
| Gives [title id] to [character id], if no character is specified then the player character.
| [title id] [character id]
| give_title e_hre
|-
| gold
| Adds [amount] of gold to the player character. Negative values lower it. Default 1000.
| [amount]
| 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
| Kills [character id], if no character is specified then the player character.
| [character id]
| kill
|-
| know_schemes
| Discovers all schemes targeting the player character.
| None
| know_schemes
|-
| merge_culture
| Changes the culture of all counties of [culture id] to [culture id].
| [culture id] [culture id]
| merge_culture greek swedish
|-
| pregnancy
| Impregnates female [character id] with father [character id], if no character is specified then an unknown father.
| [character id] [character id]
| pregnancy 1234
|-
| remove_doctrine
| Removes [doctrine id] from [faith id], if no faith is specified then the player character's faith. Pressing tab reveals all doctrine IDs.
| [doctrine id] [faith id]
| remove_doctrine doctrine_pluralism_righteous catholic
|-
| remove_nick
| Removes the current nickname from [character id], if no character is specified then the player character.
| [character id]
| remove_nick
|-
| remove_relation
| Removes [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.
| [relation id] [character id]
| remove_relation friend 1234
|-
| remove_trait
| Removes [trait id] from [character id], if no character is specified then the player character. Pressing tab reveals all trait IDs.
| [trait id] [character id]
| remove_trait witch
|-
| set_culture
| Changes the culture to [culture id] for [character id], if no character is specified then the player character. Pressing tab reveals all culture IDs.
| [culture id] [character id]
| set_culture swedish
|-
| set_dread
| Sets the dread to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_dread 100
|-
| set_faith
| Changes the faith to [faith id] for [character id], if no character is specified then the player character. Pressing tab reveals all faith IDs.
| [faith id] [character id]
| set_faith catholic
|-
| set_focus
| Sets the focus to [focus id] for [character id], if no character is specified then the player character.
| [focus id] [character id]
| set_focus diplomacy_majesty_focus
|-
| set_nick
| Gives [nickname id] to [character id], if no character is specified then the player character.
| [nickname id] [character id]
| set_nick nick_the_lazy
|-
| set_sexuality
| Changes the sexual orientation to [sexuality id] for [character id], if no character is specified then the player character.
| [sexuality id] [character id]
| set_sexuality bisexual
|-
| set_stress
| Sets the stress to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_stress 0
|-
| set_diplomacy
| Sets the diplomacy skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_diplomacy 16
|-
| set_martial
| Sets the martial skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_martial 16
|-
| set_stewardship
| Sets the stewardship skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_stewardship 16
|-
| set_intrigue
| Sets the intrigue skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_intrigue 16
|-
| set_learning
| Sets the learning skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_learning 16
|-
| set_prowess
| Sets the prowess skill to [amount] for [character id], if no character is specified then the player character.
| [amount] [character id]
| set_prowess 16
|-
| yesmen
| AI characters accept all proposals. Entering it again disables it.
| None
| yesmen
|}


== Testing commands ==
*控制台端口(接收指定命令)
Testing commands are used for developer, beta tester or modder testing.
*调试菜单(包括Portrait Editor,GUI Editor,Tweak Menu等)
{| class="wikitable"
*[[#调试信息| 调试信息]]
! Command
*调试角色互动(玩家可以立即更改意见、囚禁等)
! Effect
*{{Key press|Ctrl}} + 点击肖像将控制角色,而 {{Key press|Alt}} +点击肖像将杀死他们。
! Parameters
* File watcher自动重载被更改的文件(包括模组)到内存中。
! Example
|-
| clear
| Clears console history.
| 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
| Prints the description of [command], if empty lists all console commands.
| [command]
| help help
|-
| instamove
| Armies move one barony per day.
| 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 file must be placed in Documents/Paradox Interactive/Crusader Kings III.
| None
| run test.ini
|-
| 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
|-
| yesmen
| AI characters accept all proposals. Entering it again disables it.
| None
| yesmen
|}


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


'''Commands''' or '''effects''' are used in [[scripting]] to alter the target that was selected with [[scopes]] and [[conditions]].
怎么开启它:


They appear in:
==== Mods ====
* command blocks (the ''immediate'' and ''option'' sections of [[events]], or similar: effect, creation_effect, gain_effect, success, ...)
有些mods,例如:[https://steamcommunity.com/sharedfiles/filedetails/?id=2218150778 Free Console Access]和[https://steamcommunity.com/sharedfiles/filedetails/?id=2264428428 Debug Toggle]
* [[scripted effect]]s, which can be used to group commands into re-usable macro.


(Scripting) commands are different from [[console commands]], though some console commands have a scripting equivalent.
他们允许开关debug模式,让游戏中能够方便的使用控制台游玩,但是重新读取文件需要时间。对于mod制作者,同时使用启动器选项和mod更好。


Available commands depend on the current [[scope]] type.
==== 启动器 ====
{| class="wikitable sortable"
在游戏启动器中:
|-
#点击左侧的游戏设置
!Command
#滑到“以调试模式打开游戏”项,点击“启动”按钮。
!Used in vanilla
!Used from scope
!Value type
!Description
!Example
!Category
|-
|add_dynasty_modifier
|
|dynasty
|
|Adds a modifier to a dynasty.
|add_dynasty_modifier = name<br>add_dynasty_modifier = { modifier = name days/weeks/months/years = int }
|Modifiers
|-


|add_dynasty_perk
==== Steam ====
|
在Steam中:
|dynasty
#右键游戏旁的齿轮图标,再点击属性
|key
#在通用界面把 <code>-debug_mode</code> 写进启动选项
|Adds dynasty perk.
#启动游戏
|add_dynasty_perk = key
|Lifestyles
|-


|add_dynasty_prestige
==== Windows ====
|
如果你没有安装Steam,则在Windows系统上:
|dynasty
#打开CK3游戏文件目录下的binaries文件夹
|int
#右击ck3.exe来创建一个快捷方式
|Adds dynasty prestige.
#右击这个快捷方式,点击属性
|
#在目标栏的最后添加 <code>-debug_mode</code>(所以你会看到目标栏里是这串代码 <code>"...\ck3.exe" -debug_mode</code>)
|Dynasty
#点击快捷方式启动游戏
|-


|add_dynasty_prestige_level
==== GOG ====
|
On GOG:
|dynasty
# Right-click the game, open Settings
|
# Check "Add command line arguments" and enter <code>debug_mode</code>
|Adds dynasty prestige levels.
|
|Dynasty
|-


|remove_all_dynasty_modifier_instances
On GOG Galaxy 2.0:
|
# In the game page, select Settings (next to the Play button at the top of the page)
|dynasty
# Open Manage installation and select Configure...
|modifier
# 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.
|Remove all instances of a modifier from a dynasty.
|remove_all_dynasty_modifier_instances = name
|Modifiers
|-


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


|add_house_modifier
<code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
|
|dynasty/house
|modifier
|Add a modifier to a house.
|add_house_modifier = name
|Modifiers
|-


|remove_all_house_modifier_instances
To simplify it, you can also create a batch (.bat) file with this command and run it from the desktop:
|
|dynasty/house
|modifier
|Remove all instances of a modifier from a house.
|remove_all_house_modifier_instances = name
|Modifiers
|-


|remove_house_modifier
# 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.
|dynasty/house
# Right-click the file and select Edit.
|modifier
# Paste the command: <code>start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode</code>
|Remove a modifier from a house.
# Save the file
|remove_house_modifier = name
# Double-click it to start the game
|Modifiers
|-
 
|add_scheme_modifier
|
|scheme
|modifier for "type" and int for "days"
|Adds the specified scheme modifier.<br>
|add_scheme_modifier = { type = X days = Y }<br>(Days are optional, the modifier will expire in Y days if specified)
|Modifiers
|-


|add_scheme_progress
=== 关闭调试模式 ===
|
如果要继续达成成就,则关闭所有功能Mod并从启动选项中删除<code>-debug_mode</code>。 在开始游戏后,确保你的[[补丁| 校验码]]未改变。它可以在加入游戏窗口的右上角找到。
|scheme
|int
|Add progress to the scope scheme. (Progress is in 0.0 - 100.0 range)
|add_scheme_progress = X
|Schemes
|-


|end_scheme
=== 调试信息 ===
|
调试模式启动时,角色、互动和事件将显示在正常游戏中隐藏的调试信息。
|scheme
|bool
|Ends a specific scheme and removes it without any other effect.
|end_scheme = yes
|Schemes
|-


|expose_scheme
==== 角色 ====
|
调试模式中角色的以下数值会显示:
|scheme
{| class="wikitable"
|
! 名称
|Exposes the scheme to the defender
! 描述
|
|Schemes
|-
|-
 
| ID
|expose_scheme_agent
| 角色ID。用于在事件和控制台指令中引用它们。
|
|scheme
|character
|Exposes the target character as an agent of the current scheme.
|
|Schemes
|-
|-
 
| 历史ID
|remove_scheme_modifier
|
|scheme
|modifier
|Removes the specified scheme modifier.
|
|Modifiers
|-
|-
 
| 生育力
|scheme_freeze_days
| 显示为百分比的角色[[生育力]]。
|
|scheme
|int
|freezes the scheme for X days (0 unfreezes the scheme)
|scheme_freeze_days = X
|Schemes
|-
|-
 
| 健康
|add_county_modifier
| 角色的[[健康]]数值。数值有一位小数。
|
|landed title
|modifier/int
|Add a modifier to a county.
|add_county_modifier = name<br>add_county_modifier = { modifier = name days/weeks/months/years = int }
|Modifiers
|-
|-
 
| 压力
|change_county_control
| 角色拥有的[[压力]]值。
|
|landed title
|int
|Changes the county control of a title. If the title has higher tier than county, the effect will propagate down to all counties below it.
|
|Control
|-
|-
 
| 基础体重
|change_de_jure_drift_progress
与[[体重]]机制有关。
|
|landed title
|title/int
|Change the progress of de jure drift of a title.
|<drifting_title> = { change_de_jure_drift_progress = { target = <drift_target_title> values = <progress_change_value> } }
|Title
|-
|-
 
| 目标体重
|change_development_level
| 与[[体重]]机制有关。
|
|landed title
|int
|Changes the development level of a title. If the title has higher tier than county, the effect will propagate down to all counties below it.
|
|Title
|-
|-
| 当前体重
| 与[[体重]]机制有关。
|}


|change_development_progress
==== 事件 ====
|
将鼠标悬停在事件选项上时会显示该选项的AI权重。同时,在事件窗口的右上角,将鼠标悬停在问号上(<code>?</code>),将显示内部详细信息,包括以下内容:
|landed title
* Event ID
|int
* Character for whom the event triggered
|Changes the development progress of a title. If the title has higher tier than county, the effect will propagate down to all counties below it.
* Root character
|
* Saved event targets
|Development
* Saved list targets
|-
* Descriptions


|change_development_progress_with_overflow
==== 互动 ====
|
在点击互动后弹出的窗口中,将鼠标悬停在按钮右边的紫色R上,将显示root scope, the primary/secondary actors 和 the primary/secondary recipients。
|landed title
|int
|Changes the development progress of a title. If the title has higher tier than county, the effect will propagate down to all counties below it. Will overflow, so adding +100 to a county with 50 progress left will increase the level by 1 and result in 50 progress towards the next level.
|
|Development
|-


|clear_title_laws
== 作弊 ==
|
下面是控制台的命令,可用于玩家作弊,而不是仅仅用于测试为目的。它们和脚本[[指令]]不同。注意,在调试窗口打开时,按下 {{Key press|Tab}} 将显示指令列表,在输入选择的指令后,按下 {{Key press|Tab}} 将在调试窗口中显示适用于该指令的参数。
|landed title
{| class="wikitable"
|bool
!指令
|Remove all title laws from the scoped title. DOES NOT apply law removal costs and effects.
!效果
|clear_title_laws = yes
!参数
|Laws
!举例
|-
 
|clear_title_laws_effects
|
|landed title
|bool
|Remove all title laws from the scoped title. DOES apply law removal costs and effects.
|clear_title_laws_effects = yes
|Laws
|-
|-
 
|abort_travel_plan
|copy_title_history
| 取消 [角色id] 正在进行的活动, 如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|landed title
|abort_travel_plan
|title
|Copy title history from another title.
|copy_title_history = source_title
|Titles
|-
|-
 
|age
|remove_all_county_modifier_instances
| 添加 [指定数值] 的年龄到 [角色id], 如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少年龄。
|
|[指定数值] [角色id]
|landed title
|age 20
|modifier
|Remove all instances of a modifier from a county.
|remove_all_county_modifier_instances = name
|Modifiers
|-
|-
 
|add_claim
|remove_county_modifier
| 添加宣称 [<nowiki/>[[Console_commands#Title_IDs| 头衔id]]] 到 [角色id] 上, 如果没有指定角色id则默认为玩家角色。
|
|[角色id] [<nowiki/>[[Console_commands#Title_IDs| 头衔id]]]
|landed title
|add_claim e_hre
|modifier
|Remove a modifier from a county.
|remove_county_modifier = name
|Modifiers
|-
|-
 
|add_doctrine
|reset_title_name
| 添加 [教义id] 到 [信仰id] 中,如果没有指定信仰则默认为玩家角色的信仰。按下 {{Key press|Tab}} 将显示所有教义ID。
|
|[教义id] [信仰id]
|landed title
|add_doctrine doctrine_pluralism_fundamentalist catholic
|bool
|Sets the name and adjective of the scoped title back to being based on its key. Won't cause the prefix to change.
|reset_title_name = yes
|Title
|-
 
|reset_title_prefix
|
|landed title
|bool
|Sets the prefix of the scoped title back to being based on its key. Won't cause its adjective or name to change.
|reset_title_prefix = yes
|Title
|-
 
|revoke_lease
|
|landed title
|bool
|Revoke the lease of the scoped title.
|revoke_lease = yes
|Title
|-
 
|set_always_follows_primary_heir
|
|landed title
|bool
|Sets if the title should always go to the primary heir in partition succession.
|set_always_follows_primary_heir = yes
|Title
|-
 
|set_capital_county
|
|landed title
|title
|Sets the capital county of the title to the target county.
|set_capital_county = <some county title>
|Title
|-
 
|set_color_from_title
|
|landed title
|title
|Sets the color of the title to the same as the target title (shifted very slightly to not be identical).
|set_color_from_title = <some title>
|Title
|-
 
|set_county_culture
|
|landed title
|culture/title
|Sets the culture of a county.
|set_county_culture = english/root.character_culture
|Title
|-
 
|set_county_faith
|
|landed title
|faith
|Changes what faith a county has.
|
|Title
|-
 
|set_de_jure_liege_title
|
|landed title
|title
|Set a new DeJure liege title.
|set_de_jure_liege_title = new_de_jure_liege
|Title
|-
 
|set_definitive_form
|
|landed title
|bool
|Sets if the title should use a definitive form name (no 'Kingdom of').
|set_definitive_form = yes
|Title
|-
 
|set_delete_on_destroy
|
|landed title
|bool
|Sets if the title should be deleted from the gamestate completely when it is destroyed.
|set_delete_on_destroy = yes
|Title
|-
 
|set_destroy_if_invalid_heir
|
|landed title
|bool
|Sets if the title should be destroyed on succession if there's no heir matching its restrictions.
|set_destroy_if_invalid_heir = yes
|Title
|-
 
|set_destroy_on_succession
|
|landed title
|bool
|Sets if the title should be destroyed on succession.
|set_destroy_on_succession = yes
|Title
|-
 
|set_landless_title
|
|landed title
|bool
|Sets if the title is landless (can be held by rulers with no land)
|set_landless_title = yes
|Title
|-
 
|set_no_automatic_claims
|
|landed title
|bool
|Sets if the title should disallow automatic claims (meaning claims will only be added by script, and by pressed claims being inherited).
|set_no_automatic_claims = yes
|Title
|-
 
|set_title_name
|
|landed title
|key
|sets the name (localization key) of the scoped title. The adjective will be constructed by adding '_adj' to the localisation key. Won't cause the prefix to change.
|set_title_name = TEST_NAME_PLEASE_IGNORE
|Title
|-
 
|set_title_prefix
|
|landed title
|key
|sets the prefix of the scoped title. Won't cause its name or adjective to change.
|set_title_prefix = PREFIX_THE
|Title
|-
 
|title_create_faction
|
|landed title
|faction<br>character/title
|The scoped landed title creates a faction of the specified type against the specified target.
|title_create_faction = { type = X target = Y }
|Factions
|-
 
|title_join_faction
|
|landed title
|faction
|The landed title in the scope joins the assigned faction.
|
|Factions
|-
 
|title_leave_faction
|
|landed title
|faction
|The title in the scope leaves the assigned faction
|
|Factions
|-
|-
|end_story
|
|story cycle
|
|Ends a story and executes it's on_end effect, the story can no longer be accessed after this.
|
|Stories
|-
|make_story_owner
|
|story cycle
|character
|Makes the character the new owner of the story.
|make_story_owner = character_target
|Stories
|-
|add_innovation
|
|culture
|innovation
|Add innovation to a culture.
|
|Innovations
|-
|add_random_innovation
|
|culture
|innovation/bool
|Add random available innovation
|<culture> = { add_random_innovation = culture_group_military/culture_group_civic/culture_group_regional/yes }
|Innovations
|-
|get_all_innovations_from
|
|culture
|culture
|Discover all innovations from the target culture.
|get_all_innovations_from = <culture>
|Innovations
|-
|get_random_innovation_from
|
|culture
|
|Get random available innovation from another culture.
|
|Innovations
|-
|add_character_flag
|
|character
|flag
|Adds a character flag.
|add_character_flag = X<br>add_character_flag = { flag = X days/weeks/years = Y } X is the name of the flag and Y is a value or value interval "{ min max }".
|Flags
|-
|add_character_modifier
|
|character
|modifier/int
|Add a modifier to a character.
|add_character_modifier = name<br>add_character_modifier = { modifier = name days/weeks/months/years = int }
|Modifiers
|-
|add_courtier
|
|character
|character
|Add the target character to the scope character's court.(It doesn't work)
|
|Characters
|-
|add_diplomacy_lifestyle_perk_points
|
|character
|int
|Adds lifestyle per points to the given character.
|
|Lifestyles
|-
|add_diplomacy_lifestyle_xp
|
|character
|int
|Adds lifestyle XP to the given character.
|
|Lifestyles
|-
|add_dread
|add_dread
|
| 添加恐惧值 [指定数值] 到 [角色id] 如果没有指定角色id则默认为玩家角色。
|character
|[指定数值] [角色id]
|int
|add_dread 100
|Adds (or removes) dread to a character.
|
|Characters
|-
 
|add_gold
|
|character
|
|Adds gold to a character.
|
|Characters
|-
 
|add_hook
|
|character
|hook/character/secret/int
|Adds a hook on a character. Does send a toast to the player if it's involved.
|add_hook = { type = X, target = Y, secret = Z, days/months/years = W }<br>days/months/years optional (taken from hook type otherwise) and can be a value or an interval, secret required for hook types that require it.
|Hooks and Secrets
|-
 
|add_hook_no_toast
|
|character
|hook/character/secret/int
|Adds a hook on a character. Does NOT send a toast to the player.
|add_hook = { type = X, target = Y, secret = Z, days/months/years = W  }<br>days/months/years optional (taken from hook type otherwise) and can be a value or an interval, secret required for hook types that require it.
|Hooks and Secrets
|-
|-
 
|add_maa
|add_intrigue_lifestyle_perk_points
| 添加兵士的 [军团 id] 给 [角色id],如果没有指定角色id则默认为玩家角色。<!-- 原文:按下 ⇆Tab 将显示所有军团ID。但1.0游戏中测试未显示 -->
|
|[军团id] [角色id]
|character
|add_maa bowmen
|int
|Adds lifestyle per points to the given character.
|
|Lifestyles
|-
|-
|add_intrigue_lifestyle_xp
|
|character
|int
|Adds lifestyle XP to the given character.
|
|Lifestyles
|-
|add_joined_faction_discontent
|
|character
|int
|Adds (or subtracts) discontent to the factions the scope character is in.
|add_joined_faction_discontent = X
|Factions
|-
|add_knows_of_killer
|
|character
|character
|Adds the right hand side character as knowing of the killer of the scoped object.
|dead_person = { add_knows_of_killer = root }
|Characters
|-
|add_learning_lifestyle_perk_points
|
|character
|int
|Adds lifestyle per points to the given character.
|
|Lifestyles
|-
|add_learning_lifestyle_xp
|
|character
|int
|Adds lifestyle XP to the given character
|
|Lifestyles
|-
|add_martial_lifestyle_perk_points
|
|character
|int
|Adds lifestyle per points to the given character.
|
|Lifestyles
|-
|add_martial_lifestyle_xp
|
|character
|int
|Adds lifestyle XP to the given character.
|
|Lifestyles
|-
|add_opinion
|
|character
|modifier/int/character
|Adds a temporary opinion modifier.
|add_opinion = { modifier = X days/months/years = Y target = Z }
|Characters
|-
|add_perk
|add_perk
|
| 添加 [技能id] 到 [角色id] ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有技能ID。
|
|[技能id] [角色id]
|character
|add_perk thoughtful_perk
|Adds the perk for this character
|
|Lifestyles
|-
|-
|add_piety
|add_piety
|
| 给玩家添加 [指定数值] 的虔诚,数字前面添加“- ”为减少虔诚,默认输入此命令得到1000虔诚。
|character
|[指定数值]
|
|add_piety 9000
|Gives (or takes) piety to a character.
|
|Characters
|-
 
|add_piety_experience
|
|character
|
|Gives (or takes) piety experience to a character.
|
|Characters
|-
|-
|add_piety_level
|
|character
|
|Increases (or decreases) the piety level of a character.
|
|Characters
|-
|add_pressed_claim
|
|character
|landed title
|Gives a pressed claim to a character.
|
|Title
|-
|add_prestige
|add_prestige
|
| 给玩家添加 [指定数值] 的声望,数字前面添加“- ”为减少声望,默认输入此命令得到1000声望。
|character
|[指定数值]
|
|add_prestige 16000
|Gives (or takes) prestige to a character.
|
|Characters
|-
 
|add_prestige_experience
|
|character
|
|Gives (or takes) prestige experience to a character.
|
|Characters
|-
 
|add_prestige_level
|
|character
|
|Increases (or decreases) the prestige level of a character.
|
|Characters
|-
|-
|add_realm_law
|add_realm_law
|
|[法律id] 在 [角色id] 的领地通过 ,如果没有指定角色id则默认为玩家角色的领地。按下 {{Key press|Tab}} 将显示所有法律ID。
|character
|[法律id] [角色id]
|
|add_realm_law crown_authority_3
|Adds the given law to the scoped character.
|
|Laws
|-
|-
|add_realm_law_skip_effects
|add_realm_law_skip_effects
|
|[法律id] 在 [角色id] 的领地添加 ,如果没有指定角色id则默认为玩家角色的领地。按下 {{Key press|Tab}} 将显示所有法律ID。
|character
|[法律id] [角色id]
|
|add_realm_law_skip_effects crown_authority_3
|Adds the given law to the scoped character. Skips the cost and the pass effect, and the revoke effects of the current law.
|
|Laws
|-
 
|add_relation_flag
|
|character
|
|Adds a flag to an existing relation.
|add_relation_flag = { relation = scripted_relation flag = flag_name (declared in the relation's script) target = other_character }
|Flags
|-
|-
 
|add_relation
|add_scheme_cooldown
|[关系id] 被添加到 [角色id] 和 [角色id] 之间 ,如果只指定了一个角色,则默认为指定角色和玩家角色之间添加关系。
|
|[关系id] [角色id]
|character
|add_relation friend 1234
|character/scheme/int
|Sets a scheme cooldown for the scoped character.
|<scoped_character> = { target=target_character type=scheme_type days/weeks/months/years = duration }
|Hooks and Schemes
|-
|-
|add_secret
|add_secret
|
| 给角色添加 [秘密id] 。
|character
|[秘密id]
|secret/character
|add_secret secret_witch
|Adds a secret.<br>Note that if you create a Secret in the immediate effect, the tooltips for other effects run in that Secret's scope (such as reveal_to) are likely to be displayed incorrectly, or not to be displayed at all. This is due to the game generating the tooltip before it actually has a Secret that exists to work off of. Test rigorously and use custom tooltips if necessary. Creating a Secret in the immediate and then running effects on it in an event option should produce perfectly normal tooltips.
|add_secret = { type = X target = Y }
|Hooks and Secrets
|-
|-
|add_stewardship_lifestyle_perk_points
|
|character
|int
|Adds lifestyle per points to the given character.
|
|Lifestyles
|-
|add_stewardship_lifestyle_xp
|
|character
|int
|Adds lifestyle XP to the given character.
|
|Lifestyles
|-
|add_stress
|add_stress
|
| 增加 [指定数值] 的压力给 [角色id]。如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少压力。
|character
|[指定数值] [角色id]
|int
|add_stress 50
|Increases (or decreases) stress of a character.
|
|Characters
|-
|-
 
|add_title_law
|add_targeting_factions_discontent
|[头衔id] 添加 [继承法id](仅开发人员!)。
|
|[头衔id] [法律id]
|character
|add_title_law e_hre feudal_elective_succession_law
|int
|Adds (or subtracts) discontent to all the factions that are targeting the scope character.
|add_targeting_factions_discontent = X
|Factions
|-
|-
|add_to_scheme
|
|character
|cheme
|Adds a character as an agent to the scheme.
|
|Hooks and Schemes
|-
|add_trait
|add_trait
|
|[<nowiki/>[[Console_commands#Trait_IDs| 特质id]]] 被添加到<nowiki/> [角色id],如果没有指定角色id则默认为玩家角色,按下 {{Key press|Tab}} 将显示所有特质ID。
|character
|[<nowiki/>[[Console_commands#Trait_IDs| 特质id]]] [角色id]
|
|add_trait witch
|Adds a trait to a character (the trait will not be added and no tooltip will be shown if the character isn't eligible for the trait, i.e. when already having the trait, having an opposing trait, not fulfilling the trait's is_potential trigger or being outside of the trait's range).
|
|Characters
|-
|-
 
|add_lifestyle_xp_all
|add_trait_force_tooltip
| 添加 [指定数值] 的生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_lifestyle_xp_all 2000
|
|Adds a trait to a character (if the add_trait effect would not add the trait - i.e. when already having the trait, having an opposing trait, not fulfilling the trait's is_potential trigger or being outside of the trait's range - a tooltip will be shown but the trait will not be added).
|
|Characters
|-
|-
 
|add_diplomacy_lifestyle_xp
|add_truce_both_ways
| 添加 [指定数值] 的外交生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。经验默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_diplomacy_lifestyle_xp 2000
|character/string/bool/war result
|Sets the both-way truce against the specified character.<br>'character' specifies the target character<br>'override' says whether it should replace the previous truce even if shorter<br>'years / months / days' sets the duration of the truce<br>'result' specifies the result from the scope character's point of view ('white_peace' by default)<br>'casus_belli' sets the casus belli scope that caused the truce, mutually exclusive with 'name'<br>'name' sets a custom description. Dynamic description with the current scope<br>'war' sets the war that caused the truce, mutually exclusive with 'casus_belli'
|add_truce_both_ways = { character = X years/months/days = Y override = yes/no result = victory/defeat/white_peace casus_belli/war = Z }
|Characters
|-
|-
 
|add_martial_lifestyle_xp
|add_truce_one_way
| 添加 [指定数值] 的军事生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_martial_lifestyle_xp 2000
|character/string/bool/war result
|Sets the truce against the specified character.<br>'character' specifies the target character<br>'override' says whether it should replace the previous truce even if shorter<br>'years / months / days' sets the duration of the truce<br>'result' specifies the result from the scope character's point of view ('white_peace' by default)<br>'casus_belli' sets the casus belli scope that caused the truce, mutually exclusive with 'name'<br>'name' sets a custom description. Dynamic description with the current scope<br>'war' sets the war that caused the truce, mutually exclusive with 'casus_belli'
|add_truce_one_way = { character = X years/months/days = Y override = yes/no result = victory/defeat/white_peace casus_belli/war = Z }
|Characters
|-
|-
 
|add_stewardship_lifestyle_xp
|add_tyranny
| 添加 [指定数值] 的管理生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_stewardship_lifestyle_xp 2000
|int
|Adds (or removes) tyranny to (or from) a character.
|
|Characters
|-
|-
 
|add_intrigue_lifestyle_xp
|add_unpressed_claim
| 添加 [指定数值] 的谋略生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_intrigue_lifestyle_xp 2000
|landed title
|Gives an unpressed claim to a character.
|
|Titles
|-
|-
 
|add_learning_lifestyle_xp
|add_visiting_courtier
| 添加 [指定数值] 的学识生活方式经验到 [角色id],如果没有指定角色id则默认为玩家角色。默认输入此命令得到1000经验。
|
|[指定数值] [角色id]
|character
|add_learning_lifestyle_xp 2000
|character
|Add the target character as the scope character's guest.(It doesn't work)
|
|Characters
|-
|-
 
|bypass_requirements
|allow_alliance
| 允许玩家通过任何决议、领地法更改和头衔创建。
|
|
|character
|bypass_requirements
|character
|Allows (previously broken) alliance with the target character.
|
|Characters
|-
|-
 
|change_culture
|allow_in_scheme
| 改变 [伯爵领id] 的文化为 [文化id]。
|
|[伯爵领id] [文化id]
|
|change_culture 496 swedish
|character
|Allow the character to join the scheme as an agent.
|
|Hooks and Schemes
|-
|-
 
|change_development_level
|apply_ai_vassal_obligation_liege_most_desired
| 添加 [指定数值] 的发展度到 [伯爵领id],如果没有指定伯爵领则默认为玩家角色的首都,数字前面添加“-”为降低发展度。
|
|[指定数值] [伯爵领id]
|character
|change_development_level 100 496
|
|Apply the new level for the most desired AI obligation level the liege in the contract wants
|
|Laws
|-
|-
 
|change_fervor
|apply_ai_vassal_obligation_vassal_most_desired
| 添加 [指定数值] 的宗教热情到 [信仰id],如果没有指定信仰则默认为玩家角色的信仰,数字前面添加“-”为降低宗教热情。默认数值为10。
|
|[指定数值] [信仰id]
|character
|change_fervor 100 catholic
|
|Apply the new level for the most desired AI obligation level the vassal in the contract wants.
|
|Laws
|-
|-
 
|change_diplomacy
|assign_council_task
| 添加 [指定数值] 的外交能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_diplomacy 16
|
|Assigns the target character to the council task.
|assign_council_task = { council_task = council_task_scope target = character_taking_the_position fire_on_actions = yes/no }
|Jobs
|-
|-
 
|change_martial
|assign_councillor_type
| 添加 [指定数值] 的军事能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_martial 16
|
|Assigns the target character to the first available council position of the type available.
|assign_councillor_type = { type = council_position_type_key target = character_taking_the_position fire_on_actions = yes/no }
|Jobs
|-
|-
 
|change_stewardship
|banish
| 添加 [指定数值] 的管理能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_stewardship 16
|
|The character gets banished.
|
|Characters
|-
|-
 
|change_intrigue
|becomes_independent
| 添加 [指定数值] 的谋略能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_intrigue 16
|
|Becomes and independent ruler.
|becomes_independent = { change = 'previously created title_and_vassal_change' }
|Vassalage
|-
|-
 
|change_learning
|break_alliance
| 添加 [指定数值] 的学识能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_learning 16
|character
|Breaks the alliance with the target character.
|
|Relations
|-
|-
 
|change_prowess
|cancel_truce_both_ways
| 添加 [指定数值] 的勇武能力到 [角色id],如果没有指定角色id则默认为玩家角色,数字前面添加“-”为减少能力数值。
|
|[指定数值] [角色id]
|character
|change_prowess 16
|character
|Ends the truce against the specified character, and theirs against the scoped character.
|cancel_truce_both_ways = scope:character
|Relations
|-
|-
 
|charinfo
|cancel_truce_one_way
| 在游戏内查看角色ID、角色历史ID、角色生育力、角色健康、角色压力和角色体重。
|
|
|character
|charinfo
|character
|Ends the truce against the specified character.
|cancel_truce_one_way = scope:character
|Relations
|-
|-
 
|clear_character_modifiers
|change_current_weight
| 移除 [角色id] 的所有角色修正,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|clear_character_modifiers
|int
|Change the current weight of the scoped character
|change_current_weight = 20
|Characters
|-
|-
 
|clear_title_laws
|change_first_name
| 移除 [头衔id] 的所有头衔继承法。
|
|[头衔id]
|character
|clear_title_laws e_hre
|key/character
|Change the first name of a character.
|change_first_name = <localization_key><br>change_first_name = scope:name/var:name<br>change_first_name = { template_character = scope:character }
|Characters
|-
|-
 
|clear_traits
|change_government
| 移除 [角色id] 的所有特质,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|clear_traits
|key
|Changes the government of a character.
|
|Characters
|-
|-
 
|discover_all_eras
|change_liege
|[角色id] 的文化发现所有革新,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|discover_all_eras
|
|Adds a liege change.
|change_liege = { liege = 'Character that should become the new liege' change = 'previously created title_and_vassal_change'}
|Vassalage
|-
|-
 
|discover_era
|change_prison_type
| 玩家角色的文化进入 [时代id] 同时发现该时代的所有革新。按下 {{Key press|Tab}} 将显示所有时代ID。默认为当前时代。
|
|[时代id]
|character
|discover_era culture_era_early_medieval
|key
|Changes the charater's prison type. Scoped character is the prisoner. Accepts any static modifier (see also improson effect).
|change_prison_type = house_arrest
|Characters
|-
|-
 
|discover_fascination
|change_target_weight
|[角色id] 的当前文化偏好被发现,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|discover_fascination
|int
|Change the target weight of the scoped character.
|change_target_weight = 20
|Characters
|-
|-
 
|discover_innovation
|clear_forced_vote
|[革新id] 被 [角色id] 的文化发现,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有革新ID。
|
|[革新id] [角色id]
|character
|discover_innovation innovation_motte
|bool
|clear_forced_vote = yes
|
|Characters
|-
|-
 
|dynasty_prestige
|consume_banish_reasons
| 添加 [指定数值] 的宗族威望到 [宗族id],如果没有指定宗族则默认为玩家角色的宗族,数字前面添加“-”为减少宗族威望。默认数值为1000。
|
|[指定数值] [宗族id]
|character
|dynasty_prestige 100000
|character
|'Consume' all banish reasons that the scoped character has on the target character. Until they get a new reason, they cannot banish the target again.
|
|Characters
|-
|-
 
|end_schemes
|consume_divorce_reasons
| 所有针对玩家角色的计谋被放弃。
|
|
|character
|end_schemes
|character
|'Consume' all divorce reason that the scoped character has on the target character. Until they get a new reason, they cannot divorce the target again.
|
|Characters
|-
|-
 
|effect start_cat_story_cycle_effect
|consume_execute_reasons
| 获得一只宠物猫
|
|
|character
|effect start_cat_story_cycle_effect
|character
|'Consume' all execute reasons that the scoped character has on the target character. Until they get a new reason, they cannot execute the target again.
|
|Characters
|-
|-
 
|effect start_dog_story_cycle_effect
|consume_imprisonment_reasons
| 获得一只宠物狗
|
|
|character
|effect start_dog_story_cycle_effect
|character
|'Consume' all imprisonment reasons that the scoped character has on the target character. Until they get a new reason, they cannot imprison the target again.
|
|Characters
|-
|-
 
|event
|consume_revoke_title_reason
| 触发 [事件id]。
|
|[事件id] [角色id]
|character
|event lifestyle_nicknames.0001
|character
|'Consume' 1 revoke title reason that the scoped character has on the target character.
|
|Characters
|-
|-
 
|gain_all_dynasty_perks
|copy_inheritable_appearance_from
|[角色id] 的宗族获得所有宗族传承,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|gain_all_dynasty_perks
|character
|Copies the inheritable appearance attributes (inheritable genes in the character's DNA string) from the target character to the scoped character.
|
|Titles
|-
|-
 
|gain_all_perks
|create_alliance
|[角色id] 获得所有生活方式技能,如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|gain_all_perks
|character
|Create an alliance between the scoped character and the target. The allied through characters determine who gets checked against for if the alliance should persist or not.
|create_alliance = scope<br>create_alliance = { target = scope allied_through_owner = scope allied_through_target = scope }
|Relations
|-
|-
 
|give_title
|create_cadet_branch
| 添加 [头衔id] 给 [角色id],如果没有指定角色id则默认为玩家角色,按下 {{Key press|Tab}} 将显示所有头衔ID。
|
|[头衔id] [角色id]
|character
|give_title e_hre
|bool
|The scope character creates a cadet branch of the house he is in.
|
|Characters
|-
|-
 
|gold
|create_faction
| 添加 [指定数值] 的金钱给玩家,数字前面添加“-”为减少金钱,默认输入此命令得到1000金钱。
|
|[指定数值]
|key/character
|gold 500
|
|The scoped character creates a faction of the specified type against the specified target.
|create_faction = { type = X target = Y }
|Factions
|-
|-
 
|instabuild
|create_story
| 玩家角色直辖领地内的地产和建筑一天建成。再次输入则失效。
|
|
|character
|instabuild
|key/character
|Creates and initializes a story cycle with the current character as owner.
|create_story = story_type<br>create_story = { type = story_type save_scope_as/save_temporary_scope_as = scope_name # optional way to get a reference to the new story }
|Stories
|-
|-
 
|instant_birth
|death
| 怀孕持续一天。再次输入则失效。
|
|
|character
|instant_birth
|character/key
|Kills a character. Where X is a character and Y is one of the death reason keys. Or death = natural which will pick a natural death reason to kill the character from.
|death = { killer = X death_reason = Y }
|Characters
|-
|-
 
|join_era
|depose
|[角色id] 的文化进入 [时代id],如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有时代ID。
|
|[时代id]
|character
|join_era culture_era_high_medieval
|bool
|The character gets deposed.
|
|Vassalage
|-
|-
 
|kill
|destroy_title
| 杀死 [角色id],如果没有指定角色id则默认杀死玩家角色。
|
|[角色id]
|character
|kill
|title
|Destroys a title.
|
|Titles
|-
|-
 
|know_schemes
|end_pregnancy
| 发现针对玩家角色的所有计谋。
|
|
|character
|know_schemes
|
|End a pregnancy
|
|Characters
|-
|-
 
|merge_culture
|execute_decision
| 改变 [文化id] 下所有伯爵领的文化为 [文化id]。
|
|[文化id] [文化id]
|character
|merge_culture greek swedish
|
|Execute the specified decision for the scoped character
|
|Characters
|-
|-
 
|pregnancy
|finish_council_task
| 使女性 [角色id] 怀孕,父亲为 [角色id],如果没有指定父亲角色id则父亲未知。
|
|[角色id] [角色id]
|character
|pregnancy 1234
|
|The councillor finish the current assigned task successfully.
|
|Jobs
|-
|-
 
|remove_doctrine
|fire_councillor
|[教义id] 在 [信仰id] 中被移除,如果没有指定信仰则默认为玩家角色的信仰。按下 {{Key press|Tab}} 将显示所有教义ID。
|
|[教义id] [信仰id]
|character
|remove_doctrine doctrine_pluralism_righteous catholic
|character
|The scope character fires the target character form teh council.
|
|Jobs
|-
|-
 
|remove_nick
|forbid_from_scheme
| 移除 [角色id] 的当前[[绰号]],如果没有指定角色id则默认为玩家角色。
|
|[角色id]
|character
|remove_nick
|
|Forbid the scope character from joining the target scheme as an agent (and kick the character out if already in the scheme)
|
|Hooks and Schemes
|-
|-
 
|remove_relation
|force_add_to_scheme
| 移除 [关系id]([角色id] 和 [角色id] 之间的),如果只指定了一个角色,则默认为指定角色和玩家角色之间移除关系。
|
|[关系id] [角色id]
|character
|remove_relation friend 1234
|key/int
|Adds a character as an agent to the scheme and forces them to stay.
|force_add_to_scheme = { scheme = target_Scheme days/months/years = duration }
|Hooks and Schemes
|-
|-
 
|remove_trait
|force_vote_as
|[特质id] 从 [角色id] 上移除 ,如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有特质ID。
|
|[特质id] [角色id]
|character
|remove_trait witch
|
|Forces the character to vote the same as the target.
|force_vote_as = { target = someone days/months/years = x }
|Characters
|-
|-
 
|set_culture
|get_title
|[角色id] 的文化改变为 [文化id],如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有文化ID。
|
|[文化id] [角色id]
|character
|set_culture swedish
|title
|Gives a title to a character.
|
|Titles
|-
|-
 
|set_dread
|give_nickname
|[角色id] 的恐怖值设定为 [指定数值],如果没有指定角色id则默认为玩家角色。
|
|[指定数值] [角色id]
|character
|set_dread 100
|key
|Give a nickname to this character.
|
|Characters
|-
|-
 
|set_faith
|join_faction
|[角色id] 的信仰改变为 [信仰id],如果没有指定角色id则默认为玩家角色。按下 {{Key press|Tab}} 将显示所有信仰ID。
|
|[信仰id] [角色id]
|character
|set_faith catholic
|
|The character in the scope joins the assigned faction.
|
|Factions
|-
|-
 
|set_focus
|join_faction_forced
|[角色id] 的重心设定为 [重心id],如果没有指定角色id则默认为玩家角色。
|
|[重心id] [角色id]
|character
|set_focus diplomacy_majesty_focus
|key/character/int
|The character in the scope is forced to join a faction by a character for a defined time.
|join_faction_forced = { faction = X forced_by = Y days/months/years = duration }
|Factions
|-
|-
 
|set_nick
|join_faction_skip_check
| 添加 [<nowiki/>[[绰号| 绰号id]]] 给 [角色id],如果没有指定角色id则默认为玩家角色。
|
|[<nowiki/>[[绰号| 绰号id]]] [角色id]
|character
|set_nick nick_the_lazy
|
|The character in the scope joins the assigned faction skiping the can_character_join trigger.
|
|Factions
|-
|-
 
|set_sexuality
|leave_faction
|[角色id] 的性取向改变为 [性取向id],如果没有指定角色id则默认为玩家角色
|
|[重心id] [角色id]
|character
|set_sexuality bisexual
|
|The charcter in the scope leaves the assigned faction.
|
|Factions
|-
|-
 
|set_stress
|make_claim_strong
|[角色id] 的压力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_stress 0
|title
|Makes a claim strong (character adds the claim if not having it already).
|
|Titles
|-
|-
 
|set_diplomacy
|make_claim_weak
|[角色id] 的外交能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_diplomacy 16
|title
|Makes a claim weak (character adds the claim if not having it already).
|
|Titles
|-
|-
 
|set_martial
|make_concubine
|[角色id] 的军事能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_martial 16
|character
|Makes the target character a concubine of the scope character, the target should not be imprisoned.
|
|Characters
|-
|-
 
|set_stewardship
|make_pregnant
|[角色id] 的管理能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_stewardship 16
|character/int/bool
|Makes a character pregnant.
|make_pregnant = { father= 'the real father' number_of_children= X known_bastard=yes/no }
|Characters
|-
|-
 
|set_intrigue
|make_trait_active
|[角色id] 的谋略能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_intrigue 16
|
|Activates an inactive trait. Tooltip will not be shown if the character cannot have the trait.
|
|Characters
|-
|-
 
|set_learning
|make_trait_active_force_tooltip
|[角色id] 的学识能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_learning 16
|
|Activates an inactive trait. Tooltip will be shown even if the character cannot have the trait.
|
|Characters
|-
|-
 
|set_prowess
|make_trait_inactive
|[角色id] 的勇武能力设定为 [指定数值],如果没有指定角色id则默认为玩家角色
|
|[指定数值] [角色id]
|character
|set_prowess 16
|
|Makes a current trait of a character inactive. Tooltip will not be shown if the character doesn't have the trait.
|
|Characters
|-
|-
 
|set_date
|make_trait_inactive_force_tooltip
| 将日期设定为 [年.月.日],如果没有指定年份与日期则默认为一月一日
|
|[年.月.日]
|character
|set_date 1066.9.15
|
|Makes a current trait of a character inactive. Tooltip will be shown even if the character doesn't have the trait.
|
|Characters
|-
|-
 
|yesmen
|make_unprunable
|AI角色接受所有提议。再次输入则失效。
|
|
|character
|yesmen
|
|The scope character will no longer be prunable after their death. Use with care, as this will make everyone related to them unprunable too. So you should only use this if someone absolutely *needs* to stick around several years after their death.
|make_unprunable = yes
|Characters
|-
|-
 
|yesmen_instant
|marry
|AI角色立即接受所有提议。再次输入则失效。
|
|None
|character
|yesmen_instant
|character
|Marries the scoped character to the target character.
|marry = target
|Characters
|-
|-
 
|add_pending_court_event
|marry_matrilineal
| 在玩家朝廷中添加一个待处理事件。
|
|
|character
|add_pending_court_event
|character
|Marries the scoped character to the target character matrilineally
|marry_matrilineal = target
|Characters
|-
|-
 
|add_influence
|move_to_pool
| 为玩家角色添加 [指定数值] 的影响力,负值为减少能力数值。默认值1000。
|
|[指定数值]
|character
|add_influence 16000
|bool
|The scoped character (courtier or guest) leaves their current court and moves into the pool.
|scope:guest = { move_to_pool = yes }
|Characters
|-
|-
|change_provisions
|为玩家角色添加 [指定数值] 的给养,负值为减少能力数值。
|[指定数值]
|change_provisions 2500
|}


|move_to_pool_at
== 测试指令 ==
|
测试指令被用于开发人员,测试员或模组制作者进行测试。
|character
{| class="wikitable" width=100%
|province
!指令
|The scoped character (courtier/guest/pool character) leaves their current court (if any) and moves into the pool of the specified province
!效果
|scope:guest = { move_to_pool_at = scope:some_province }
!参数
|Characters
!举例
|-
|-
 
|clear
|pay_long_term_gold
| 清除控制台历史输入。
|
|
|character
|clear
|character/int
|The scope character pays gold to the target character. (AI budget category long term).
|pay_gold = { target = X gold = Y }
|Characters
|-
|-
 
| dump_bookmark_portraits
|pay_short_term_gold
| 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.
|
|
|character
| dump_bookmark_portraits
|
|The scope character pays gold to the target character. (AI budget category short term).
|pay_gold = { target = X gold = Y }
|Characters
|-
|-
 
|effect
|pay_short_term_income
| 执行脚本效果。
|
To run the effect on a character other than the player, use <code>effect character:<character_id> = {<effect_name> = <parameters>}</code>
|character
|[效果脚本]
|character/int
|effect test
|The scope character immediately pays gold corresponding to their income to the target character. (AI budget short term).
|pay_income = { target = X days/months/years = Y }
|Characters
|-
|-
 
|faction_spawn
|play_music_cue
| 生成 [派系类型],如果存在有效的省份或廷臣来建立它。
|
|[派系类型]
|character
|faction_spawn peasant_faction
|
|Plays the specified music cue.
|
|Music
|-
|-
 
|generate_cadet_coa
|recalculate_scripted_relation
| 为玩家角色的家族生成一个新的盾徽。
|
|
|character
|generate_cadet_coa
|
|Recalculates the effect of a scripted relation.
|recalculate_scripted_relation = friend
|Relations
|-
|-
 
|help
|recruit_courtier
| 输出 [指令] 的相关描述,如果为空则列出所有控制台指令。
|
|[指令]
|character
|help help
|character
|Recruits the target to become a courtier.(It doesn't work)
|scope:liege = { recruit_courtier = scope:new_courtier }
|Characters
|-
|-
 
|instamove
|refund_all_perks
| 军队每一天移动一个男爵领。(同时影响AI和玩家)
|
|
|character
|instamove
|bool
|Refunds all perks of the character.
|refund_all_perks = yes
|Lifestyles
|-
|-
 
|map_editor
|refund_perks
| 打开地图编辑器。
|
|
|character
|map_editor
|key
|Refunds all perks of the RHS lifestyle.
|refund_perks = intrigue_lifestyle
|Lifestyles
|-
|-
 
|nomen
|release_from_prison
|AI角色拒绝所有提议。再次输入则失效。
|
|
|character
|nomen
|bool
|Releases the character from the prison.
|release_from_prison = yes
|Characters
|-
|-
 
|observe
|remove_all_character_modifier_instances
| 进入观察者模式。
|
|
|character
|observe
|modifier
|Remove all instances of a modifier from a character
|remove_all_character_modifier_instances = name
|Modifiers
|-
|-
 
|play
|remove_character_flag
| 切换角色为 [角色id]。
|
|[角色id]
|character
|play 1234
|flag
|Removes a character flag.
|
|Flags
|-
|-
 
|portrait_editor
|remove_character_modifier
| 打开肖像编辑器。
|
|
|character
|portrait_editor
|modifier
|Remove a modifier from a character.
|remove_character_modifier = name
|Modifiers
|-
|-
 
| reload
|remove_claim
| 重载模组和游戏文件到内存中。按tab键查看可以重载的所有(许多)可能目标。
|
| [filename][target]
|character
| reload events
|landed title
|Removes an explicit (not from a living parent/grand parent) claim.
|
|Title
|-
|-
 
|run
|remove_concubine
| 执行 [文件名称] 中的指令。txt文件必须位于<code>Documents/Paradox Interactive/Crusader Kings III/run</code>。
|
|
|character
|run test.txt
|character
|Removes the target character as a concubine of the scope character.
|
|Relations
|-
|-
 
|set_is_ai
|remove_courtier_or_guest
| 允许AI控制 [角色id]。
|
|[角色id]
|character
|set_is_ai 1234
|character
|Removes the target character (guest or courtier) from the scope character's court.
|scope:host = { remove_courtier_or_guest = scope:guest }<br>scope:host = {<br>remove_courtier_or_guest = {<br>character = scope:guest<br>new_location = scope:some_province # optionally specify a new location<br>}<br>}
|Characters
|-
|-
 
|set_is_player
|remove_decision_cooldown
| 禁止AI控制 [角色id]。
|
|[角色id]
|character
|set_is_player 1234
|key
|Remove the cooldown on taking a decision for the scoped character.
|remove_decision_cooldown = decision_name
|Decisions
|-
|-
|script_docs
|将所有的effects、event scopes、modifiers、on actions、triggers等输出到{{cite file|Documents\Paradox Interactive\Crusader Kings III\logs}}。
|无
|script_docs
|}


|remove_hook
== 特质ID==
|
{{main| 特质}}
|character
|character/hook_type
|Removes a hook on a character. If type is specified, the hook will only be removed if it is of that type.
|remove_hook = { target = X, type = Y }
|Hooks and Schemes
|-


|remove_interaction_cooldown
所有特质都有一个ID用于在游戏内部引用。它们可以在<code>game\common\traits\00_traits.txt</code>中找到。特质ID通常和它们的名称匹配。执行以下步骤可以根据特质的名称获得其ID:
|
|character
|interaction
|Remove the cooldown on using an interaction for the scoped character.
|remove_interaction_cooldown = interaction_name
|Interactions
|-


|remove_interaction_cooldown_against
*如果特质在英文游戏中显示有两个名称,使用括号中的那个。
|
*使用下划线(<code>_</code>)替换空格(<code> </code>)和连接符(<code>-</code>)
|character
*移除所有格符号(<code>'</code>)
|interaction/character
*将大写字母换为小写字母(<code>A...Z->a...z</code>)
|Remove the cooldown on using an interaction against the target character for the scoped character.
|remove_interaction_cooldown_against = { interaction = interaction_name target = character }
|Interactions
|-


|remove_long_term_gold
下面列出了不符合这一模式的特质,以供参考。
|
|character
|
|Removes gold from a character (AI's long term budget).
|
|Characters
|-


|remove_nickname
{| class="wikitable" style="float: left; margin-right: 30px;"
|
!教育特质
|character
!ID
|bool
|Removes any nickname from the current character.
|
|Characters
|-
|-
 
|{{icon|Naive Appeaser}} 天真的绥靖者
|remove_opinion
|education_diplomacy_1
|
|character
|character/modifier/bool
|Removes a temporary opinion modifier. Where X is a character, Y is the opinion modifier, Z tells whether to remove all instances of the modifier or just one.
|remove_opinion = { target = X modifier = Y single = Z (no by default) }
|Modifiers
|-
|-
 
|{{icon|Adequate Bargainer}} 合格的谈判者
|remove_perk
|education_diplomacy_2
|
|character
|
|Remove the perk for this character
|
|Characters
|-
|-
 
|{{icon|Charismatic Negotiator}} 魅力非凡的说客
|remove_realm_law
|education_diplomacy_3
|
|character
|law
|Removes the given law from the scoped character. This will leave the law group empty, so only do this if you're getting rid of a law group.
|
|Laws
|-
|-
 
|{{icon|Grey Eminence}} 幕后操控人
|remove_relation_best_friend
|education_diplomacy_4
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Misguided Warrior}} 鲁莽的战士
|remove_relation_bully
|education_martial_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Tough Soldier}} 坚强的战士
|remove_relation_court_physician
|education_martial_2
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Skilled Tactician}} 优秀战术家
|remove_relation_crush
|education_martial_3
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Brilliant Strategist}} 天才军事家
|remove_relation_flag
|education_martial_4
|
|flag/character/relation
|Removed a flag from an existing relation.
|
|remove_relation_flag = { flag = flag_name (declared in scripted_relation) target = other_character relation = scripted_relation }
|Flags
|-
|-
 
|{{icon|Indulgent Wastrel}} 放荡的浪子
|remove_relation_friend
|education_stewardship_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Thrifty Clerk}} 节俭的职员
|remove_relation_guardian
|education_stewardship_2
|
|character
|character
|Removes scripted relationship
|
|Relations
|-
|-
 
|{{icon|Fortune Builder}} 财富创造者
|remove_relation_intrigue_mentor
|education_stewardship_3
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Midas Touched}} 点石成金者
|remove_relation_intrigue_student
|education_stewardship_4
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Amateurish Plotter}} 业余阴谋家
|remove_relation_lover
|education_intrigue_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Flamboyant Trickster}} 浮夸的诈骗师
|remove_relation_mentor
|education_intrigue_2
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Intricate Webweaver}} 暗中策划者
|remove_relation_nemesis
|education_intrigue_3
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Elusive Shadow}} 难以捉摸的影子
|remove_relation_oaf
|education_intrigue_4
|
|character
|character
|Removes scripted relationship
|
|Relations
|-
|-
 
|{{icon|Conscientious Scribe}} 尽职的书吏
|remove_relation_potential_friend
|education_learning_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Insightful Thinker}} 有见地的思想家
|remove_relation_potential_lover
|education_learning_2
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Astute Intellectual}} 明睿的智者
|remove_relation_potential_rival
|education_learning_3
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Mastermind Philosopher}} 哲学大师
|remove_relation_rival
|education_learning_4
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Bumbling Squire}} 笨手笨脚的扈从
|remove_relation_soldier_friend
|education_martial_prowess_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Confident Knight}} 自信的骑士
|remove_relation_soulmate
|education_martial_prowess_2
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Formidable Banneret}} 令人敬畏的方旗骑士
|remove_relation_student
|education_martial_prowess_3
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Famous Champion}} 著名勇士
|remove_relation_victim
|education_martial_prowess_4
|
|}
|character
{| class="wikitable" style="float: left; margin-right: 30px;"
|character
!先天特质
|Removes scripted relationship.
!ID
|
|Relations
|-
|-
 
|{{icon|Homely}} 其貌不扬
|remove_relation_ward
|beauty_bad_1
|
|character
|character
|Removes scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Ugly}} 丑陋不堪
|remove_scheme_cooldown_against
|beauty_bad_2
|
|character
|scheme/character
|Remove the cooldown on using a scheme against the target character for the scoped character
|remove_scheme_cooldown_against = { scheme = scheme_name target = character }
|Hooks and Schemes
|-
|-
 
|{{icon|Hideous}} 面目狰狞
|remove_short_term_gold
|beauty_bad_3
|
|character
|
|Removes gold from a character (AI's short term budget).
|
|Characters
|-
|-
 
|{{icon|Comely}} 眉清目秀
|remove_trait
|beauty_good_1
|
|character
|
|Removes a trait from a character. Tooltip will not be shown if the character doesn't have the trait.
|
|Characters
|-
|-
 
|{{icon|Handsome}} 螓首蛾眉 / 英姿飒爽
|remove_trait_force_tooltip
|beauty_good_2
|
|character
|
|Removes a trait from a character. Tooltip will be shown even if the character doesn't have the trait.
|
|Characters
|-
|-
 
|{{icon|Beautiful}} 倾国倾城
|reset_beneficiary
|beauty_good_3
|
|character
|bool
|The target character stops having a beneficiary.
|reset_beneficiary = yes
|Holy Wars
|-
|-
 
|{{icon|Slow}} 迟钝
|return_to_court
|intellect_bad_1
|
|character
|
|Returns the scope character to the employers court.
|
|Characters
|-
|-
 
|{{icon|Stupid}} 愚笨
|reverse_add_opinion
|intellect_bad_2
|
|character
|modifier/int/character
|Adds a temporary reverse opinion modifier. X is a scripted modifier name. Y can be a value or a range "{ A B }" If no timeout are specified, the modifier's scripted default timeout will be used.
|reverse_add_opinion = { modifier = X days/months/years = Y target = Z }
|Modifiers
|-
|-
 
|{{icon|Imbecile}} 痴呆
|scriptedtests_recalculate_character_modifier
|intellect_bad_3
|
|character
|
|Recalculates the modifier of the scoped character.
|
|Modifiers
|-
|-
 
|{{icon|Quick}} 敏锐
|scriptedtests_recalculate_succession
|intellect_good_1
|
|character
|
|Recalculates the line of succession of the scoped character.
|
|Succession
|-
|-
 
|{{icon|Intelligent}} 聪慧
|send_interface_message
|intellect_good_2
|
|character
|
|Sends a message to the player playing the character in the scope and then executes any effects inside.<br>For the message text and tooltip, $EFFECT$ contains the text description of the effects in the past tense and $DESC$ contains the text from the desc field.
|send_interface_message = {<br>type = message_type # default: send_interface_message<br>title = LOCALIZATION # optional, otherwise takes it from the message type<br>desc = LOCALIZATION # optional, otherwise takes it from the message type<br>tooltip = LOCALIZATION # optional, otherwise takes it from the message type<br>left_icon = scope:recipient # optional, character or title<br>right_icon = scope:the_title # optional, character or title<br>goto = scope:the_title # optional, character, barony title, province will add a goto button<br># optional effects...<br>add_dread = 5<br>scope:someone = { add_gold = 5 }<br>}
|Notifications
|-
|-
 
|{{icon|Genius}} 天才
|send_interface_toast
|intellect_good_3
|
|character
|
|Sends a message to the player playing the character in the scope and then executes any effects inside.<br>For the message text and tooltip, $EFFECT$ contains the text description of the effects in the past tense.<br>And $DESC$ contains the text from the desc field.
|send_interface_toast = {<br>type = message_type # default: send_interface_toast<br>title = LOCALIZATION # optional, otherwise takes it from the message type<br>desc = LOCALIZATION # optional, otherwise takes it from the message type<br>left_icon = scope:recipient # optional, character or title<br>right_icon = scope<br>goto = scope:the_title # optional, character, barony title, province will add a goto button<br># optional effects...<br>add_dread = 5<br>scope:someone = { add_gold = 5 }<br>}
|Notifications
|-
|-
 
|{{icon|Delicate}} 纤弱
|set_absolute_country_control
|physique_bad_1
|
|character
|
|Sets if this character has absolute country control.
|
|Control
|-
|-
 
|{{icon|Frail}} 脆弱
|unlock_character_movement
|physique_bad_2
|
|
|bool/character
|
|
|Characters
|-
|-
 
|{{icon|Feeble}} 衰弱
|set_beneficiary
|physique_bad_3
|
|character
|character
|The target character becomes the beneficiary of the scoped character.
|set_beneficiary = some character
|Holy Wars
|-
|-
 
|{{icon|Hale}} 硬朗
|set_character_faith
|physique_good_1
|
|character
|faith
|Changes what faith a character has executing the effects for it. For history setup use 'set_character_faith_history' instead.
|
|Characters
|-
|-
 
|{{icon|Robust}} 健壮
|set_character_faith_history
|physique_good_2
|
|character
|faith
|Changes what faith a character has NOT executing the effects for it. USE ONLY IN HISOTRY SETUP!
|
|Characters
|-
|-
 
|{{icon|Amazonian}} 阿玛宗 / 海格力斯
|set_character_faith_with_conversion
|physique_good_3
|
|character
|faith
|Changes what faith a character has, as if they used the faith-view interaction (minus the piety cost). So vassals who'd accept will get converted, as will capitals
|
|Characters
|-
|-
 
|{{icon|Melancholic}} 抑郁
|set_child_of_concubine_on_pregnancy
|depressed_1 / depressed_genetic
|
|character
|
|Sets the child to be (or not be) a child of a concubine during pregnancy
|
|Characters
|-
|-
 
|{{icon|Lunatic}} 精神错乱
|set_council_task
|lunatic_1 / lunatic_genetic
|
|character
|key/character
|Sets the task of the scope councillor
|set_council_task = { task_type = council_position_type_key target = for_targeted_tasks  }
|Jobs
|-
|-
 
|{{icon|Possessed}} 附身
|set_culture
|possessed_1 / possessed_genetic
|
|}
|character
{| class="wikitable" style="float: left; margin-right: 30px;"
|culture
!生活特质
|Set the culture for this character
!ID
|
|Characters
|-
|-
 
|{{icon|Aspiring Blademaster}} 立志的剑客
|set_culture_same_as
|blademaster_1
|
|character
|character
|Sets the culture of the character to be the same as the culture of the target.
|
|Characters
|-
|-
 
|{{icon|Blademaster}} 刀剑大师
|set_death_reason
|blademaster_2
|
|character
|
|Sets the death reason and the killer of a dead character.
|set_death_reason = { killer = X death_reason = Y }, both parameters are optional
|Characters
|-
|-
 
|{{icon|Legendary Blademaster}} 传奇剑圣
|set_default_education
|blademaster_3
|
|
|character
|Sets the default education focus for this character.
|
|Lifestyles
|-
|-
 
|{{icon|Novice Hunter}} 新手猎人
|set_designated_heir
|hunter_1
|
|character
|character
|Sets the given character as designated heir.
|
|Succession
|-
|-
 
|{{icon|Hunter}} 猎人
|set_employer
|hunter_2
|
|character
|character
|Add the scope character to the target character's court.
|
|Characters
|-
|-
 
|{{icon|Master Hunter}} 狩猎大师
|set_father
|hunter_3
|
|character
|character
|Sets the father of a character.
|
|Characters
|-
|-
 
|{{icon|Wise Man}} 智者 / 女智者
|set_focus
|mystic_1
|
|character
|
|Set the focus for this character
|
|Lifestyles
|-
|-
 
|{{icon|Mystic}} 神秘主义者
|set_house
|mystic_2
|
|character
|dynasty house
|Sets the dynasty house of the character.
|
|Characters
|-
|-
 
|{{icon|Miracle Worker}} 行奇迹者
|set_immortal_age
|mystic_3
|
|character
|int
|Changes what age the character became immortal at. Only works if already immortal.
|set_immortal_age = 20
|Characters
|-
|-
 
|{{icon|Eager Reveler}} 热切的狂欢者
|set_killer_public
|reveler_1
|
|character
|
|Sets the scoped character's killer as being publicly known
|set_killer_public = bool
|Hooks and Schemes
|-
|-
 
|{{icon|Famous Reveler}} 著名的狂欢者
|set_known_bastard_on_pregnancy
|reveler_2
|
|character
|
|Sets the child to a known or unknown bastard during pregnancy.
|
|Characters
|-
|-
 
|{{icon|Legendary Reveler}} 传奇的狂欢者
|set_num_pregnancy_children
|reveler_3
|
|character
|int
|Set the number of children
|
|Characters
|-
|-
 
|{{icon|Novice Physician}} 新手医生
|set_override_designated_winner
|physician_1
|
|character
|bool
|The scoped character will put their beneficiary on the throne if they're the #1 participant if this is called with 'yes'. Call with 'no' to turn it off again.
|set_override_designate_winner = yes
|Holy Wars
|-
|-
 
|{{icon|Physician}} 医生
|set_player_character
|physician_2
|
|character
|character
|The scope character's player will now play as the target character. Scope must be player-controlled. Target cannot be player-controlled.
|
|Characters
|-
|-
 
|{{icon|Renowned Physician}} 著名医师
|set_pregnancy_assumed_father
|physician_3
|
|character
|character
|Set the assumed father of the pregnancy.
|
|Characters
|-
|-
 
|{{icon|Patriarch}} 顾家男人 / 顾家女人
|set_primary_spouse
|family_first
|
|character
|character
|Set the primary spouse of a character.
|set_primary_spouse = scope
|Characters
|-
|-
 
| {{iconify|Herbalist| 草药师}}
|set_primary_title_to
| lifestyle_herbalist
|
|}
|character
{| class="wikitable" style="float: left; margin-right: 30px;"
|landed title
!其他特质
|Sets the primary title for a character.
!ID
|set_primary_title_to = <title>
|Titles
|-
 
|set_real_father
|
|character
|character
|Changes the real father of the character scope.
|
|Characters
|-
 
|set_realm_capital
|
|character
|landed title
|Set a new realm capital
|character = { set_realm_capital = new_title }
|Realm
|-
 
|set_relation_best_friend
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_bully
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_court_physician
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_crush
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_friend
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_guardian
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
 
|set_relation_intrigue_mentor
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Dynastic Kinslayer}} 弑族亲者
|set_relation_intrigue_student
|kinslayer_1
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Familial Kinslayer}} 弑亲族者
|set_relation_lover
|kinslayer_2
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Kinslayer}} 弑至亲者
|set_relation_mentor
|kinslayer_3
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Wounded}} 受伤
|set_relation_nemesis
|wounded_1
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Severely Injured}} 身受重伤
|set_relation_oaf
|wounded_2
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Brutally Mauled}} 严重撕裂
|set_relation_potential_friend
|wounded_3
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Sterile}} 不育 / 不孕
|set_relation_potential_lover
|infertile
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Monk}} 修士 / 修女
|set_relation_potential_rival
|devoted
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Crusader}} 十字军战士<br>{{icon|Mujahid}} 圣战士<br>{{icon|Warrior of the Faith}} 信仰勇士
|set_relation_rival
|faith_warrior
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Holy Monarch}} 圣君
|set_relation_soldier_friend
|crusader_king
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Pneumonia}} 肺炎
|set_relation_soulmate
|pneumonic
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Club-footed}} 足内翻
|set_relation_student
|clubfooted
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|The Savior}} 救主
|set_relation_victim
|savior
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Raider}} 劫掠者 / 维京
|set_relation_ward
|viking
|
|character
|character
|Sets scripted relationship.
|
|Relations
|-
|-
 
|{{icon|Lover's pox}} {{icon|Great pox}} 情人的疱疹
|set_sexuality
|lovers_pox/early_great_pox
|
|character
|
|Sets the sexuality of the character
|
|Characters
|-
|-
 
|{{icon|Blood of the Prophet}} 先知的血脉(未生效)
|set_to_lowborn
|blood_of_prophet
|
|character
|
|Set the character to lowborn.
|
|Characters
|-
|-
 
|{{icon|Child of Concubine}} 庶出
|set_vassal_contract_modification_blocked
|child_of_concubine_female
|
|character
|
|Blocks the vassal contract from being modified with regards to being checked by 'vassal_contract_is_blocked_from_modification'
|
|Vassalage
|-
|-
 
|{{icon|Child of Consort}} 庶出
|spawn_army
|child_of_concubine_male
|
|character
|
|Spawns an army for this character. If the character is not at war, the regiments will be created, but the army will not be spawned.
|spawn_army = {<br>levies = int/script value # optional, number of men<br>men_at_arms = { # optional, multiple can be specified. Need either levies or MAA<br>type = key<br>men/stacks = int/script value<br>}<br>location = province<br>origin = province # optional, location used if not set. This is used for where to base bonuses and the like on<br>war = war # optional. If set, the stack will disband after the war ends<br>inheritable = yes/no # Default: yes<br>uses_supply = yes/no # Default: yes<br>army = army # optional. If set, the stack will merge into this army<br>save_scope_as/save_temporary_scope_as = new_army # optional way to get a reference to the new army. Note this might not be set if the army wasn't spawned (e.g. if the character is not at war)<br>name = description # gives the troops a specific name that shows up in interfaces<br>}
|Armies
|-
|-
|{{icon|Pilgrim}} 朝圣者<br>{{icon|Hajji}} 朝觐者 / 朝觐妇
|pilgrim
|}
{{clear}}


|start_default_task
== 革新ID ==
|
{{main| 革新}}
|character
{{hatnote| 中文用户推荐参考[[革新#革新列表| 革新]]词条中列出的ID}}
|
革新ID通常和他们的名称相对应。但以下革新使用的ID不同:
|Force the Councillor to revert to the default task. Any relevant percentage progress will be lost (even if the councillor was performing the default task already).
{| class="wikitable"
|
! 革新
|Jobs
! ID
|-
|-
 
| [[File:Innovation majesty 02.png|35px]] 货币 || innovation_currency_01
|start_scheme
|
|character
|
|
|starts a scheme  = { type = X target = Y }
|Hooks and Schemes
|-
|-
 
| [[File:Innovation civil construction 01.png|35px]] 公共工程 || innovation_development_01
|start_war
|
|character
|
|Starts a war. X is a casus belli type, Y is the target character, Z i the (optional) claimant, W1, W2.... are targeted titles.
|start_war = { casus_belli/cb = X target = Y claimant = Z target_title = W1 target_title = W2 ... }
|Wars
|-
|-
 
| [[File:Innovation siege weapons.png|35px]] 野驴炮 || innovation_catapult
|stress_impact
|
|character
|
|Stress impact according to specified traits (trait = value), use base = value for a base value that's always added.
|stress_impact = { sadistic = medium_stress_impact_loss }<br>stress_impact = { compassionate = medium_stress_impact_gain }
|Characters
|-
|-
 
| [[File:Innovation special maa 02.png|35px]] 诸葛弩 || innovation_repeating_crossbow
|use_hook
|
|character
|character
|Uses a hook a character has (removes if weak, puts on cooldown if strong).
|use_hook = some_character
|Hooks and Schemes
|-
|-
 
| [[File:Innovation special maa 01.png|35px]] 防守战术 || innovation_mobile_guards
|vassal_contract_decrease_obligation_level
|
|character
|
|Decrease the obligation level of the scoped character's vassal contract.
|
|Vassalage
|-
|-
 
| [[File:Innovation special maa 01.png|35px]] 骠骑兵突袭 || innovation_hussar_raids
|vassal_contract_increase_obligation_level
|
|character
|
|Increase the obligation level of the scoped character's vassal contract.
|
|Vassalage
|-
|-
 
| [[File:Innovation misc inventions.png|35px]] 长船 || innovation_longboats
|vassal_contract_set_obligation_level
|
|character
|
|Change the obligation level of the scoped character's vassal contract.
|vassal_contract_set_obligation_level = { type = name level = 1 } # index to obligation level<br>vassal_contract_set_obligation_level = { type = name level = feudal_obligation_low }
|Vassalage
|-
|-
 
| [[File:Innovation majesty 01.png|35px]] 西非独木舟 || innovation_african_canoes
|visit_court_of
|
|character
|character
|Add the scope character as the target character's guest.
|
|Characters
|-
|-
 
| [[File:Innovation nobility 01.png|35px]] 金属硬币 || innovation_currency_02
|add_faction_discontent
|
|faction
|
|Adds (or subtracts) discontent to the scope faction.
|add_faction_discontent = X
|Factions
|-
|-
 
| [[File:Innovation nobility 03.png|35px]] 社区治理 || innovation_development_02
|destroy_faction
|
|faction
|
|The scope faction is destroyed.
|destroy_faction = yes
|Factions
|-
|-
 
| [[File:Innovation maa 01.png|35px]] 家兵 || innovation_house_soldiers
|faction_remove_war
|
|faction
|
|Removes the war currently associated with the faction.
|faction_remove_war = yes
|Factions
|-
|-
 
| [[File:Innovation maa 02.png|35px]] 沙漠山地经验 || innovation_desert_mountain_herding
|faction_start_war
|
|faction
|
|The scope faction starts the war agains their target.
|faction_start_war = {<br>title = [optional]<br>}
|Factions
|-
|-
 
| [[File:Innovation majesty 03.png|35px]] 部落公国 || innovation_stem_duchies
|remove_special_character
|
|faction
|
|Removes the special character for the scope faction
|
|Factions
|-
|-
 
| [[File:Innovation majesty 02.png|35px]] 银行业 || innovation_currency_03
|remove_special_title
|
|faction
|
|Removes the special character for the scope faction.
|
|Factions
|-
|-
 
| [[File:Innovation civil construction 01.png|35px]] 城市化 || innovation_development_03
|set_special_character
|
|faction
|character
|Sets the special character for the scope faction.
|
|Factions
|-
|-
 
| [[File:Innovation misc inventions.png|35px]] 东向移民 || innovation_east_settling
|set_special_title
|
|faction
|landed title
|Sets the special title for the scope faction
|
|Factions
|-
|-
 
| [[File:Innovation administration 01.png|35px]] 本票 || innovation_currency_04
|add_attacker
|
|war
|character
|Adds the target character to the scope war as an attacker.
|
|Wars
|-
|-
| [[File:Innovation misc inventions.png|35px]] 文艺复兴思想 || innovation_development_04
|}


|add_defender
== 头衔ID ==
|
{{main| 头衔}}
|war
|character
|Adds the target character to the scope war as a defender.
|
|Wars
|-


|end_war
所有头衔都有一个内部头衔ID,在<code>game\common\landed_titles\00_landed_titles.txt</code>中可以找到。头衔ID有一个基于头衔等级的前缀,后面接上一个下划线(<code>_</code>),之后连接它们的名称。
|
|war
|
|Ends the war with the specified winner.
|end_war = attacker/defender/white_peace
|Wars
|-


|remove_participant
{| class="mildtable"
|
!等级
|war
!前缀
|character
!举例
|Removes the target character from the scope war.
|
|Wars
|-
|-
 
|{{icon|Barony}} 男爵领
|set_called_to
|<code>b_</code>
|
|<code>Wigmore -> b_wigmore</code>
|war
|character
|Sets the target character as already called to the scope war.
|
|Wars
|-
|-
 
|{{icon|County}} 伯爵领
|set_casus_belli
|<code>c_</code>
|
|<code>Sundgau -> c_sundgau</code>
|war
|
|Sets the casus belli of the scope war.
|
|Wars
|-
 
|activate_holy_site
|
|faith
|
|Activate an inactive holy site.
|<faith_scope> = { activate_holy_site = <holy_site_name> }
|Faiths
|-
|-
 
|{{icon|Duchy}} 公国
|add_doctrine
|<code>d_</code>
|
|<code>Sicily -> d_sicily</code>
|faith
|doctrines
|Add doctrine to faith.
|<faith_scope> = { add_doctrine = <doctrine_name> }
|Faiths
|-
|-
 
|{{icon|Kingdom}} 王国
|change_fervor
|<code>k_</code>
|
|<code>Denmark -> k_denmark</code>
|faith
|int
|Changes the fervor of the faith by the given value.
|change_fervor = script value
|Faiths
|-
|-
 
|{{icon|Empire}} 帝国
|remove_doctrine
|<code>e_</code>
|
|<code>Persia -> e_persia</code>
|faith
|doctrines
|Remove doctrine from faith.
|<faith_scope> = { remove_doctrine = <doctrine_name> }
|Faiths
|-
|-
|}


|remove_religious_head_title
{{hatnote| 中文用户推荐参考相关列表中列出的头衔ID:}}
|
*[[伯爵领列表]]
|faith
*[[公国列表]]
|bool
*[[王国列表]]
|Removes the religious head title of the faith.
*[[帝国列表]]
|remove_religious_head_title = yes
|Faiths
|-


|set_religious_head_title
=== 根据游戏内名称查找头衔ID ===
|
头衔ID可能并不和游戏中头衔名称完全匹配。例如,玩家可能将游戏设置为英语外的其他语言,或者头衔存在文化特有名称。依靠以下步骤,只根据游戏内名称寻找头衔ID:
|faith
|landed title
|Sets the religious head title of the faith to the given title.
|set_religious_head_title = scope
|Faiths
|-


|start_great_holy_war
*找到文件<code>game\localization\LANGUAGE\titles_l_LANGUAGE.yml</code>,将<code>LANGUAGE</code>替代为你使用的语言。
|
**简体中文:<code>game\localization\simp_chinese\titles_l_simp_chinese.yml</code>。
|faith
*使用文本编辑器如Notepad++、Notepad3打开文件,使用 {{key press|CTRL}} + {{key press|F}} 搜索游戏内的头衔名称。
|
*如果你成功了找到匹配项:
|Starts a great holy war.
**这一行应该看起来类似于<code>b_constantinople:0 "君士坦丁堡"</code>。
|start_great_holy_war = {<br>target_character = someone<br>target_title = some<br>titledelay = script value# Number of days until the war should<br>startwar = some war # Optional. Will make this a directed GHW instead of undirected, and tie it to this specific war<br>}
**头衔ID是<code>:0</code>前的代码,因此在这个例子中是<code>b_constantinople</code>。
|Faiths
*如果你没有找到匹配项:
|-
**关闭文件。
**在同一文件夹中打开<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。


|set_add_claim_on_loss
=== 查找自定义头衔的ID ===
|
[[File:查找自定义头衔ID.png|thumb|right|500px| 查找自定义头衔ID]]
|title/vassal change
自定义头衔(即玩家自己创建的王国/帝国)不遵循前面的名称规定。要找到ID:
|
|If set, any title losses will result in claims being added to the previous holder.
|
|Titles
|-


|set_title_and_vassal_change_type
*使用控制台,输入指令<code>explorer</code>打开Object Browser。
|
*在Object Browser中选择Provider为Landed Titles。
|title/vassal change
*在search key中输入搜索名称。
|conquest, conquest_holy_war, conquest_claim, conquest_populist, inheritance, abdication, destroyed, created, usurped, granted, revoked, election, independency, returned, leased_out, lease_revoked, faction_demand
*搜索结果中,鼠标悬停在name一项中,会显示头衔卡片。
|Sets the type of change.
|
|Titles
|-


|add_secret_participant
== 另见 ==
|
* [[绰号| 绰号ID]]
|secret
* [[Decisions modding| 决议ID]]
|character
|Adds an participant to the secret.
|
|Hooks and Schemes
|-


|disable_exposure_by
== 参考资料 ==
|
<references/>
|secret
|character
|Forbids the target character from exposing the secret
|disable_exposure_by = target_character
|Hooks and Schemes
|-
|}


{{Modding navbox}}
{{Modding navbox}}
[[Category:Modding]]
[[Category: 模组制作]]
[[en:Console commands]]
[[en:Console commands]]

2024年9月25日 (三) 13:17的最新版本

此条目列出能够输入控制台窗口的指令。控制台窗口是一个特殊的调试窗口,可以在调试模式下的非铁人开局中,按下 ⇧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 将在调试窗口中显示适用于该指令的参数。

指令 效果 参数 举例
abort_travel_plan 取消 [角色id] 正在进行的活动, 如果没有指定角色id则默认为玩家角色。 [角色id] abort_travel_plan
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
yesmen_instant AI角色立即接受所有提议。再次输入则失效。 None yesmen_instant
add_pending_court_event 在玩家朝廷中添加一个待处理事件。 add_pending_court_event
add_influence 为玩家角色添加 [指定数值] 的影响力,负值为减少能力数值。默认值1000。 [指定数值] add_influence 16000
change_provisions 为玩家角色添加 [指定数值] 的给养,负值为减少能力数值。 [指定数值] change_provisions 2500

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

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

指令 效果 参数 举例
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一项中,会显示头衔卡片。

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

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