控制台命令

本页面所适用的版本可能已经过时,最后更新于1.0
自由之民讨论 | 贡献2019年5月21日 (二) 07:46的版本 (同步到官方百科10:23, 7 May 2019‎ 2a00:*:*:*:*:*:*:5cbf)
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,§, ~, ^, °, ², 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.

List of commands

Command Effect
ae [<amount>] Modifies your aggressive expansion. ae -10 would reduce it by 10.
annex [<countrytag>] Annexes the specific country to yours.
army[<cohortcount>][<province>] Adds specific amount of units in selected province.
army_loyalty [<prov> <amount>] Sets army loyalty to specified amount.
cash [<amount>] Adds specified amount of gold.
centralization [<amount>] Sets centralization to specified amount.
civil_war [<countrytag>] Starts a civil war in the specified country.
conquer [<provid>] Conquer specified province.
control [<provid> [<countrytag>] Control specified province by specified country.
debug_mode Shows tags and Ids, equivalent to charinfo in CK2.
declare_war [<countrytag>] [<countrytag>] Starts war between two countries.
eagerness [<countrytag>] Check AI eagerness for war.
event [eventid][target] Triggers event for specified character/province/country.
exile Exiles selected units.
forcepeace [<countrytag>] Forces AI generated peace offers for specified country.
fow Toggles fog of war on/off.
horde [<province>] Spawns a barbarian horde of 100k units in specified province.
instant_war Toggles on/off instant war declaration.
kill [<id>] Kills target.
legitimacy [<amount>] Modify current ruler legitimacy.
make_child [mother] [father] Spawns a child for the specified parents.
manpower [<amount>] Add specified amount of Manpower.
marry [character][character] Arranges marriage between two characters.
music.next Changes current music track.
navy[<shipcount>][<province>] Spawns specified amount of Triremes in province.
observe(ob) Switch to spectator mode.
power [<amount>] Add specified amount to all powers.
prestige [<amount>] Modifies your prestige.
revolt [<countrytag>] Starts a revolt in specified country.
set_age [<id>] [<age>] Sets character age.
stab [<amount>] Modifies your stability.
tag [<countrytag>] Switch tag to another country.
tech [<amount>] Gives tech levels. Amount is optional, not specifying the amount gives 1 tech level.
tyranny [<amount>] Modifies your tyranny. Tyranny -10 would reduce it by 10.
ti Toggles terra incognita on/off.
tick_day [number of days] Advances time by the specified number of days.
warexhaustion [<amount>] Modifies your war exhaustion. warexhaustion -10 would reduce it by 10.
yesmen Activates yesmen (AI accepts all diplomatic proposals).
tweak fow Opens the tweaker GUI to enable or disable Fog of War
debug.achievements.resetall Resets all achievements (developer command).

参考资料