控制台指令:修订间差异

本页面讲述的内容长期有效
(间谍行动立刻完成)
 
(未显示8个用户的14个中间版本)
第12行: 第12行:


 可以通过输入“tdebug”并将鼠标悬停在您想知道的国家的省份上,来查看该国家的 tag 。
 可以通过输入“tdebug”并将鼠标悬停在您想知道的国家的省份上,来查看该国家的 tag 。
使用键盘上的{{Key press|tab}}键可以自动补全指令和查看所有指令。


==== 常用指令 ====
==== 常用指令 ====
第80行: 第82行:
|-
|-
| add_opinion [<Country tag>] || 增加指定国家好感度 || 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
| add_opinion [<Country tag>] || 增加指定国家好感度 || 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
|-
| addfunds [MIO_TOKEN] [amount] || 增加製造商經費 || 向相應製造商(沒寫全部都加)增加經費(類似製造商經驗值)
注:製造商可以在"Hearts of Iron IV\common\military_industrial_organization\organizations"找到
|-
| addSize [MIO_TOKEN] [amount] || 增加製造商規模 || 向相應製造商(沒寫全部都加)增加規模(類似製造商等級)
注:"Hearts of Iron IV\common\military_industrial_organization\organizations"找到
|-
|-
| tag [<Country tag>] || 切换到输入的国家 || 
| tag [<Country tag>] || 切换到输入的国家 || 
第147行: 第155行:
|-
|-
|compliance || 增加设定数值到选中省份的顺从度 || 例如:(选择但泽的一个省份)compliance 100(效果為增加該省分的順從度,增幅為100)
|compliance || 增加设定数值到选中省份的顺从度 || 例如:(选择但泽的一个省份)compliance 100(效果為增加該省分的順從度,增幅為100)
|-
|collaboration
|快速建立合作政府
|先右键一个国家,用控制台输入collaboration 100,然后吞并全部领土,让时间走一会,就会有事件提醒建立合作政府。注意这个代码对D01之类的国家无效,需要将这类国家吞并后用setowner+国家代码缩写把这个地方原来的不是D01之类的国家调出来,然后再重复上述步骤,就可以发现所有占领区的顺从度都变为100,比一个一个占领区输入compliance 100方便多了。(PS:中国地区必须对CHI输入该代码,对PRC等无效)
|-
|puppet [<宗主国>] [<要傀儡的国家>]
|快速傀儡其他国家
|注意宗主国在前!要傀儡的国家在后!
|-
|debug
|决议调试模式
|在原版输入该代码会额外多出一些决议,比如特工位+99。在模组里输入:比如TNO,除了多出很多决议还能显示民族精神代码,配合remove_ideas可以移除这些精神
|}
|}


