欢迎访问欧陆风云4百科!您当前访问的是新服务器。这里是当前的工作,欢迎您参与编写!

9月服务器费用已由站长支付,若您想帮助我们可以点这里!欢迎所有对百科感兴趣的同学加入QQ群:602439518

这篇文章所适用的版本可能已经过时,最后更新于1.19

控制台指令

来自欧陆风云4百科,人人可以编辑的欧陆风云4百科全书
跳转至: 导航搜索


Obj emperor of china.png 这篇文章正在被翻译成中文。
如果您感兴趣可以通过借助官方Wiki编辑它。
本条目讲述的是游戏中控制台所用的指令。如果你需要找的是改派术语,请参阅指令

This page lists the codes which may be inputted 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). 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.

常用指令

指令 效果
cash [<数值> 可选] [<国家代码> 可选] 获得金钱。不输入数值默认为5000。
manpower(输入数值) [<国家代码> 可选] 获得人力*1000
sailors(输入数值) [<国家代码> 可选] 获得水手
prestige [<数值> 可选] [<国家代码> 可选] 获得威望。不输入数值默认为5。
legitimacy [<数值>] [<国家代码> 可选] 设置君主的正统性
adm [<数值> 可选] [<国家代码> 可选] 获得行政点数。不输入数值默认为999。
dip [<数值> 可选] [<国家代码> 可选] 获得外交点数。不输入数值默认为999。
mil [<数值> 可选] [<国家代码> 可选] 获得军事点数。不输入数值默认为999。
yesman 调节AI外交(:全部接受: :正常外交)
fow 调节战争迷雾显示 开/关
ti 调节未知领域显示 开/关

指令列表

