控制台命令:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.3
(同步到官方百科10:23, 7 May 2019‎ 2a00:*:*:*:*:*:*:5cbf)
无编辑摘要
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
{{Version|1.0}}
{{Version|1.3}}
:{{Hatnote|This page deals with commands used in the console. For the [[模组制作‏‎]] term, see [[commands]].}}
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 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 the full list of available commands typing "help" in the console. 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.


This list is not yet complete. You can find a list of all Imperator console commands in the meantime at commands.gg/imperator.
:{{Hatnote|这个页面讲述的是用于控制台中的指令,如果你需要的找是[[模组制作‏‎]]中的术语, 请移步[[效果]]。}}


==List of commands==
自从Pompey版本(1.1)开始,控制台是默认关闭的。如果想要启用它,你可以:
 
*按下 Crtl+Shift+P 并且输入:“debug_mode”
*把"-debug_mode"加入启动选项中:
*#对于steam:右键游戏,选择“属性”,设置启动选项,加入“-debug_mode”参数。
*#对于Windows系统:创建一个游戏的快捷方式,右键之并选择“属性”,在“目标”一栏中的最后面加入“debug_mode”
*#对于GOG平台:右键游戏,选择“Settings”,勾选"Add command line arguments"并且输入"debug_mode"
 
Debug模式会禁用成就,控制台指令在铁人模式或多人模式下无法使用。
 
 
按下{{key press|`}}以打开控制台。
 
也可以使用以下方式打开控制台:Shift+2, ALT+2+1, Shift+3, {{key press|§}}, {{key press|~}}, {{key press|^}}, {{key press|°}}, {{key press|²}}
 
通过{{key press|↑}} 和 {{key press|↓}} 在使用过的指令中快速浏览。
 
按下{{key press|Tab}}键可以快速补全指令。
 
 
以下列表包含了部分常用指令,若想要获得全部指令,在游戏控制台中输入"help"或者浏览: https://commands.gg/imperator
 
[<x>]表示你可以输入数字或者ID,例如:"cash 300" 或者 "annex ROM"。国家tag可以在 debug tooltip 启用的情况下,鼠标悬浮在一个国家上查看,或在[[Countries|此页]]中查询。
 
== 命令列表==
{{SVersion|1.0}}
{{SVersion|1.0}}
{| class="wikitable sortable"
{| class="wikitable sortable"
! Command !! Effect
! 命令!! 作用
|-
|explorer||打开 object explorer 除错工具。
|-
|gui_editor||打开 GUI 编辑器。
|-
|setup_editor||打开省份设置编辑器,你能在其中编辑文化、宗教等等。
|-
|ae [<数额>]||修改你的侵略性扩张。ae -10 会降低它 10 点。
|-
|-
| ae [<amount>] || Modifies your aggressive expansion. ae -10 would reduce it by 10.
|annex [< 国家tag>]|| 吞并指定国家到你的。
|-
|-
| annex [<countrytag>] || Annexes the specific country to yours.
|army[< 大队数>][<省份>]|| 添加指定数量的单位在选择的省份。
|-
|-
| army[<cohortcount>][<province>] || Adds specific amount of units in selected province.
|army_loyalty [<prov> < 数额>]|| 设置军队忠诚度到指定的数额。
|-
|-
| army_loyalty [<prov> <amount>] || Sets army loyalty to specified amount.
|cash [< 数额>]|| 添加指定数量的黄金。
|-
|-
| cash [<amount>] || Adds specified amount of gold.
|centralization [< 数额>]|| 设置集权度到指定的数额。
|-
|-
| centralization [<amount>] || Sets centralization to specified amount.
|civil_war [< 国家tag>]|| 开始一场内战在指定的国家。
|-
|-
| civil_war [<countrytag>] || Starts a civil war in the specified country.
|conquer [< 省份id>]|| 征服指定的省份。
|-
|-
| conquer [<provid>] || Conquer specified province.
|control [< 省份id> [<国家tag>]|| 控制指定的省份 by 指定的国家。
|-
|-
| control [<provid> [<countrytag>] || Control specified province by specified country.
|debug_mode|| 显示tag和ID,等同于CK2中的charinfo
|-
|-
| debug_mode || Shows tags and Ids, equivalent to charinfo in CK2.
|declare_war [<国家tag>] [<国家tag>]|| 在两个国家之间开始战争。
|-
|-
| declare_war [<countrytag>] [<countrytag>] || Starts war between two countries.
|eagerness [< 国家tag>]|| 检查指定tad国家的AI战争渴望度。
|-
|-
| eagerness [<countrytag>] || Check AI eagerness for war.
|event [ 事件id][目标]|| 为指定的人物/省份/国家 触发指定事件。
|-
|-
| event [eventid][target] || Triggers event for specified character/province/country.
|exile||Exiles selected units.
|-
|-
| exile || Exiles selected units.
|forcepeace [<国家tag>]||Forces AI generated peace offers for 指定的国家。
|-
|-
| forcepeace [<countrytag>] || Forces AI generated peace offers for specified country.
|fow||Toggles fog of war on/off.
|-
|-
| fow || Toggles fog of war on/off.
|horde [<省份>]|| 产生一个 100k 单位的野蛮人部落在指定的省份。
|-
|-
| horde [<province>] || Spawns a barbarian horde of 100k units in specified province.
|instant_war||Toggles on/off instant war declaration.
|-
|-
| instant_war || Toggles on/off instant war declaration.
|kill [<id>]|| 杀死目标。
|-
|-
| kill [<id>] || Kills target.
|legitimacy [< 数额>]|| 修改当前统治者正统性。
|-
|-
| legitimacy [<amount>] || Modify current ruler legitimacy.
|make_child [ 母亲] [父亲]|| 产生一个孩子为指定的双亲。
|-
|-
| make_child [mother] [father] || Spawns a child for the specified parents.
|manpower [<数额>]|| 添加指定数量的人力。
|-
|-
| manpower [<amount>] || Add specified amount of Manpower.
|marry [ 人物][人物]|| 安排婚礼在两个人物之间。
|-
|-
| marry [character][character] || Arranges marriage between two characters.
|music.next|| 改变当前音轨。
|-
|-
| music.next || Changes current music track.
|navy[<船数>][<省份>]|| 产生指定数量的 {{icon|Trireme}} 在省份。
|-
|-
| navy[<shipcount>][<province>] || Spawns specified amount of Triremes in province.
|observe(ob)|| 切换到观众模式。
|-
|-
| observe(ob) || Switch to spectator mode.
|portrait_editor|| 打开/关闭肖像编辑器。
|-
|-
| power [<amount>] || Add specified amount to all powers.
|power [< 数额>]|| 添加指定的数额到全部点数。
|-
|-
| prestige [<amount>] || Modifies your prestige.
|prestige [< 数额>]|| 修改你的威望。
|-
|-
| revolt [<countrytag>] || Starts a revolt in specified country.
|revolt [< 国家tag>]|| 开始一场叛乱在指定的国家。
|-
|-
| set_age [<id>] [<age>] || Sets character age.
|set_age [<id>] [< 年龄>]|| 设置人物年龄。
|-
|-
| stab [<amount>] || Modifies your stability.
|stab [< 数额>]|| 修改你的稳定度。
|-
|-
| tag [<countrytag>] || Switch tag to another country.
|tag [< 国家tag>]|| 切换 tag 到另一个国家。
|-
|-
| tech [<amount>] || Gives tech levels. Amount is optional, not specifying the amount gives 1 tech level.
|tech [< 数额>]|| 给予科技等级。数额是可选的,不指定数额就给予 1 科技等级。
|-
|-
| tyranny [<amount>] || Modifies your tyranny. Tyranny -10 would reduce it by 10.
|tyranny [< 数额>]|| 修改你的暴政度。Tyranny -10 会降低它 10 点。
|-
|-
| ti || Toggles terra incognita on/off.
|ti||Toggles terra incognita on/off.
|-
|-
| tick_day [number of days] || Advances time by the specified number of days.
|tick_day [number of days]||Advances time by 指定的天数。
|-
|-
| warexhaustion [<amount>] || Modifies your war exhaustion. warexhaustion -10 would reduce it by 10.
|warexhaustion [< 数额>]|| 修改你的厌战度。warexhaustion -10 会降低它 10 点。
|-
|-
| yesmen || Activates yesmen (AI accepts all diplomatic proposals).
|yesmen|| 激活 yesmen (AI 接受全部外交提议)。
|-
|-
| tweak fow || Opens the tweaker GUI to enable or disable Fog of War
|tweak fow|| 打开 tweaker GUI 以启用或停用战争迷雾。
|-
|-
| debug.achievements.resetall || Resets all achievements (developer command). 
|debug.achievements.resetall||Resets all achievements (developer command).
|}
|}


== 参考资料 ==
==参考资料==
<references/>
<references />


[[Category:界面]]
[[Category:界面]]
[[Category:模组制作 ‏‎]]
[[Category:模组制作]]
[[en:Console_commands]]
[[en:Console_commands]]

2020年5月13日 (三) 20:32的最新版本


这个页面讲述的是用于控制台中的指令,如果你需要的找是模组制作‏‎中的术语, 请移步效果

自从Pompey版本(1.1)开始,控制台是默认关闭的。如果想要启用它,你可以:

  • 按下 Crtl+Shift+P 并且输入:“debug_mode”
  • 把"-debug_mode"加入启动选项中:
    1. 对于steam:右键游戏,选择“属性”,设置启动选项,加入“-debug_mode”参数。
    2. 对于Windows系统:创建一个游戏的快捷方式,右键之并选择“属性”,在“目标”一栏中的最后面加入“debug_mode”
    3. 对于GOG平台:右键游戏,选择“Settings”,勾选"Add command line arguments"并且输入"debug_mode"

Debug模式会禁用成就,控制台指令在铁人模式或多人模式下无法使用。


按下`以打开控制台。

也可以使用以下方式打开控制台:Shift+2, ALT+2+1, Shift+3, §, ~, ^, °, ²

通过 在使用过的指令中快速浏览。

按下⇆Tab键可以快速补全指令。


以下列表包含了部分常用指令,若想要获得全部指令,在游戏控制台中输入"help"或者浏览: https://commands.gg/imperator

[<x>]表示你可以输入数字或者ID,例如:"cash 300" 或者 "annex ROM"。国家tag可以在 debug tooltip 启用的情况下,鼠标悬浮在一个国家上查看,或在此页中查询。

命令列表

命令 作用
explorer 打开 object explorer 除错工具。
gui_editor 打开 GUI 编辑器。
setup_editor 打开省份设置编辑器,你能在其中编辑文化、宗教等等。
ae [<数额>] 修改你的侵略性扩张。ae -10 会降低它 10 点。
annex [<国家tag>] 吞并指定国家到你的。
army[<大队数>][<省份>] 添加指定数量的单位在选择的省份。
army_loyalty [<prov> <数额>] 设置军队忠诚度到指定的数额。
cash [<数额>] 添加指定数量的黄金。
centralization [<数额>] 设置集权度到指定的数额。
civil_war [<国家tag>] 开始一场内战在指定的国家。
conquer [<省份id>] 征服指定的省份。
control [<省份id> [<国家tag>] 控制指定的省份 by 指定的国家。
debug_mode 显示tag和ID,等同于CK2中的charinfo
declare_war [<国家tag>] [<国家tag>] 在两个国家之间开始战争。
eagerness [<国家tag>] 检查指定tad国家的AI战争渴望度。
event [事件id][目标] 为指定的人物/省份/国家 触发指定事件。
exile Exiles selected units.
forcepeace [<国家tag>] Forces AI generated peace offers for 指定的国家。
fow Toggles fog of war on/off.
horde [<省份>] 产生一个 100k 单位的野蛮人部落在指定的省份。
instant_war Toggles on/off instant war declaration.
kill [<id>] 杀死目标。
legitimacy [<数额>] 修改当前统治者正统性。
make_child [母亲] [父亲] 产生一个孩子为指定的双亲。
manpower [<数额>] 添加指定数量的人力。
marry [人物][人物] 安排婚礼在两个人物之间。
music.next 改变当前音轨。
navy[<船数>][<省份>] 产生指定数量的 Unit trireme.png 在省份。
observe(ob) 切换到观众模式。
portrait_editor 打开/关闭肖像编辑器。
power [<数额>] 添加指定的数额到全部点数。
prestige [<数额>] 修改你的威望。
revolt [<国家tag>] 开始一场叛乱在指定的国家。
set_age [<id>] [<年龄>] 设置人物年龄。
stab [<数额>] 修改你的稳定度。
tag [<国家tag>] 切换 tag 到另一个国家。
tech [<数额>] 给予科技等级。数额是可选的,不指定数额就给予 1 科技等级。
tyranny [<数额>] 修改你的暴政度。Tyranny -10 会降低它 10 点。
ti Toggles terra incognita on/off.
tick_day [number of days] Advances time by 指定的天数。
warexhaustion [<数额>] 修改你的厌战度。warexhaustion -10 会降低它 10 点。
yesmen 激活 yesmen(AI 接受全部外交提议)。
tweak fow 打开 tweaker GUI 以启用或停用战争迷雾。
debug.achievements.resetall Resets all achievements (developer command).

参考资料