==== 全部指令 ====
==== 全部指令 ====
{| class="wikitable sortable"
{| class="wikitable"
指令 |效果 |例子/解释
|+
| 指令
|效果
|例子/解释
|-
|-
| rendertype |输出所使用的渲染后端 |
|3dstats
|Toggles 3D Stats
|
|-
|-
| tweakergui||  生成一个调整器 GUI ||
|add_autonomy [<Target  Country Tag>] [num]
| 改变目标国家的自治度
|add_autonomy PHI -200
|-
|-
| add_equipment(ae) [<equipment amount>] [<equipment name>] |添加 装备 || add_equipment 200 Sonderkraftfahrzeug 251/20:在 "equipment_l_english.yml" 中能查阅到所有装备的名字
|add_core [<State  ID>] [<Country Tag>]
|添加 核心
|
|-
|-
| add_ideas [<idea name>] || 带着 <id> 添 民族精神会添加到对应国家 || 在 .\common\ideas 下的文件查看各国的民族精神
|add_diplo
| 外交途径
|
|-
|-
| add_latest_equipment(ale) [<equipment amount>] ||  给予玩家一定量的最新 装备 ||
|add_equipment(ae) [<equipment amount>] [<equipment name>]
| 添加装备
|add_equipment 200 Sonderkraftfahrzeug 251/20:在 "equipment_l_english.yml"  中能查阅到所有 装备 的名字
|-
|-
| reload [file name] ||  重载游戏资源 ||
|add_ideas [<idea  name>]
* reload loc (重载本地化 文件
| 带着  <id> 添加民族精神会添加到对应国家
* reload focus (重载 策)
| .\common\ideas 下的 文件 查看各 的民族精神
* reload landcombat.gui (重载陆战界面)
|-
|-
| time || 当前时间 || 
|add_interest [<Country tag>]
| 将指定的国家标签添加到您的兴趣中
|
|-
|-
| reloadfx [ 参数:map/mapname/postfx 或者 *.fx 文件] || 重载着色器 |
|add_latest_equipment(ale)  [<equipment amount>]
| 给予玩家一定量的最新装备
|
|-
|-
| particle_editor ||  一个粒子编辑器 ||
|add_opinion [<Country  tag>]
| 增加指定国家好感度
| 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。 功执行后会输出 "<country> have 100  more opinion about you" 并会在外交界面中显示为  "cheat_opinion_modified_good"。
|-
|-
| whitepeace(wp) [<country tags>] || 的国家之间白和。 |
|add_party_popularity  <ideology group> <value>
| 增加特 政党支持度
| 在原版游戏中,意识形态组可以使用缩写,f(法西斯主义),d(民主主义),c(共产主义),n(不结盟主义)
|-
|-
| testtool(test) |测试工具。 |
|ai
| 打开或关闭 AI
|
|-
|-
| analyzetheatres(anth) || 分析战区的错误 |
|ai_accept(yesman)
| 打开或关闭AI始终接受外交
|
|-
|-
| massconquer(massc) || 大规模征服工具 || 
|ai_invasion
| 打开或关闭AI海军入侵
|
|-
|-
| deleteallunits(delall) || 删除指定国家的全部陆军和海军。 || deleteallunits SPR
|aidump
| 将AI前端数据转储到日志文件,需要选择一个单元
|
|-
|-
| aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>] |在指定位置生成一场空战 |
|aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>]
|在指定位置生成一场空战
|
|-
|-
| teleport(tp) [<province_id>] |传送选中陆军或海军到指定省份 |
|airealism
| 开启真实 AI
|
|-
|-
| theatersrebuild(trebuild) || 重建世界上所有的战区,所有命令都将被清理 || 
|aiview
| 展示AI调试x
|
|-
|-
| fronts || 切换 国前线的可见性 |
|allowdiplo(adiplo,nocb)
| 允许使用所有 交行动,无论规则如何
|
|-
|-
|analyzetheatres(anth)
|分析战区的错误
|
|-
|-
| aidump||  将AI前端数据转储到日志文件,需要选择一个单元 ||
|annex [<Target Country  Tag>]
| 吞并目标国家(不带核心,不能继承目标国家军队)
|annex USA or annex d01
|-
|-
| traderoutes |切换贸易路线的可见性 |
|bloom
|Toggles bloom
|
|-
|-
| debug_tactics |切换战术调试工具提示的可见性 |
|browser [url]
|Show browser window
|
|-
|-
| allowdiplo(adiplo,nocb) |允许使用所有外交行动,无论规则如何 |
|browser_base_url [url]
|Set browser base url
|
|-
|-
| debug_nuking || 无视所有条件对所有省份发射核弹 || 
|building_health(bhealth)  [<building type>] [<state or prov id>] [<building level>] [<health to add>]
| 更改指定的建筑的血量
|
|-
|-
| reloadsupply(relsup) || 重新初始化补给系统 || 
|bypass_invasion_superiority_check
| 无视制海权进行海军入侵
|
|-
|-
| deltat [<speed factor>] |控制游戏速度 |
|cameraclamp
|Toggles the camera clamping
|
|-
|-
| building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>] || 更改指定的建筑的血量 || 
|cityreload
| 重新加载城市
|
|-
|-
| instantconstruction(ic) || 所有建筑立即完工(对ai同样有效) || 
| rowspan="2" |civilwar  [<ideology>] [<target country tag>]
| rowspan="2" | 在特定国家发起内战
|civilwar  fascism ENG
|-
|-
| nomapicons || 切换地图图标 ||
| 其他可输入意识形态 "communism"(共产主义) "democratic"(民主主义) "neutrality"(中立)
|-
|-
| nopausetext |切换暂停横幅以获得更好的屏幕截图 |
|collision(debug_collision)
|Toggles debug display of normals/bounding boxes/collision
|
|-
|-
| nextsong |更改当前播放的配乐 |
|combatsound
| 战斗视图多久发出一次随机声音?? 0-50
|
|-
|-
| combatsound |战斗视图多久发出一次随机声音?? 0-50 |
|createlean
|Create LEAN textures
|
|-
|-
| morehumans(humans) [num] ||  增加人口 ||
|Decision.NoChecks
| 决议无条件
| 对 AI 有效
|-
|-
| window(wnd) [Arguments: open/close] [window gui name] ||  打开或关闭特定窗口 ||
|Decision.FastRemove
| 决议生效时间为一天
| 对 AI 有效
|-
|-
| reloadinterface |重新加载整个界面 |
|debug_achievements_clear
|Clear all achievements and user stats
|
|-
|-
| reloadtechnologies |重新加载技术数据库 |
|debug_ai_budget  [CountryTag]
|Show ai budget data
|
|-
|-
| updateequipments |更新设备数据库 |
|debug_air_vs_land(dbg_cas)
|Toggle debug mode for air vs land combat.
|
|-
|-
| updatesubunits |更新子单元数据库 |
|debug_assert
|Toggles asserts on/off
|
|-
|-
| reloadoob [<Target Country Tag>] |重新加载 OOBs |
|debug_bloom
|Toggles Bloom on/off
|
|-
|-
| update_loc [localization tag] |更新本地化标记文件 |
|debug_borders
|Toggles Borders on/off
|
|-
|-
| poll |查询有效事件 |
|debug_cities
|Toggles Cities painting mode on/off
|
|-
|-
| pause_in_hours |在调用命令X小时后暂停游戏 |
|debug_commands
|Printing commandcount to message.log
|
|-
|-
| event [event id] [<Target Country Tag>] || 执行事件 || event political.3 for communist coup
|debug_crash(crash)
|Crash!
|
|-
|-
| research [<slot id> or "all"] |完成研究从科研槽或全部 |
|debug_diploactions
|Start Counting diplomatic actions
|
|-
|-
| research_on_icon_click |点击科技树图标时研究一项技术 |
|debug_dumpdiploactions
|Dump diplomatic action data to game log
|
|-
|-
| add_autonomy [<Target Country Tag>] [num] |改变目标国家的自治度 || add_autonomy PHI -200
|debug_dumpevents
|Dump Event data to game log
|
|-
|-
| annex [<Target Country Tag>] |吞并目标国家(不带核心,不能继承目标国家军队) || annex USA or annex d01
|debug_entities
|Toggles Debug entities
|
|-
|-
| winwars |在全国所有战争中获得最高战争分数 || 该指令在 1.9.1 后无效
|debug_events
|Start Counting events
|
|-
|-
| testevent [<Event ID>] [<Character ID>] |测试一个事件而不触发它 |
|debug_fronts
|Toggles interpolated fronts debug
|
|-
|-
| manpower [<Amount>] |给玩家增加人力|
|debug_info
|Toggles Debug info
|
|-
|-
| add_opinion [<Country tag>] |增加指定国家好感度 || 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
|debug_lines
|Toggles Debuglines
|
|-
|-
| tag [<Country tag>] |更换当前控制的国家|
|debug_lockcamera
|Toggles Camera locked on/off
|
|-
|-
| resign |退出游戏 |
|debug_nogui
|Toggles GUI on/off
|
|-
|-
| add_interest [<Country tag>] |将指定的国家标签添加到您的兴趣中 |
|debug_nomouse
|Toggles mouse scrollwheel on/off
|
|-
|-
| remove_interest [<Country tag>] || 从您的兴趣中删除指定的国家/地区标记 || 
|debug_nuking
| 无视所有条件对所有省份发射核弹
|
|-
|-
| add_diplo |增加外交途径 |
|debug_off_front_snap(dbg_fsnap)
|Toggles offensive fronts snapping debug
|
|-
|-
| PrintSynchStuff |打印随机计数和种子 |
|debug_particle
|Toggles Particles Debug info
|
|-
|-
| SetRandomCount |将随机计数设置为0或不变 |
|debug_postfx
|Toggles PostFX on/off
|
|-
|-
| observe(spectator) |切换到观察者模式,不再显示消息或暂停游戏。然而,它会干扰AI的性能,还有这并不能很好地指示AI在不使用观察模式时会做什么 |
|debug_rivers
|Toggles Rivers on/off
|
|-
|-
| ai || 打开或关闭 AI || 
|debug_show_event_ID
| 展示事件所对应的ID
|
|-
|-
| human_ai |打开或关闭玩家 AI |
|debug_sky
|Toggles Sky on/off
|
|-
|-
| ai_invasion |打开或关闭AI海军入侵 |
|debug_smooth
|Toggle framesmoothing
|
|-
|-
| ai_accept(yesman) || 打开或关闭AI始终接受外交 || 
|debug_tactics
| 切换战术调试工具提示的可见性
|
|-
|-
| fow(debug_fow) [<Province ID> OPTIONAL] |打开/ 关掉游戏或特定省份的战争迷雾||
|debug_terrain
 
