控制台命令

本页面所适用的版本可能已经过时,最后更新于1.0
自由之民讨论 | 贡献2019年5月27日 (一) 19:19的版本 (同步到官方百科09:54, 25 May 2019‎ Dauth)
This page deals with commands used in the console. For the 模组制作‏‎ term, see 效果.

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,§, ~, ^, °, ², or ` (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.

命令列表

命令 作用
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 Shows tags and Ids, equivalent to charinfo in CK2.
declare_war [<国家tag>] [<国家tag>] 开始战争在两个国家之间。
eagerness [<国家tag>] Check AI eagerness for war.
event [事件id][目标] Triggers event for 指定的人物/省份/国家。
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).

参考资料