DLC 指令 描述
add_age [<国家代码> 可选] 设置当前继承人的年龄为15岁。
Common Sense.png add_backer [<prov id>] The province becomes a backer of the current issue in the parliament.
add_baseunrest [<省份ID>] [<Base Unrest>] 给一个省份添加基础叛乱
add_cardinal 给一个天主教国家添加一个新的主教
add_cb [<casus belli tag>] [<调节国家代码>] [<Actor 国家代码> 可选] 对目标国家添加宣战理由
add_claim [<省份ID>] [<国家代码> 可选] 对省份添加宣称
add_colonist [<国家代码>] 对目标国家添加一个殖民者
Rights of Man.png add_consort [<调节国家代码> 可选] [<Origin 国家代码> 可选] Adds a consort from a tag
add_core [<省份ID>] [<国家代码> 可选] 添加核心
add_diplo [<国家代码> 可选] Adds diplomatic enroute
add_faction [<factionname>] 增加一个派系
add_heir [<调节国家代码> 可选] 换一个继承人(目前继承人被杀)
add_idea_group [<Idea group key>] [<国家代码> 可选] 增加指定理念组
add_interest [<国家代码>] 将指定国家列为感兴趣国家
Common Sense.png add_issue [<issue tag>] 在议会中增加一个议题
add_liberty_desire [<数值>] [<调节国家代码> 可选] 增加独立倾向
add_local_autonomy [<省份ID>] [<数值>] 给一个省份增加自制度
The Cossacks.png add_loyalty [<调节Estate>] [<数值>] Adds loyalty to target estate
add_missionary [<国家代码>] 对指定国家增加一个传教士
add_natives [<ProvinceID>] [<数值>] 给指定省份加入殖民化的土著居民 (100× [<数值>])
add_opinion [<Actor 国家代码>] [<调节国家代码> 可选] Add opinion to/from tag
add_pa [<国家代码>] 目标国家增加牧首权威
add_permanent_claim [<省份ID>] [<国家代码> 可选] 获得永久宣称
add_pi [<国家代码>] Add papal influence to tag
add_reformlevel [<数值>] 将帝国主义增添到帝国的改革中
add_republican_tradition [<数值> 可选] [<国家代码> 可选] 获得 共和国传统
Rights of Man.png add_trait [<personality tag>, <heir> 可选, <consort> 可选] Add ruler personality
add_unrest [<CID Type>] [<CID Index>] [<Unrest>] Adds unrest to a faction
adm [<数值> 可选] [<国家代码> 可选] 获得行政点数 (默认值: 999)
admiral [<fire>] [<shock>] [<maneuver>] [<siege>] [<国家代码> 可选] 增加一个海军将军
ai_minister [<0 = army, 1 = diplomacy, 2 = trade>] Enables/Disables specific AI ministers
ai(ai) [<调节国家代码>] Enables/Disables AI for all nations or a specific tag
aiinvalid Print invalid AI command counts
aiview Toggles additional AI info
annex [<调节国家代码>] [<Actor 国家代码> 可选] Annexes the specified tag without adding cores
army_tradition [<数值>] [<调节国家代码> 可选] 增加军队传统
El Dorado.png authority [<数值>] [<国家代码> 可选] Add to a country's authority (Inti religion)
autosave Triggers an autosave.
balance Balance data dumped to game.log, with regions (development,number of provinces) and countries (tax, manpower, development, number of forts).
bearhaslanded [<省份ID> 可选] An unwise command to use
Spawns Jan Mayen.
canals Debug canals on map
cash [<数值> 可选] [<调节国家代码> 可选] 增加金钱(默认5000).
change_religion [<省份ID>] [<religion>] 改变省份宗教
宗教有以下的标识:
  • 天主教: catholic
  • 新教: protestant
  • 改革宗: reformed
  • 东正教: orthodox
  • 科普特派: coptic
  • 逊尼派: sunni
  • 什叶派: shiite
  • 艾巴德派: ibadi
  • 上座部佛教: buddhism
  • 金刚乘佛教: vajrayana
  • 大乘佛教: mahayana
  • 儒教: confucianism
  • 神道教: shinto
  • 印度教: hinduism
  • 锡克教: sikhism
  • 泛灵教: animism
  • 萨满教: shamanism
  • 图腾崇拜: totemism
  • 因蒂: inti
  • 纳瓦特尔l: nahuatl
  • 玛雅: mesoamerican_religion
  • 诺斯: norse_pagan_reformed
  • 长生天: tengri_pagan_reformed
  • 犹太教: jewish
  • 祆教: zoroastrian
Common Sense.png church_power [<数值>] [<调节国家代码> 可选] Adds church power to the player (Protestant religion)
clear Clears the console
Rights of Man.png clr_consort_flag [<Tag>] [<Flag>] Clears a global flag
clr_flag [<Flag>] Clears a global flag
clr_prov_flag [<Flag>] [<Province>] Clears a flag from a province
collision(debug_collision) Toggles debug display of normals/bounding boxes/collision
colonize [省份ID] Colonizes and cores a unsettled province (and gets some prestige). The province retains its original culture and religion.

Note: Works also for settled provinces and keeps any previous owner's core.