|Toggles Terrain on/off
|
|-
|-
| collision(debug_collision) || Toggles debug display of normals/bounding boxes/collision || 
|debug_texture
|draws  textures like bloom
|
|-
|-
| savegame |保存游戏 |
|debug_textures
|Writes Texture info to application debug log
|
|-
|-
| savecheck || Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same. || 
|debug_tooltip
|Toggles  Tooltips on/off
|
|-
|-
| IP |显示你的 IP |
|debug_trees
|Toggles Trees on/off
|
|-
|-
| requestgamestate || Requests the gamestate from host |
|debug_types
|Will  print the data type for all dynamic reference objects. Can only be used if  using RTTI.
|
|-
|-
| nudge || Go to the nudge tool || 
|debug_volume [<Volume  Delta>]
|Modifies  music volume
|
|-
|-
| mapmode [Mapmode type (int)] |改变地图模式 |
|debug_water
|Toggles Water on/off
|
|-
|-
| fullscreen |切换为填充(全屏)模式 |
|debug_wireframe
|Toggles forced wireframe on/off
|
|-
|-
| prices || Price Info || 
|debug_zoom
|Zooms  in the game
|
|-
|-
| add_core [<State ID>] [<Country Tag>]||  添加核心 ||
|deleteallunits(delall)
| 删除指定国家的全部陆军和海军。
|deleteallunits SPR
|-
|-
| remove_core [<State ID>] [<Country Tag>]|| 移除核心. Note:Does not Work|
|deltat [<speed  factor>]
| 控制游戏速度
|
|-
|-
| debug_zoom || Zooms in the game || 
|error
| 在日志中显示错误
|
|-
|-
| debug_types || Will print the data type for all dynamic reference objects. Can only be used if using RTTI. ||
|event [event id]  [<Target Country Tag>]
| 执行事件
|event  political.3 for communist coup
|-
|-
| debug_show_event_ID |展示事件所对应的ID |
|filewatcher
|Toggles filewatcher
|
|-
|-
| debug_commands || Printing commandcount to message.log |
|flagsoutput [<path>]
|Creates  texture atlas files from memory.
|
|-
|-
| debug_events || Start Counting events || 
|Focus.AutoComplete(fa)
| 国家焦点瞬间完成
| 同样作用于AI
|-
|-
| debug_dumpevents || Dump Event data to game log || 
|Focus.NoChecks
| 无视某些国家焦点的条件
| 同样作用于AI
|-
|-
| debug_diploactions || Start Counting diplomatic actions || 
|fow(debug_fow)  [<Province ID> OPTIONAL]
| 打开/关掉游戏或特定省份的战争迷雾
|
|-
|-
| debug_dumpdiploactions || Dump diplomatic action data to game log || 
|fronts
| 切换外国前线的可见性
|
|-
|-
| debug_assert || Toggles asserts on/off || 
|fullscreen
| 切换为填充(全屏)模式
|
|-
|-
| debug_smooth || Toggle framesmoothing || 
|gbpaint [layer] [channel]
|Toggles  gradient border painting
|
|-
|-
| debug_nomouse || Toggles mouse scrollwheel on/off || 
|gbreload
|Reloads  gradient borders
| 仅供开发者使用
|-
|-
| debug_terrain || Toggles Terrain on/off || 
|goto_province [province  id]
|Centers  to province
|
|-
|-
| debug_cities || Toggles Cities painting mode on/off || 
|goto_state [state id]
|Centers  to state
|
|-
|-
| debug_water || Toggles Water on/off |
|guibounds(gui)
|Toggles GUI bounds debug
|
|-
|-
| debug_fronts || Toggles interpolated fronts debug |
|hdr
|Toggles hdr
|
|-
|-
| debug_off_front_snap(dbg_fsnap) || Toggles offensive fronts snapping debug |
|hdr_debug
|Toggles hdr debugging
|
|-
|-
| debug_borders || Toggles Borders on/off || 
|help [command name]
|Print  out all console commands or a specific command description.
|
|-
|-
| debug_trees || Toggles Trees on/off || 
|helphelp
|Double  Rainbow help.
|
|-
|-
| debug_rivers || Toggles Rivers on/off || 
|helplog
|Print  out all console commands to game.log file.
|
|-
|-
| debug_postfx || Toggles PostFX on/off || 
|hsv
|Converts  RGB to HSV
|
|-
|-
| debug_sky || Toggles Sky on/off || 
|human_ai
| 打开或关闭玩家  AI
|
|-
|-
| debug_bloom || Toggles Bloom on/off || 
|instant_prepare
|Instantly  prepares naval invasions
| 仅供开发者使用
|-
|instant_wargoal
|允许你迅速正当化战争理由
|
|-
|instantconstruction(ic)
|所有建筑立即完工(对ai同样有效)
|
|-
|instanttraining(it)
|立即完成训练
|假设此时你已经开始训练若干个单位,分了10个训练线,每个生产线限制训练5个师,则在控制台输入这条指令后,当天24时,这10个师会训练完毕并立即部署,之后每天24时训练完10个师,因此以上50个师训练完需要5天。
|-
|IP
|显示你的  IP
|
|-
|ic
|''(参见instantconstruction)''
|
|-
|it
|''(参见instanttraining)''
|
|-
|manpower [<Amount>]
|给玩家增加人力
|
|-
|mapmode [Mapmode type  (int)]
|改变地图模式
|
|-
|-
| debug_tooltip || Toggles Tooltips on/off || 
|mapnames
|Toggle  map names
|
|-
|-
| flagsoutput [<path>] || Creates texture atlas files from memory. || 
|massconquer(massc)
| 大规模征服工具
|
|-
|-
| cityreload || 重新 载城市 |
|morehumans(humans) [num]
| 人口
|
|-
|-
| error || 在日志中显示错误 || 
|moveunit [<Unit ID>] [<Province ID>]
| 将一个单位移动到指定省份
|
|-
|-
| version || 显示 当前 游戏版本 |
|nextsong
| 更改 当前 播放的配乐
|
|-
|-
| debug_nogui || Toggles GUI on/off ||
|night
|Toggles  night
|*as  of 1.01 this does not seem to work (filed under developer-only command) This  command can be emulated via the day/night loop option at the bottom right  toolbar (shortcut key 'N')
|-
|-
| debug_volume [<Volume Delta>] || Modifies music volume || 
|nomapicons
| 切换地图图标
|
|-
|-
| debug_lockcamera || Toggles Camera locked on/off || 
|nopausetext
| 切换暂停横幅以获得更好的屏幕截图
|
|-
|-
| debug_lines || Toggles Debuglines || 
|nu [number]
|Adds  the specified amount of National Unity
|
|-
|-
| debug_entities || Toggles Debug entities || 
|nudge
|Go  to the nudge tool
|
|-
|-
| debug_info || Toggles Debug info || 
|nuke [number]
| 增加玩家核弹数量
|
|-
|-
| debug_particle || Toggles Particles Debug info || 
|observe(spectator)
| 切换到观察者模式,不再显示消息或暂停游戏。然而,它会干扰AI的性能,还有这并不能很好地指示AI在不使用观察模式时会做什么
|
|-
|-
| debug_ai_budget [CountryTag] || Show ai budget data || 
|occupationpaint(op)
|Toggles  occupation painting
|
|-
|-
| debug_textures || Writes Texture info to application debug log || 
|oos
|Out  of Synch
|
|-
|-
| debug_texture || draws textures like bloom || 
|particle_editor
| 生成一个粒子编辑器
|
|-
|-
| debug_wireframe || Toggles forced wireframe on/off || 
|pause_in_hours
| 在调用命令X小时后暂停游戏
|
|-
|-
| debug_achievements_clear || Clear all achievements and user stats || 
|poll
| 查询有效事件
|
|-
|-
| moveunit [<Unit ID>] [<Province ID>] || 将一个单位移动到指定省份 |
|PostEffectVolumes.Default  [posteffect_values name]
|Toggles default posteffect values
|
|-
|-
| spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] || Spawns an actor with an optional animation || 
|pp [number]
| 增加政治点数
|Not  specifying the amount of political power will give the player 1000 political  power.
|-
|-
| spawn [<子单位类型>] [<省份 ID>] [< 量>] || 增加单位到指定的省份 || 仅供开发者使用
|pp(fuhrer_mana,political_power)  [PP amount]
|给玩家政治点
|
|-
|-
| guibounds(gui) || Toggles GUI bounds debug || 
|prices
|Price  Info
|
|-
|-
| cameraclamp || Toggles the camera clamping || 
|PrintSynchStuff
| 打印随机计数和种子
|
|-
|-
| provtooltipdebug(tdebug) || Toggles the debug info in province tooltip |
|profilelog
|Prints  out the profiling informations into time.log
|
|-
|-
| reloadweather [<randomseed>] || Reload and regenerate weather || 
|provtooltipdebug(tdebug)
|Toggles  the debug info in province tooltip
|
|-
|-
| weather || Toggle weather simulation || 
| rowspan="3" |reload [file name]
| rowspan="3" | 重载游戏资源
|reload  loc (重载本地化文件)
|-
|-
| debug_air_vs_land(dbg_cas) || Toggle debug mode for air vs land combat. ||
|reload focus (重载国策)
|-
|-
| mapnames || Toggle map names ||
|reload landcombat.gui (重载陆战界面)
|-
|-
| gbreload || Reloads gradient borders || 仅供开发者使用
|reloadfx  [参数:map/mapname/postfx 或者 *.fx 文件]
| 重载着色器
|
|-
|-
| gbpaint [layer] [channel] || Toggles gradient border painting || 
|reloadinterface
| 重新加载整个界面
|
|-
|-
| occupationpaint(op) || Toggles occupation painting || 
|reloadoob [<Target  Country Tag>]
| 重新加载  OOBs
|
|-
|-
| setowner [country tag] [state id] || 设置地区拥有者 || 
|reloadsupply(relsup)
| 重新初始化补给系统
|
|-
|-
| setcontroller [country tag] [province id] || 设置省份拥有者 || 
|reloadtechnologies
| 重新加载技术数据库
|
|-
|-
| profilelog || Prints out the profiling informations into time.log || 
|reloadweather  [<randomseed>]
|Reload  and regenerate weather
|
|-
|-
| run || Runs the specified file with list of commands || 
|remove_core [<State  ID>] [<Country Tag>]
| 移除核心.  Note:Does not Work
|
|-
|-
| oos || Out of Synch || 
|remove_interest  [<Country tag>]
| 从您的兴趣中删除指定的国家/地区标记
|
|-
|-
| debug_crash(crash) || Crash! || 
|rendertype
| 输出所使用的渲染后端
|
|-
|-
| sleep(wait) [time in sec] || Sleep || 
|requestgamestate
|Requests  the gamestate from host
|
|-
|-
| goto_province [province id] || Centers to province |
|research [<slot id>  or "all"]
| 完成研究从科研槽或全部
|
|-
|-
| goto_state [state id] || Centers to state || 
|research_on_icon_click
| 点击科技树图标时研究一项技术
|
|-
|-
| trigger_docs(effect_docs) || Print docs for triggers and effects || 
|resign
| 退出游戏
|
|-
|-
| xp [XP amount] |给予玩家相应的海陆空三军经验|
|run
|Runs the specified file with list of commands
|
|-
|-
| threat [Threat amount] |改变世界紧张度 || If one does "threat 999999999" it will reset the world tension to 0
|savecheck
|Makes  a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
|
|-
|-
| pp(fuhrer_mana,political_power) [PP amount] || 给玩家政治点数|| 
|savegame
| 保存游戏
|
|-
|-
| 3dstats || Toggles 3D Stats || 
|set_cosmetic_tag  [<country tag>] [<cosmetic tag>]
| 改变国家的民族精神
|set_cosmetic_tag  USA SOV
|-
|-
| hdr || Toggles hdr || 
|set_country_flag  [<Country Flag>]
| 为当前的国家添加民族精神
|Does  not work if you put another nations tag in the command such as  "set_country_flag flag AUS". The console will give a message  confirming the command, but in my testing no flag is set.
|-
|-
| hdr_debug || Toggles hdr debugging || 
|set_ruling_party  <ideology group>
| 改变执政党
| 可输入意识形态缩写c (communism), d (democratic), n (neutrality), f (facism)
|-
|-
| srgb || Toggles sRGB || 
|setcontroller [country  tag] [province id]
| 设置省份拥有者
|
|-
|-
| bloom || Toggles bloom || 
|setowner [country tag]  [state id]
| 设置地区拥有者
| 经测试,若在与对方战争期间将对方的一个地区设置为自己或其他非战争参与国家,则在谈判时不会出现该地区,因为它实际上已由该国家所“拥有”(own)而非“占领”(control),因此如果你的领土与之相连,则你依然可以在此征兵。
|-
|-
| PostEffectVolumes.Default [posteffect_values name] || Toggles default posteffect values || 
|SetRandomCount
| 将随机计数设置为0或不变
|
|-
|-
| night || Toggles night || *as of 1.01 this does not seem to work (filed under developer-only command)  This command can be emulated via the day/night loop option at the bottom right toolbar (shortcut key 'N')
|sleep(wait) [time in sec]
|Sleep
|
|-
|-
| filewatcher || Toggles filewatcher || 
|spawn [<子单位类型>]  [<省份 ID>] [<数量>]
| 增加单位到指定的省份
| 仅供开发者使用
|-
|-
| civilwar [<ideology>] [<target country tag>] || 在特定国家发起内战|| civilwar fascism ENG :
|spawnactor  [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]
其他可输入意识形态 "communism"(共产主义) "democratic"(民主主义) "neutrality"(中立)
|Spawns an actor with an optional animation
|
|-
|-
|add_party_popularity <ideology group> <value> |增加特定政党支持度|| 在原版游戏中,意识形态组可以使用缩写,f(法西斯主义),d(民主主义),c(共产主义),n(不结盟主义)
|srgb
|Toggles sRGB
|
|-
|-
|set_ruling_party <ideology group> || 改变执政党 || 也可使用上述意识形态缩写
|tag [<Country tag>]
| 更换当前控制的国家
|
|-
|-
| createlean || Create LEAN textures || 
|tag_color
|Test  setting a country's color
|
|-
|-
| helplog || Print out all console commands to game.log file. || 
|teleport(tp)  [<province_id>]
| 传送选中陆军或海军到指定省份
|
|-
|-
| help [command name] || Print out all console commands or a specific command description. |
|testevent [<Event  ID>] [<Character ID>]
| 测试一个事件而不触发它
|
|-
|-
| helphelp || Double Rainbow help. || 
|testtool(test)
| 测试工具。
|
|-
|-
| hsv || Converts RGB to HSV || 
|theatersrebuild(trebuild)
| 重建世界上所有的战区,所有命令都将被清理
|
|-
|-
| tag_color || Test setting a country's color || 
|threat [Threat amount]
| 改变世界紧张度
|If  one does "threat 999999999" it will reset the world tension to 0
|-
|-
| browser [url] || Show browser window || 
|time
| 当前时间
|
|-
|-
| browser_base_url [url] || Set browser base url || 
|traderoutes
| 切换贸易路线的可见性
|
|-
|-
| aiview |展示AI调试x ||
|trigger_docs(effect_docs)
|Print docs for triggers and effects
|
|-
|-
| Focus.AutoComplete |国家焦点瞬间完成|| 同样作用于AI
|tweakergui
| 生成一个调整器 GUI
|
|-
|-
| Focus.NoChecks || 无视某些国家焦点的条 件 || 同样作用于AI
|update_loc [localization  tag]
| 更新本地化标记文
|
|-
|-
| instant_prepare || Instantly prepares naval invasions || 仅供开发者使用
|updateequipments
| 更新设备数据库
|
|-
|-
| nu [number] || Adds the specified amount of National Unity ||
|updatesubunits
| 更新子单元数据库
|
|-
|-
| pp [number] || 增加政治点数 || Not specifying the amount of political power will give the player 1000 political power.
|version
| 显示当前游戏版本
|
|-
|-
|nuke [number] |增加玩家核弹数量 ||
|weather
|Toggle weather simulation
|
|-
|-
| airealism || 开启真实 AI || 一个能让 AI 在聊天中能像玩家一样说话的彩蛋。因为在多人游戏中无法使用,在单人游戏中无法开始聊天所以没用。<ref> 播客上关于这条 评论可以在这里看到 https://www.reddit.com/r/hoi4/comments/6cb8vh/the_secrets_of_hoi4/dhtdr4x/</ref>
|whitepeace(wp) [<country tags>]
| 国家之间白和。
|
|-
|-
| instant_wargoal || 允许你迅速正当化战争理由 ||
|window(wnd) [Arguments: open/close] [window gui name]
| 打开或关闭特定窗口
|
|-
|-
| set_country_flag [<Country Flag>] ||  为当前的国家添加民族精神 || Does not work if you put another nations tag in the command such as "set_country_flag flag AUS". The console will give a message confirming the command, but in my testing no flag is set.
|winwars
| 在全国所有战争中获得最高战争分数
| 该指令在 1.9.1 后无效
|-
|-
| set_cosmetic_tag [<country tag>] [<cosmetic tag>]|| 改变国 家的 民族精神 || set_cosmetic_tag USA SOV
|xp [XP amount]
|}
| 给予玩 相应 海陆空三军经验
|
|}<!-- 致编辑者:在该表格中插入新指令时请依据字母顺序插入 2023/1/17 -->


== 另见 ==
== 另见 ==
第506行: 第891行:
{{Modding navbox}}
{{Modding navbox}}


[[Category:Interface]]
[[ 分类:Interface]]
[[Category:Modding]]
[[ 分类:Modding]]


[[en:Console commands]]
[[en:Console commands]]
[[fr:Console commands]]
[[fr:Console commands]]

2023年10月15日 (日) 20:47的最新版本

本页面列出了游戏中可以在控制台输入的指令,你可以在非铁人模式的单人游戏中使用键盘上的 ~ (按键因键盘布局不同而存在变化)。键盘上的上下箭头可以遍历之前输入执行的指令。绝大部分指令的开关是通过再次输入实现的,但关闭某些指令是需要保存退出或重新开始游戏的。请注意,这些指令中有许多会随着 DLC 的开启和关闭导致其中一些不能正常发挥作用。

请注意,铁人模式中无法使用控制台!

指令列表

使用 ⇧Shift + 2~`^⇧Shift + 2 + 1⇧Shift + 3 来开启控制台 (按键因键盘布局不同而存在变化)。

国家代码

参见:Countries

国家的 tags[1] 不区分大小写,但通常是大写的。例如:USA, CHI, ENG, SOV。在内战中产生的国家将依据可用性被赋予D01、D02、D03及以后的范围的 tag (注意, D50 是最大的可用tag)。

可以通过输入“tdebug”并将鼠标悬停在您想知道的国家的省份上,来查看该国家的 tag 。

使用键盘上的⇆Tab键可以自动补全指令和查看所有指令。

常用指令

Command Effect Example/Comment
gain_xp [<amount>] 向选定的领导人/陆军将领/海军上将增加经验值 gain_xp 100000(等级最高为 9 级)。也可用来添加将领特性,例如:gain_xp desert_fox(相应列表可以在你 ../localisation/traits_l_english.yml 的文件中找到。这里有一些对相应解释。)
gain_xp [<trait>] 向选定的领导人/陆军将领/海军上将添加可获取的特性。 例如:gain_xp seawolf (相应列表可以在你 ../localisation/traits_l_english.yml 的文件中找到。这里有一些对相应解释。)

注意 要让这在新征募的通用海军上将上生效:
1. 使用文本编辑器打开 'Documents\Paradox Interactive\Hearts of Iron IV\settings.txt' ,并将 'save_as_binary=yes' 修改为 'save_as_binary=no'。
2. 打开游戏,载入存档并另存为一个新文件,然后退出游戏。
3. 打开 'Documents\Paradox Interactive\Hearts of Iron IV\Save Games' ,打开新创建的存档文件,搜索(CTRL-F)你征募的通用海军上将的名字
4. 在 max_traits=0.000 下面几行添加下列代码块
in_progress={
seawolf=0.000
superior_tactician=0.000
spotter=0.000
fly_swatter=0.000
ironside=0.000
air_controller=0.000
}

5. 确保存储文件时使用了 ANSI 编码格式。
6. 开始游戏,载入存档,使用 gain_xp 指令,享受吧。
(可以选择在 settings.txt 里重新开启二进制化)

cp [<amount>] 增加指挥点数 cp 100 (上限为 100)
st [<amount>] 增加稳定度 st 100 (上限为 100)
ws [<amount>] 增加战争支持度 ws 100 (上限为 100)
allowtraits 允许自由添加将领特性
add_equipment(ae) [<equipment amount>] [<equipment name>] 增加装备 装备要用最基础的名字,所以用 'ae 1000 infantry_equipment_1'。你只能添加已研究了的装备。不支持添加海军装备。(运输船除外: 'ae 1000 convoy_1')。要添加舰船,考虑使用 instantconstruction(ic 对 AI 也会起作用)。

要添加衍生型装备,你必须要指定它的名字。例子:你创建了 'Matilda LP' 型坦克的衍生型,拥有更好的装甲和主炮,并把它命名为 'Matilda LP Mk. IV'。 现在就要使用 'add_equipment 1000 Matilda LP Mk. IV'了。

add_latest_equipment(ale) [<equipment amount>] 给予玩家一定量的最新装备 要添加你最新装备中指定的一种,你需要指定它的名字。例子:你创建了 'Matilda LP' 型坦克的衍生型,拥有更好的装甲和主炮,并把它命名为 'Matilda LP Mk. IV'。

现在就要使用 'add_equipment 1000 Matilda LP Mk. IV'了。

whitepeace(wp) [<country tags>] 指定的国家之间白和。
teleport(tp) 瞬间移动 可以传送军队到你选择的任何地方
allowdiplo adiplo,nocb 无论规则如何,可以使用所有的外交行动。(无需正当化就可以宣战) 这应该是想开战而需等待正当化最有效率的方式。如果你只想立刻正当化而不是想做正当化后才能做的事,那就用(instant_wargoal)。
debug_nuking 无需任何条件向所有的世界上所有的省份投放核弹
instantconstruction 开关立刻建造的作弊码。 对 AI 有效。舰船也会立刻建造完成。
event [event id] [<Target Country Tag>] 触发一个事件 event political.3 触发共产主义政变 6 触发民主主义 9 触发法西斯主义
trigger [scripted_trigger_name] 检查一个脚本触发器的值是否为真或假
effect [scripted_effect_name] 执行一个脚本的效果
research [<slot id> or "all"] 研究完成指定科研槽的科技(slot id)或所有科技(all) 使用"Research all"将立即研发所有科技。
research_on_icon_click 在点击科技树上的图标时立刻研究完相应科技 允许你研究完一项科技而无需其前置科技
annex [<Target Country Tag>] 吞并输入的国家 annex USA 或者 annex d01 亦或 annex all
manpower [<Amount>] 向玩家增加人力 如果只输入 "manpower",后面不跟数字则会给你一千万人力
add_opinion [<Country tag>] 增加指定国家好感度 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
addfunds [MIO_TOKEN] [amount] 增加製造商經費 向相應製造商(沒寫全部都加)增加經費(類似製造商經驗值)

注:製造商可以在"Hearts of Iron IV\common\military_industrial_organization\organizations"找到

addSize [MIO_TOKEN] [amount] 增加製造商規模 向相應製造商(沒寫全部都加)增加規模(類似製造商等級)

注:"Hearts of Iron IV\common\military_industrial_organization\organizations"找到

tag [<Country tag>] 切换到输入的国家
observe(spectator) 切换到无国家状态,并且不再弹出信息或是暂停游戏。但是,开启观察模式会干扰 AI 的操作,并且 AI 的行为可能会与未开启观察模式下不同。
tdebug 开关调试信息 对查看国家 tag 和 ID 很有帮助
spawn [<子单位类型>] [<省份 ID>] [<数量>] 增加单位到指定的省份 仅在调试模式下工作。
occupationpaint(op) 开关占领地区绘色。如果和国家 tag 配合使用则只绘色该国家拥有而不是控制的地区,比如,op JAP。
setowner [country tag] [state id] 设置地区拥有者 通过点击选择一个地区也会生效。当一个地区已被选中则其他地区不能再被改变。
setcontroller [country tag] [province id] 设置省份控制者
xp [XP amount] 玩家获得海陆空三军指定数量的经验 一天能用一次
pp(fuhrer_mana,political_power) [PP amount] 向玩家增加政治点数
fuel [<amount>] 增加燃油 fuel 100000 (上限取决于你的储备容量,超出将会导致燃油减少)
civilwar [<意识形态>] [<目标国家 TAG>] 引发内战 civilwar fascism ENG :

其他可输入意识形态 "communism"(共产主义) "democratic"(民主主义) "neutrality"(中立)

add_party_popularity <ideology group> <value> 增加政党支持度 ideology group 在钢铁雄心原版理念组里有对应快捷键 d f n c。
set_ruling_party <ideology group> 设置执政党 ideology group 在钢铁雄心原版理念组里有对应快捷键 d f n c。
help [command name] 输出所有的控制台指令或者指定指令的介绍。
Focus.AutoComplete 允许国策立刻完成 对 AI 有效
Focus.NoChecks 无视国策的条件 对 AI 有效
Focus.IgnorePrerequisites 无视国策前提要求 允许从国策树中间开始点国策
Decision.NoChecks 无视决策的条件 同样不会消耗政治点数
instant_prepare 立刻准备好海军入侵 只在调试模式下生效。
it 陆军和海军立刻演练完成 对 AI 有效
nu [number] 增加国家凝聚力 仅在 1.5 以前的版本有效
nuke [number] 增加核弹数量 添加 100 或者 1000
ai_accept AI 会同意所有外交请求
add_core <province_id> 增加核心
agency.instantslotunlock 移除在间谍招募时中间的等待时间
agency.autocomplete 立刻完成间谍机构的升级
prevent_operative_detection 你的特工/间谍不会再被发现
force_operative_detection 你的特工/间谍会被发现
Operation.Instant 秒完成任务
agency.keepexcessoperatives
resistance 增加设定数值到选中省份的抵抗度 例如:(选择柏林的一个省份)resistance 100(效果為增加該省分的抵抗度,增幅為100)
compliance 增加设定数值到选中省份的顺从度 例如:(选择但泽的一个省份)compliance 100(效果為增加該省分的順從度,增幅為100)
collaboration 快速建立合作政府 先右键一个国家,用控制台输入collaboration 100,然后吞并全部领土,让时间走一会,就会有事件提醒建立合作政府。注意这个代码对D01之类的国家无效,需要将这类国家吞并后用setowner+国家代码缩写把这个地方原来的不是D01之类的国家调出来,然后再重复上述步骤,就可以发现所有占领区的顺从度都变为100,比一个一个占领区输入compliance 100方便多了。(PS:中国地区必须对CHI输入该代码,对PRC等无效)
puppet [<宗主国>] [<要傀儡的国家>] 快速傀儡其他国家 注意宗主国在前!要傀儡的国家在后!
debug 决议调试模式 在原版输入该代码会额外多出一些决议,比如特工位+99。在模组里输入:比如TNO,除了多出很多决议还能显示民族精神代码,配合remove_ideas可以移除这些精神

全部指令

指令 效果 例子/解释
3dstats Toggles 3D Stats
add_autonomy [<Target Country Tag>] [num] 改变目标国家的自治度 add_autonomy PHI -200
add_core [<State ID>] [<Country Tag>] 添加核心
add_diplo 增加外交途径
add_equipment(ae) [<equipment amount>] [<equipment name>] 添加装备 add_equipment 200 Sonderkraftfahrzeug 251/20:在 "equipment_l_english.yml" 中能查阅到所有装备的名字
add_ideas [<idea name>] 带着 <id> 添加民族精神会添加到对应国家 在 .\common\ideas 下的文件查看各国的民族精神
add_interest [<Country tag>] 将指定的国家标签添加到您的兴趣中
add_latest_equipment(ale) [<equipment amount>] 给予玩家一定量的最新装备
add_opinion [<Country tag>] 增加指定国家好感度 向指定国家增加 100 (硬编码)点好感度(例如 add_opinion ENG)。成功执行后会输出 "<country> have 100 more opinion about you" 并会在外交界面中显示为 "cheat_opinion_modified_good"。
add_party_popularity <ideology group> <value> 增加特定政党支持度 在原版游戏中,意识形态组可以使用缩写,f(法西斯主义),d(民主主义),c(共产主义),n(不结盟主义)
ai 打开或关闭 AI
ai_accept(yesman) 打开或关闭AI始终接受外交
ai_invasion 打开或关闭AI海军入侵
aidump 将AI前端数据转储到日志文件,需要选择一个单元
aircombat(airc) [<scenario name>] [<result name>] [<province id>] [<state id with airbase>] [<state id with airbase>] [<equipment type>] [<equipment type>] [<equipment creator country>] [<equipment creator country>] 在指定位置生成一场空战
airealism 开启真实 AI
aiview 展示AI调试x
allowdiplo(adiplo,nocb) 允许使用所有外交行动,无论规则如何
analyzetheatres(anth) 分析战区的错误
annex [<Target Country Tag>] 吞并目标国家(不带核心,不能继承目标国家军队) annex USA or annex d01
bloom Toggles bloom
browser [url] Show browser window
browser_base_url [url] Set browser base url
building_health(bhealth) [<building type>] [<state or prov id>] [<building level>] [<health to add>] 更改指定的建筑的血量
bypass_invasion_superiority_check 无视制海权进行海军入侵
cameraclamp Toggles the camera clamping
cityreload 重新加载城市
civilwar [<ideology>] [<target country tag>] 在特定国家发起内战 civilwar fascism ENG
其他可输入意识形态 "communism"(共产主义) "democratic"(民主主义) "neutrality"(中立)
collision(debug_collision) Toggles debug display of normals/bounding boxes/collision
combatsound 战斗视图多久发出一次随机声音?? 0-50
createlean Create LEAN textures
Decision.NoChecks 决议无条件 对 AI 有效
Decision.FastRemove 决议生效时间为一天 对 AI 有效
debug_achievements_clear Clear all achievements and user stats
debug_ai_budget [CountryTag] Show ai budget data
debug_air_vs_land(dbg_cas) Toggle debug mode for air vs land combat.
debug_assert Toggles asserts on/off
debug_bloom Toggles Bloom on/off
debug_borders Toggles Borders on/off
debug_cities Toggles Cities painting mode on/off
debug_commands Printing commandcount to message.log
debug_crash(crash) Crash!
debug_diploactions Start Counting diplomatic actions
debug_dumpdiploactions Dump diplomatic action data to game log
debug_dumpevents Dump Event data to game log
debug_entities Toggles Debug entities
debug_events Start Counting events
debug_fronts Toggles interpolated fronts debug
debug_info Toggles Debug info
debug_lines Toggles Debuglines
debug_lockcamera Toggles Camera locked on/off
debug_nogui Toggles GUI on/off
debug_nomouse Toggles mouse scrollwheel on/off
debug_nuking 无视所有条件对所有省份发射核弹
debug_off_front_snap(dbg_fsnap) Toggles offensive fronts snapping debug
debug_particle Toggles Particles Debug info
debug_postfx Toggles PostFX on/off
debug_rivers Toggles Rivers on/off
debug_show_event_ID 展示事件所对应的ID
debug_sky Toggles Sky on/off
debug_smooth Toggle framesmoothing
debug_tactics 切换战术调试工具提示的可见性
debug_terrain Toggles Terrain on/off
debug_texture draws textures like bloom
debug_textures Writes Texture info to application debug log
debug_tooltip Toggles Tooltips on/off
debug_trees Toggles Trees on/off
debug_types Will print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_volume [<Volume Delta>] Modifies music volume
debug_water Toggles Water on/off
debug_wireframe Toggles forced wireframe on/off
debug_zoom Zooms in the game
deleteallunits(delall) 删除指定国家的全部陆军和海军。 deleteallunits SPR
deltat [<speed factor>] 控制游戏速度
error 在日志中显示错误
event [event id] [<Target Country Tag>] 执行事件 event political.3 for communist coup
filewatcher Toggles filewatcher
flagsoutput [<path>] Creates texture atlas files from memory.
Focus.AutoComplete(fa) 国家焦点瞬间完成 同样作用于AI
Focus.NoChecks 无视某些国家焦点的条件 同样作用于AI
fow(debug_fow) [<Province ID> OPTIONAL] 打开/关掉游戏或特定省份的战争迷雾
fronts 切换外国前线的可见性
fullscreen 切换为填充(全屏)模式
gbpaint [layer] [channel] Toggles gradient border painting
gbreload Reloads gradient borders 仅供开发者使用
goto_province [province id] Centers to province
goto_state [state id] Centers to state
guibounds(gui) Toggles GUI bounds debug
hdr Toggles hdr
hdr_debug Toggles hdr debugging
help [command name] Print out all console commands or a specific command description.
helphelp Double Rainbow help.
helplog Print out all console commands to game.log file.
hsv Converts RGB to HSV
human_ai 打开或关闭玩家 AI
instant_prepare Instantly prepares naval invasions 仅供开发者使用
instant_wargoal 允许你迅速正当化战争理由
instantconstruction(ic) 所有建筑立即完工(对ai同样有效)
instanttraining(it) 立即完成训练 假设此时你已经开始训练若干个单位,分了10个训练线,每个生产线限制训练5个师,则在控制台输入这条指令后,当天24时,这10个师会训练完毕并立即部署,之后每天24时训练完10个师,因此以上50个师训练完需要5天。
IP 显示你的 IP
ic (参见instantconstruction)
it (参见instanttraining)
manpower [<Amount>] 给玩家增加人力
mapmode [Mapmode type (int)] 改变地图模式
mapnames Toggle map names
massconquer(massc) 大规模征服工具
morehumans(humans) [num] 增加人口
moveunit [<Unit ID>] [<Province ID>] 将一个单位移动到指定省份
nextsong 更改当前播放的配乐
night Toggles night *as of 1.01 this does not seem to work (filed under developer-only command) This command can be emulated via the day/night loop option at the bottom right toolbar (shortcut key 'N')
nomapicons 切换地图图标
nopausetext 切换暂停横幅以获得更好的屏幕截图
nu [number] Adds the specified amount of National Unity
nudge Go to the nudge tool
nuke [number] 增加玩家核弹数量
observe(spectator) 切换到观察者模式,不再显示消息或暂停游戏。然而,它会干扰AI的性能,还有这并不能很好地指示AI在不使用观察模式时会做什么
occupationpaint(op) Toggles occupation painting
oos Out of Synch
particle_editor 生成一个粒子编辑器
pause_in_hours 在调用命令X小时后暂停游戏
poll 查询有效事件
PostEffectVolumes.Default [posteffect_values name] Toggles default posteffect values
pp [number] 增加政治点数 Not specifying the amount of political power will give the player 1000 political power.
pp(fuhrer_mana,political_power) [PP amount] 给玩家政治点数
prices Price Info
PrintSynchStuff 打印随机计数和种子
profilelog Prints out the profiling informations into time.log
provtooltipdebug(tdebug) Toggles the debug info in province tooltip
reload [file name] 重载游戏资源 reload loc (重载本地化文件)
reload focus (重载国策)
reload landcombat.gui (重载陆战界面)
reloadfx [参数:map/mapname/postfx 或者 *.fx 文件] 重载着色器
reloadinterface 重新加载整个界面
reloadoob [<Target Country Tag>] 重新加载 OOBs
reloadsupply(relsup) 重新初始化补给系统
reloadtechnologies 重新加载技术数据库
reloadweather [<randomseed>] Reload and regenerate weather
remove_core [<State ID>] [<Country Tag>] 移除核心. Note:Does not Work
remove_interest [<Country tag>] 从您的兴趣中删除指定的国家/地区标记
rendertype 输出所使用的渲染后端
requestgamestate Requests the gamestate from host
research [<slot id> or "all"] 完成研究从科研槽或全部
research_on_icon_click 点击科技树图标时研究一项技术
resign 退出游戏
run Runs the specified file with list of commands
savecheck Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
savegame 保存游戏
set_cosmetic_tag [<country tag>] [<cosmetic tag>] 改变国家的民族精神 set_cosmetic_tag USA SOV
set_country_flag [<Country Flag>] 为当前的国家添加民族精神 Does not work if you put another nations tag in the command such as "set_country_flag flag AUS". The console will give a message confirming the command, but in my testing no flag is set.
set_ruling_party <ideology group> 改变执政党 可输入意识形态缩写c (communism), d (democratic), n (neutrality), f (facism)
setcontroller [country tag] [province id] 设置省份拥有者
setowner [country tag] [state id] 设置地区拥有者 经测试,若在与对方战争期间将对方的一个地区设置为自己或其他非战争参与国家,则在谈判时不会出现该地区,因为它实际上已由该国家所“拥有”(own)而非“占领”(control),因此如果你的领土与之相连,则你依然可以在此征兵。
SetRandomCount 将随机计数设置为0或不变
sleep(wait) [time in sec] Sleep
spawn [<子单位类型>] [<省份 ID>] [<数量>] 增加单位到指定的省份 仅供开发者使用
spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] Spawns an actor with an optional animation
srgb Toggles sRGB
tag [<Country tag>] 更换当前控制的国家
tag_color Test setting a country's color
teleport(tp) [<province_id>] 传送选中陆军或海军到指定省份
testevent [<Event ID>] [<Character ID>] 测试一个事件而不触发它
testtool(test) 测试工具。
theatersrebuild(trebuild) 重建世界上所有的战区,所有命令都将被清理
threat [Threat amount] 改变世界紧张度 If one does "threat 999999999" it will reset the world tension to 0
time 当前时间
traderoutes 切换贸易路线的可见性
trigger_docs(effect_docs) Print docs for triggers and effects
tweakergui 生成一个调整器 GUI
update_loc [localization tag] 更新本地化标记文件
updateequipments 更新设备数据库
updatesubunits 更新子单元数据库
version 显示当前游戏版本
weather Toggle weather simulation
whitepeace(wp) [<country tags>] 指定的国家之间白和。
window(wnd) [Arguments: open/close] [window gui name] 打开或关闭特定窗口
winwars 在全国所有战争中获得最高战争分数 该指令在 1.9.1 后无效
xp [XP amount] 给予玩家相应的海陆空三军经验

另见

参考

  1. tag 列表文件可以在 /Hearts of Iron IV/common/country_tags/ 文件夹中找到。