combatsound How often does the combat view give a random sound? 0-50
control [<省份ID>] [<国家代码> 可选] Changes the controller of the province.
controll [<省份ID>] [<国家代码> 可选] Changes the controller of the province.
corrupt [<数值>] [<国家代码> 可选] Sets the corruption of the country to the given 数值.
country_modifier [<国家代码>] [<Modifier type>] Show country modifier values.
create_march [<调节国家代码>] [<Actor 国家代码> 可选] The specified tag becomes a march (of the actor country).
culture [<省份ID>] Changes culture on a province to your primary culture
date [date in format yyyy.mm.dd] Changes current date
debug_info Toggles Debug info
debug_mode Makes some debug features available. Displays 省份ID, country tag, and border distance when mousing over provinces.
debug_nogui Toggles GUI on/off
debug_reload_areas Reload map areas
debug_reload_regions Reload map regions
declare_war [<attacker tag>] [<defender tag>] [<call willing allies>] Declares war between two nations (no CB)
delete_wars [<国家代码> 可选] Delete wars without removing truces
die(kill) [<调节国家代码> 可选] The ruler (of the specified country) is killed.
dip [<数值> 可选] [<国家代码> 可选] 获得 外交点数 (默认值: 999)
diplocount Prints out global diploaction statistics to game.log
diplomacy_info Print summary information about currently active diplomatic relations. to console
disaster [disaster_key] Adds 100 progress to a disaster
discover [<调节国家代码>] [<Actor 国家代码> 可选] Discover capital of target tag
El Dorado.png doom [<数值>] [<国家代码> 可选] Add to a country's doom (Nahuatl religion)
economy [] Prints out global economy statistics to game.log
embrace [<省份ID>] [<institution name> 可选] Embraces all institutions in a province
epicfail [<调节国家代码> 可选] Makes all spies of target country fail
event [事件ID] [<调节国家代码> 可选] [<Option id> 可选] Executes an event
exhaust [<数值>] [<国家代码> 可选] Alter your war exhaustion
fast_diplo Ignore the date check for enroute diplomats
favors [<调节国家代码>] [<数值>] Adds favors with target country
Wealth of Nations.png fervor [<数值>] [<调节国家代码> 可选] Adds fervor to the player (Reformed religion)
form_union [<国家代码>] [<国家代码> 可选] Forms Union with target
fow(debug_fow) [<省份ID> 可选] Turns off fog of war in a province or in general
frenzy Force enable Great Power frenzy!!!
frenzy_off Force disable Great Power frenzy!!!
fullscreen Toggles fullscreen
gamespeed [speed (0-5)] Set the current game speed, pausing the game at speed 0.
god godmode on/off
golden_age [<国家代码>] Starts a golden age in that country. A tag is required.
help [command name] Print out all console commands or a specific command description.
helphelp Displays “No help for you!” in the command box
helplog Print out all console commands to game.log file.
The Cossacks.png horde_unity [<数值>] [<国家代码> 可选] Set the unity of a horde
ideadump Dump all countries that have generic national ideas to game.log
imperial_authority [<数值>] [<国家代码> 可选] Increases the imperial authority of the emperor.
infinite_combat Infinite combat
inflation [<数值>] [<国家代码> 可选] Increase your inflation
integrate [<调节国家代码>] [<Actor 国家代码> 可选] Integrates the specified tag into actor's country (adds cores)
Common Sense.png karma [<数值>] [<调节国家代码> 可选] Adds karma to the player (Buddhist religions)
kill_cardinal [<Countrytag> 可选] Kills first cardinal in the list
Rights of Man.png kill_consort [<调节国家代码> 可选] Kills your consort
kill_heir [<调节国家代码> 可选] Kills the heir of a tag
kill_leader Kill a random leader with given death cause
leader [<fire>] [<shock>] [<maneuver>] [<siege>] [<国家代码> 可选] Creates a general with the given values.
leak Leaks memory
leak_gpu [Chunk size (bytes)] [Number of Chunks] Leaks GPU memory
legitimacy [<数值>] [<国家代码> 可选] Set the legitimacy of the ruler
low_memory Simulates a low memory alert and tries to reduce memory usage
lucky [<国家代码> 可选] Toggles lucky nation status.
manpower [<数值>] [<调节国家代码> 可选] Adds manpower to pool (1000× [<数值>]) (default 5)
map_random [<seed=-1>] [<restore>] [<nosmooth>] [<nosmoothcoasts>] [<topology>] [<terrain>] [<colormap>] [<minimap>] [<rivers>] [<trees>] Randomize new world part of map (heightmap, terrain, ...)
map_vertextextures Toggle map rendering with vertex textures
mapmode [Mapmode type (int)] Change mapmode.
memory Prints out the used memory
mil [<数值> 可选] [<国家代码> 可选] Get military power (default value: 999)
morehumans(humans) [num] Adds more humans
msg Toggles all messages popup
native_uprising [<ProvinceID>] Create native uprising in given province
navy_tradition [<数值>] [<调节国家代码> 可选] Adds navy tradition to the specified country
nextsong Changes the currently playing soundtrack.
nolimit_missions Removes the limit of number of major missions to choose from
nopausetext Toggles the pausebanner for nicer screenshots.
nudge Go to the nudge tool
observe_mode [] Changes to the observe mode
observe(spectator) Switches to play no country at all, and no longer shows messages or pauses the game
oos Make the client go oos
own [<省份ID>] [<国家代码> 可选] Changes ownership of a province
own_core [<省份ID>] [<国家代码> 可选] Changes ownership of a province and adds core
piety [<数值> 可选] [<国家代码> 可选] Adds piety. (Muslim religions) (default: +10)
pirate [<省份ID>] Starts a Pirate in a province
poll Polls valid Events
population [<ProvinceID>] [<数值>] Adds population to a province. (Only for colonies.)
power [<stability/tech_table_key/idea_key>] [<国家代码> 可选] Adds the specified idea group
powerpoints [<数值> 可选] [<国家代码> 可选] Get power in all powers. Maximizes monarch points if no number specified.
powerspend [] Prints out global powerspend statistics
prestige [<数值>] [<国家代码> 可选] Increases the prestige of the specified country. (default value: 5)
prices Price Info to game.log
print_flags Prints global flags
print_prov_flags [<Prov ID>] Prints province flags
PrintSynchStuff Prints random count and seed
protectorate [<调节国家代码>] [<Actor 国家代码> 可选] Protectorate the specified tag
province_modifier Show province modifier values.
reform [<调节省份ID>] Begin reformation in the specified 省份ID
refreshknowledgecount [] Refresh knowledge perf couner
reinitchat [] Posts a CChatSyncAllCommand
reload [file name] Reloads the gui or lua file
reload_canals Reload the canal bitmaps
reload_heightmap Reloads the heightmap
reload_lakes Reloads the lakes
reload_map Reloads the map
reload_provincemap Reloads the provincemap
reload_straits Update strait vertex buffers
reload_treemap Reloads the treemap
reloadfx [Arguments: map/mapname/postfx or *.fx filename] Reloads the shader
reloadinterface Reloads the entire interface
reloadloc Reloads the localisation
reloadtexture [texture file name] Reloads the specified texture
reloadtradewinds Reloads trade winds
remove_cb [<casus belli tag>] [<调节国家代码>] [<Actor 国家代码> 可选] Remove casus belli from target country
remove_claim [<省份ID>] [<国家代码> 可选] Remove claim
remove_core [<省份ID>] [<国家代码> 可选] Remove core
remove_defender_faith Removes the defender of the Faith for the players religion
remove_interest [<国家代码>] Removes specified country tag from your interest
remove_march [<调节国家代码>] [<Actor 国家代码> 可选] make a march the specified tag
remove_rival [<国家代码>] Removes a rival.
Rights of Man.png remove_trait [<personality tag>] Removes a ruler personality.
rendertype Reports what render backend is used
reset_economy [] Resets global economy statistics
Wealth of Nations.png reset_god Resets personal deity
Conquest of Paradise.png reset_migrate Resets the time you'll have to wait until migration is allowed again.
reset_mission_cancel [<国家代码>] Resets time to new mission after cancelling old one.
reset_powerspend [] Resets global powerspend statistics
revolt [<省份ID>] Starts a Revolt in a province
revolution_target [<CountryTag>] Sets the revolution target.
rgb(rgb) [<数值>] Prints desired 数值 of random color values to game.log
run [] Runs effects in specified file
sailors [<数值>] [<调节国家代码> 可选] Adds sailors (default value: 5000)
savegame Creates an savefile.
score Score data dumped to game.log
selflearningai Enables/Disables Self-Learning AI
Rights of Man.png set_consort_flag [<Tag>] [<Flag>] Sets a global flag
set_flag [<Flag>] Sets a global flag
set_leader_trait [<personality>] Set selected leader's personality trait
set_prov_flag [<Flag>] [<Province>] Sets a flag for a province
setmissionaryprogress [<ProvinceID>] [<数值>] Sets the missionary progress for a province.
SetRandomCount Sets the randomcount to 0 or arg
show_ideas [<国家代码>] National ideas of the specified country dumped to game.log
siege [<省份ID>] Wins the siege in the specified province
smoothframelog Toggles smooth frame logging
spawn [<省份ID>] [<SubUnit Type>] Spawns a unit in a province. For example, "spawn 1 western_medieval_infantry" spawns a Latin Medieval Infantry in Stockholm. See the file names in the common/units folder for a complete list of <SubUnit Type>.
spawnactor [<Actorname>] [<省份ID>] [<Animation> 可选] Spawns an actor with an 可选 animation
spectate(spectate) Goes into Spectator mode
spritelevel [<Sprite level>] Sets a forced sprite level. Specify no argument to reset.
spynetwork [<调节国家代码>] [<数值>] Adds spy network with target country
stability [<数值> 可选] [<国家代码> 可选] Changes the stability of the specified country (to maximum without value)
state [<省份ID>] Toggles State for owner of region of province.
stats Stats dumped to game.log
surrender Surrender
tag [<国家代码>] Switch tag to another country
tech [<数值>] Gets levels in all technology types
test_achievement [<achievement>] tests a specific achievement
testevent [<事件ID>] [<Character ID>] Tests an event without triggering it
testmission [<Mission Name>] Tests a mission without triggering it
texture_usage Prints texture usage
ti(debug_ti) Toggles Terra Incognita on/off
time Displays the current time in the command box.
timer Prints out debug timing info
timer_reset Resets debug timing
timer_restart Restarts (resets and starts) debug timing
timer_start Starts debug timing
timer_stop Stops debug timing
touch_test Testing touch
trust [<调节国家代码>] [<数值>] Adds trust with target country
update_loc [localization tag] Updates the localization tag file
validateevents Validates all events without triggering it
vassalize [<调节国家代码>] [<Actor 国家代码> 可选] Vassalize the specified tag
version Prints the game version
victorycard Force enables victory cards in singleplayer
window(wnd) [Arguments: open/close] [window gui name] Opens or closes the specified window
winwars Gives max war score in all wars for the country
yesman Toggles AI positive responses (on: always accept; off: normal response)

宣战理由ID列表

For use with add_cb and remove_cb.

事件列表

Event ID Name of event Event's effect
trade_company_events.3 [<省份ID>] Resettlement Plan Succeeds Changes the culture of a specified province to the owner's culture and adds 1 base tax.
Example: event trade_company_events.3 162 while playing Hungary will make Zemplen a Hungarian culture province
5056 外交侮辱 对与我国在好感度60以上的国家进行侮辱
5073 [<省份ID>] 增加发展度 对指定省份增加发展度、税基等
flavor_jap.15 The Za Mercantilism.png+10% mercantilism
flavor_sco.8 The Glasgow Chamber of Commerce Mercantilism.png+5% mercantilism
colonial.12 [<省份ID>] The Call of the Hunt Sets trade good to Fur.pngfur
colonial.13 [<省份ID>] Fur Trade Dwindles Sets trade good to Naval supplies.pngnaval supplies / Grain.pnggrain
colonial.18 [<省份ID>] New World Coffee Sets trade good to Coffee.pngcoffee
9520 [<省份ID>] Slavery Abolished in $ProvinceName$ Sets trade good to Unknownunknown
9469 Lux Stella gives choice between heir with 6Military power.png / 6Administrative power.png / 6Diplomatic power.png

请参阅