
钢铁雄心4 控制台代码
常用秘籍 35 条,附游戏帮助文件中的全部指令。
如何打开控制台
按键盘上 1 左边、Esc 下方的键(美式键盘为 ~ 键),输入代码后按回车。使用作弊会让这一局无法获得成就,铁人模式和多人游戏中无法使用。
常用秘籍
政治点数、人力和装备
| 代码 | 作用 |
|---|---|
pp 500 | 增加政治点数,负数则扣除。 |
cp 100 | 增加指挥点数。 |
manpower 1000000 | 增加可用人力。 |
xp 500 | 同时增加陆军、海军和空军经验。 |
add_equipment 1000 infantry_equipment_1 | 向库存添加装备:先写数量,再写装备代码。 |
add_latest_equipment 1000 | 为已研究的每种装备添加最新型号。 |
st 20 | 提高稳定度,负数则降低。 |
ws 20 | 提高战争支持度,负数则降低。 |
nuke 10 | 增加核弹。 |
科研、建造和国策
| 代码 | 作用 |
|---|---|
research all | 完成全部科技;写研究槽编号则只完成该槽的科技。 |
roic | 开启后,点击科技树中的科技即可立刻研究。 |
ic | 开关立即建造。 |
Focus.AutoComplete | 选择的国策立即完成,再输入一次关闭。 |
Focus.IgnorePrerequisites | 无需前置国策即可选择国策。 |
Focus.NoChecks | 跳过国策的条件检查。 |
Decision.NoChecks | 跳过决议的条件检查。 |
allowtraits | 允许将领学习所有特质。 |
gain_xp 500 | 为选中的将领增加经验。 |
国家、战争与和平
| 代码 | 作用 |
|---|---|
tag GER | 切换到另一个国家,国家代码见国家代码表。 |
annex POL | 吞并指定国家。 |
wp ENG | 与指定国家白和平。 |
setowner GER 64 | 把地区交给某国:先写国家代码,再写地区代码。 |
setcontroller GER 6521 | 设置省份的控制者:先写国家代码,再写省份代码。 |
set_ruling_party communism | 更换执政党:democratic、communism、fascism 或 neutrality。 |
add_party_popularity fascism 30 | 增加某政党的支持度。 |
civilwar communism | 以指定意识形态发动内战。 |
yesman | AI 接受所有外交提议,再输入一次关闭。 |
allowdiplo | 无视规则使用任何外交行动,例如无战争借口宣战。 |
ai | 关闭或开启 AI。 |
observe | 不扮演任何国家,进入观察模式。 |
地图、事件和代码
| 代码 | 作用 |
|---|---|
event germany.22 GER | 按事件代码触发事件,此例为立陶宛交出梅梅尔;末尾可写国家代码指定接收方。 |
instantevents | 需要随机等待的事件立即触发。 |
fow | 关闭或开启战争迷雾。 |
tp 6521 | 把选中的部队或舰船传送到指定省份。 |
tdebug | 在地图提示中显示省份和地区代码。 |
全部控制台指令
以下说明为游戏帮助文件原文(英文)。
| 指令 | 参数 | 游戏说明 |
|---|---|---|
3dstats | Toggles 3D Stats | |
acclimatizationacc | <climate_name>, <value 0-100> | Sets the acclimatization on a division(s). |
add_autonomy | No description in the game | |
add_cic_bankstonks, cic, bank | <value> | Add CIC to the CIC bank (negative value subtracts) |
add_core | <Province ID> | Add core |
add_critical_hit | <critical_hit_name> | add critical hit to selected ships |
add_diplo | Adds diplomatic entroute | |
add_equipmentae | equipment amount, equipment name | Gives player amount of equipment that has the specified name |
add_exile_manpower | <TAG>, <value> | Adds legitimacy to specified tag. add_legitimacy TAG amount |
add_fake_armies | Creates fake intel armies for the player | |
add_ideas | all|<idea1> <idea2> ...> | Adds ideas (ministers or national spirits) with <ID> to the country. Use 'all' to add them all |
add_intel | Set the values of a static intel pool against a specific country. E.g. `add_intel GER POL army=10` | |
add_latest_equipmentale | equipment amount | Gives player amount of latest equipment variants |
add_legitimacy | <TAG>, <value> | Adds legitimacy to specified tag. add_legitimacy TAG amount |
add_minesmines | <Amount of naval mines> | Add naval mines to selected region(s) |
add_opinion | <Country tag> | Add opinion to/from tag |
add_party_popularity | <party>, <amount> | Adds party popularity for specified party to the current country |
add_rain | <rain_amount> | Adds rain to the selected province |
add_snow | <snow_amount> | Adds snow to the selected province |
add_stabilityst | unity amount | Gives/removes stability from player |
add_subsidies | No description in the game | |
add_subsidies_second | No description in the game | |
add_tech | No description in the game | |
add_war_supportws | unity amount | Gives/removes war support from player |
AddFundsmio.AddFunds, IndustrialOrganisation.AddFunds | <Industrial Organisation token> (optional), <Funds amount> (optional) | Add funds to one or all Military Industrial Organisations ex: AddFunds org_token 2000 AddFunds org_token // default added funds is NDefines::NIndustrialOrganisation::FUNDS_FOR_SIZE_UP AddFunds 2000 // Funds added to all the player's MIOs AddFunds // default funds amount added to all the player's MIOs |
AddSizemio.AddSize, IndustrialOrganisation.AddSize | <Industrial Organisation token> (optional), <capacity amount> (optional) | Add sizes to one or all Military Industrial Organisations. ex: AddSize org_token 2 AddSize org_token // adds 1 size AddSize 2 // adds input size to all the player's MIOs AddSize // adds 1 size to all the player's MIOs |
AddTaskCapacitymio.AddTaskCapacity, IndustrialOrganisation.AddTaskCapacity | <Industrial Organisation token> (optional), <capacity amount> (optional) | Add task capacity to one or all Military Industrial Organisations. Value can be negative but final task capacity will be capped at 0. ex: AddTaskCapacity org_token 2 AddTaskCapacity org_token // adds 1 capacity AddTaskCapacity 2 // adds input capacity to all the player's MIOs AddTaskCapacity // adds 1 capacity to all the player's MIOs |
Agency.Instant | Activates Operation.Instant, IntelNetwork.Instant, Agency.InstantSlotUnlock and Agency.Autocomplete | |
ai | Toggles the AI on or off | |
ai_acceptyesman | Toggles AI always accept diplomacy | |
ai_force_equipment | Force the AI to only spend army XP on equipment design | |
ai_force_template | Force the AI to only spend army XP on template design | |
ai_front_id | Get the address of selected group's front debug id | |
ai_idea_desire_log | Prints AI desire for ideas to log. For Current country only. | |
ai_invasion | Toggles AI AI naval invasions | |
ai_pp_log | Prints AI use of PP to log | |
airealism | Enable realistic AI | |
aiview | Enable AI debug info | |
allowdiploadiplo, nocb | Allows to use all diplomatic actions for no matter the rules. | |
allowideas | Allows to learn all ideas. | |
allowoperations | Allows to execute all operations. | |
allowtraits | Allows to learn all traits. | |
analyzetheatresanth | Analyze theatres for errors. | |
annex | <Target Country Tag> | Begin annex/annexes the specified tag |
armageddon | Deliver a thermonuclear strike to every state in the game. | |
Audio.PlayEffect | effect_name | Play the specified sound effect |
bop_add | <ID>, <value> | Changes the value of the specified power balance. |
bop_addmod | <ID>, <ModID> | Adds static modifier to a power balance. |
bop_remove | <ID> | Deactivates a power balance for the current country. |
bop_rmmod | <ID>, <ModID> | Removes static modifier from a power balance. |
bop_set | <ID> | Activates a power balance for the current country. |
bop_show | Shows current country's active power balances. | |
build_war_blobs | Prints a list of all your wars | |
building_healthbhealth | <building type>, <state or prov id>, <building level>, <health to add> | Changes specified building health |
bypass_invasion_superiority_checkbisc | Ignore superiority in the strategic areas crossed by a naval invasion order | |
cameraclamp | Toggles the camera clamping | |
capture_commander | <owner_tag>, <leader> | Capture an enemy commander for the player country. <province_id> is required if the commander is not deployed. |
cityreload | Reloads the cities | |
civilwar | <ideology>, [target country tag] | Spawns a civil war |
clear_critical_hits | clear all critical hits | |
clear_intel_pools | Reset the specified intel pool | |
clear_tech | No description in the game | |
collaboration | Adds collaborations against selected country. Right-Click to select a country and use "collaboration 0.3 | |
collisiondebug_collision | Toggles debug display of normals/bounding boxes/collision | |
combat_analyzer | <TAG1>, <TAG2>, <OOB1>, <OOB2>, <num runs> OPTIONAL, <num days> OPTIONAL | Runs a combat between the 2 OOBs owned by the two TAGs either until done or for the specified number of days. Using <num runs> the combat will be run multiple times and the averages are printed |
combatsound | How often does the combat view give a random sound? 0-50 | |
compare_to_last_checksum | Compare current checksum with the most recent dump | |
compliance | amount | increases decreases compliance in a state |
cp | CP amount | Gives command power to player |
CrashReporter.DeleteCrashData | Delete local crash dumps older than X days. | |
CrashReporter.SimulateCrash | Simulates a crash (resulting in the game exiting). | |
createarmygroup | Create field marshal group from selected groups | |
ct | Puts timer info in clipboard | |
damage_units | <org>, <str>, <num> | Damage or heal selected units or units under pointer if there is none selected. Enter 1 argument to apply damage for both types, two for individual both types |
dbg_task_force_role_insignia_assignmenttfria | print the role that would be deduced for the selected task force | |
dbg_tf_fulfillment | Show the managed fulfillment of a taskforce (exepected number of ships after all ships have been merged in) | |
debug | Toggle debug mode on/off. | |
debug_army_entitydae | Shows debug entity for all armies | |
debug_bloom | Toggles Bloom on/off | |
debug_borders | Toggles Borders on/off | |
debug_checkportraitssanity | Analyse all characters' portraits and write failures in error log | |
debug_cities | Toggles Cities painting mode on/off | |
debug_custom_achievements | For testing custom achievements, clear completion status (delete files on cloud storage) and reload mod achievement files | |
debug_dumpevents | Dump Event data to game log | |
debug_events | Start Counting events | |
debug_force_capitulatedfc | <tag> | forces capitulation of a country on next daily tick |
debug_front_sectionsdbg_fs | <Theatre index>, <Front index>, <Section index> | Visual debug of theatres, fronts and sections. |
debug_lockcamera | Toggles Camera locked on/off | |
debug_nogui | Toggles GUI on/off | |
debug_nomouse | Toggles mouse scrollwheel on/off | |
debug_norender | Toggle rendering of map | |
debug_postfx | Toggles PostFX on/off | |
debug_rivers | Toggles Rivers on/off | |
debug_show_event_ID | Shows event ID | |
debug_sky | Toggles Sky on/off | |
debug_smooth | Toggle framesmoothing | |
debug_tactics | Toggle visibility of debug tooltip for tactics | |
debug_terrain | Toggles Terrain on/off | |
debug_tooltip | Toggles Tooltips on/off | |
debug_trees | Toggles Trees on/off | |
debug_unit_controller_weightsdbg_ucw | <weight token> | Visual debug of unit controller weights. Enable track_unit_controller_weights first! |
debug_unit_entitydbg_ue | Print out the entity hierarchy. | |
debug_water | Toggles Water on/off | |
debug_zoom | Zooms in the game | |
deleteallairwingsdelallair | Delete all airwings. | |
deleteallunitsdelall | Delete all armies and fleets of the specified countries. | |
deleteallunitsbutdelallbut | Delete all armies and fleets of ALL countries, except specified one. | |
deltat | <speed factor> | control animation speeds |
disable_ai | Disables the AI | |
disable_weather | Disable weather simulation | |
drop_cosmetic_tag | <country tag> | Drops 'cosmetic tag' for a specified country |
dump_cached_random_logs | dumps cached random logs | |
dump_checksum | Compute and store the checksum in a file | |
dump_equipment_loc | desc: Dump equipment descriptions instead of the names, <country_tag>: Multiple allowed. Only include loc strings for the given countries. Generic loc strings are included if no tags are given, or with argument 'generic'., <type>: Multiple allowed. Only include equipment that are all of the given types, e.g. 'armor anti_tank' will only include tank destroyers., path=<filepath>: File path to write the dump to. Default is 'logs/equipment_loc.csv'. | Dumps equipment loc strings to file. All arguments are optional. |
dump_garrison_templates | Dump garrison templates to game log | |
dump_synchronized_members | Dump the synchronized game state (the one that has checksum ID 2) | |
easy_decisionsezd | Toggles Easy Decisions Mode which makes all decisions with days_remove take only 1 day to be removed, and all decisions with cost not have any cost or cost trigger. | |
effecte | <tag> scripted_effect_name | Runs a scripted effect on selected scope |
empty_fuel_tanks | Fuel amount | Clear fuel tanks of all armies |
emulate_ai_operative_assignment | Log ai operative assignment if it were to run this tick. Takes as first argument the tag of the country to test, default to the player's. | |
enable_ai | Enables the AI | |
enable_weather | Enable weather simulation | |
energy_ratioer | Energy ratio | Set Energy Ratio for the factories without coal consumption |
error | Show errors in log | |
eval_effect | Runs the inlined effect on a selected scope | |
eval_trigger | Runs the inlined trigger on a selected scope | |
event | event id, <Target Country Tag> | Executes an event |
faction_goal_slotfgs | category, amount | Adds a faction goal slot, categories are short medium long |
faction_influencefinf | amount, countrytag | Adds faction influence (stored) to the country, on default it takes the player country if no tag is provided |
faction_initiativefi | amount, countrytag | Adds faction initiative to the country, on default it takes the player country if no tag is provided |
faction_unlockfu | type | Unlocks a part of the faction, can take the argument military (m) or research (r) |
fast_forward | <amount of days>, <observer> | Fast forward a set amount of days |
finish_decision | <decision id> or "all" | Finish timed missions instantly |
flagsoutput | <path> | Creates texture atlas files from memory. |
focus_count | <Target Country Tag> | Counts how many focuses a tag has. For science |
force_operative_detectionsnitch | Print intel network related information | |
fowdebug_fow | <Province ID> OPTIONAL | Turns off fog of war in a province or in general |
freefocusesff | Enable freely activating any focuses | |
fronts | Toggle visibility of the foreign fronts | |
fuelarmy_juice | Fuel amount | Adds/removes fuel to the player |
fuel_gain | Daily Fuel amount | Adds/removes daily fuel gain for player |
fullscreen | Toggles fullscreen | |
gain_xp | <trait> | Gain xp for selected leader or for a leader trait |
gamespeed | speed <0-5> | Set the current game speed, pausing the game at speed 0. |
gamestate_timergstimer | on / off | Enable / Disable recording of how long an hour / day / week etc takes to process. |
get_capital | <Country tag> | Get the capital of a country |
get_country_flag | <flag name> | Gets country flag on specified TAG. Defaults to current country |
get_flag | <flag name> | Get a flag |
get_var | <var name> | Gets a variable |
goto_province | province id | Centers to province |
goto_region | region id | Centers to region |
goto_state | state id | Centers to state |
grow_intel_network | Grow the intel network in the specified tag | |
guiboundsgui | Toggles GUI bounds debug | |
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. | |
highlight_encirclements | Toggle highlighting of detected encirclements | |
history_logger | Toggle history logger | |
human_ai | Toggles AI for Human countries | |
imgui | Controls ImGui UIs. See the sub commands. | |
instant_prepare | Instantly prepares naval invasions | |
instant_wargoal | Generation of wargoals are instant | |
instantconstructionic | Toggles instant construction cheat. | |
instantevents | Ignores event mth s | |
instantshiprefitisr | Toggles instant ship refitting cheat. | |
instanttrainingit | Toggles instant army training cheat. | |
InternationalMarket.AddSubsidyForTags | <CIC>, <Archetype>, <Tag> | Add a Equipment Subsidy to the player's international market. |
InternationalMarket.AddSubsidyForTrigger | <CIC>, <Archetype>, <ScriptedTrigger> | Add a Equipment Subsidy to the player's international market. |
InternationalMarket.CancelPurchase | <SellerTag>, <BuyerTag>, <ContractIndex> | Cancel the purchase contract between the seller and the buyer |
InternationalMarket.Dev.SetMarketRequestAutomation | <SendMarketAccess> | Set the market requests automation state |
InternationalMarket.ReleaseFromMarketStockpile | <EquipmentName>, <EquipmentAmount> | Release equipment to main stockpile from market stockpile |
InternationalMarket.RequestPurchase | <SellerTag>, <BuyerTag>, <PaidCivs>, <EquipmentName>, <EquipmentAmount> | Request Equipment Purchase. |
InternationalMarket.ReserveToMarketStockpile | <EquipmentName>, <EquipmentAmount> | Reserve equipment from main stockpile to market stockpile |
InternationalMarket.SetPriceLevel | <EquipmentName>, <Level> | Sets the price level for the given equipment in the Market Stockpile |
launch_nukeln | [Nuke Type], <Province ID>, ... | Launch nuke to any specified province(s) without checking any conditions. |
list_flags | <scope> | Lists all flags in a scope or for the selected country/state/unitleader |
list_hidden_focuseslist_hd | country tag | lists all of the hidden focuses from a country |
list_ideas | Dump all ideas to console (ministers or national spirits) | |
list_leader_modifiers | Lists the leader and unit modifiers on the leader of each selected army | |
list_modifiers | <scope> | Lists all modifiers in a scope or for the selected country/state/unitleader |
list_vars | <scope> | Lists all variables in a scope or for the selected country/state/unitleader |
lobby_id | Shows the Steam lobby id of the session | |
loc_check | Check for missing localization | |
loc_check_characters | Check characters for missing localization | |
loc_check_decisions | Check decisions for missing localization | |
loc_check_events | Check events for missing localization | |
loc_check_focuses | Check national focuses for missing localization | |
loc_check_modifiers | Check modifiers for missing localization | |
loc_check_national_spirits | Check national spirits for missing localization | |
lock_air_det | <CountryTag>, <Detection> (0.0-1.0) OPTIONAL | Locks Air Detection for a country, omit detection value to reset |
lock_air_eff | <CountryTag>, <Efficiency> (0.0-1.0) OPTIONAL | Locks Air Efficiency for a country, omit efficiency value to reset |
log_advisor_trait_errors | Logs all instances of unit leader advisors not having the corresponding unit leader traits. | |
manpower | <Amount> | Adds manpower to player |
mapmode | Mapmode type (int) | Change mapmode. |
mapnames | Toggle map names | |
mastery | mastery amount, [optional] track name | Give doctrine mastery, globally or to a specific track |
morehumanshumans | num | Adds more humans |
morehumanswithcountries | num | Adds more humans and assigns them to the highest scoring countries available |
moveunit | <Unit ID>, <Province ID> | Moves a unit to a province |
no_wargoal | No need to have a wargoal for declaring war | |
nomapicons | Toggles map icons. | |
nopausetext | Toggles the pausebanner for nicer screenshots. | |
nudge | Go to the nudge tool | |
nukesnuke | <count> | add nukes |
observespectator | Switches to play no country at all, and no longer shows messages or pauses the game | |
occupationpaintop | tag<OPTIONAL> | Toggles occupation painting. If specifying a tag, that country will be occupied. |
operation_debug | Operation ID, Target Tag | Allows to execute all operations. |
operation_start | Operation ID, Target Tag | Allows to execute all operations. |
operation_test_phase_selection | Operation ID, Target Tag | Test an operation phase. |
pause_in_hours | Pauses the game after X hours have passed after command is called | |
pause_on_trigger | Pauses the game when trigger activates | |
pppolitical_power | PP amount | Gives political power to player |
prep_for_war | <TAG> | Make AI country with specified TAG to prepare fight for another country |
prevent_operative_detection | Prevent a country from detecting and harming foreign operatives | |
prices | Price Info | |
print_controllers | Prints countries controlled by human players. | |
print_intel_network | Print intel network related information | |
print_intel_values | Print the intel a country has over another | |
print_operation_tokens | Runs a scripted effect on selected scope | |
print_radar_intel | Print the intel value breakdown generated by radar | |
PrintSynchStuff | Prints random count and seed | |
profile | <on> <off> <print> <clear> | profile options |
province_idspid | Show province IDs on the map | |
provtooltipdebugtdebug | Toggles the debug info in province tooltip | |
puppet | <Target Country Tag> | Puppets the specified tag |
railroads | Toggle rendering of railroads | |
random_seed | reseeds random with specified seed or reseeds random | |
rebuildlayers | Reload mapmodes. | |
reduce_opinion | <Country tag> | Reduce opinion to/from tag |
releaserls | Tag of a country to be released | Released a given country |
reload_keybinds | Reload keybind definitions and user overrides | |
reload_texturesrt, reload_texture | <optional file name filters...> | Reloads all textures, with an optional filter to reload only files that include the given text |
reloadfx | Arguments: map/mapname/postfx or *.fx filename | Reloads the shader |
reloadinterface | Reloads the entire interface | |
reloadoob | <Target Country Tag> | Reloads OOBs |
reloadtechnologies | Reloads the technology database | |
reloadweather | <randomseed> | Reload and regenerate weather |
remove_core | <Province ID> | Remove core |
remove_ideas | all|<idea1> <idea2> ... | Removes ideas (ministers or national spirits) with <ID> to the country. Use 'all' to remove them all |
rendertype | Reports what render backend is used | |
research | <slot id> or "all" | Researches an technology from research slot or all. |
research_fast | Base cost of every technology is set to 1 RP | |
research_on_icon_clickroic | Research a technology when clicking on technology tree icon | |
resign | Resign from the game | |
resistance | amount | increases decreases resistance in a state |
retire_country_leader | No description in the game | |
run | Runs the specified file with list of commands | |
savecheck | Makes a savegame (Test_01), loads the savegame, makes a new savegame (Test_02). Those savegames should look the same. | |
savegamesave | Creates a save file. | |
set_cosmetic_tag | <country tag>, <cosmetic tag> | Sets 'cosmetic tag' for a specified country |
set_country_flag | <flag name> | Sets country flag on specified TAG for a duration. Defaults to current country and value 1 with infinite duration. |
set_flag | <flag name> | Set a flag |
set_global_flag | <flag name> | Sets the specified global flag to a value. Defaults to 1 |
set_mud | Sets mud for the selected province | |
set_ruling_party | <ideology> | Sets ruling party for the country |
set_var | <var name> | Set a variable |
set_weather | <weather_type> | Sets the weather for the selected province (and corresponding region) |
setcontroller | country tag, province id | Sets province controller |
setowner | country tag, state id | Sets state owner |
SetRandomCount | Sets the randomcount to 0 or arg | |
show_all_medals | <bronze|silver|gold> | Show all medals as achieved in the grid without actually earning them. |
show_all_ribbons | Show all ribbons as achieved in the grid without actually earning them. | |
show_enemy_ships | Toggle always showing of enemy ships | |
show_focuses | shows all the hidden focuses | |
show_medal | <medal_token>, <bronze|silver|gold> | Show the popup for earning a medal without actually earning it. |
show_ribbon | <ribbon_token> | Show the popup for earning a ribbon without actually earning it. |
show_ships | Toggle always showing of player ships | |
show_xp_gainxp_gain | Show XP gain information. | |
simplified_transport | Toggle simplified naval transports | |
sp_add_mastermind | Add a scientist with max skill in all specializations | |
sp_add_scientist | <Level> (optional), <Specialization> (optional) | Add a scientist. Is specified a specialization and level that will be applied to the scientist. If no specialization is specified the level will be applied to all. ex: sp_add_scientist 3 nuclear sp_add_scientist 2 sp_add_scientist |
sp_add_selected_scientist_level | <Level>, <Specialization> (optional) | Add level and if specified, specifically to a specialization for a scientist. If no specialization is specified, the level will be added for each specialization. Requires the facility view with an attached scientist to be open. ex: sp_add_scientist_level 3 nuclear sp_add_scientist_level 2 |
sp_add_selected_scientist_trait | <Trait> | Add a trait to the scientist. Requires the facility view with an attached scientist to be open. ex: sp_add_scientist_trait my_trait_token |
sp_available | Trigger available returns true for all Special Projects. ex: sp_available | |
sp_breakthroughsp_br | <amount> optional <specialization> | Create breakthrough points. |
sp_fast | All phases in Special Projects take now 1 day to complete. For prototype phase, it's the iterations that will take 1 day. And it will require as many iterations as usual. ex: sp_fast | |
sp_instant | All started Special Projects finish on the daily tick. It skips the iterations of the Prototyping phase and their reward. ex: sp_instant | |
sp_prototype_rewardspr | Trigger a specified prototype reward during a project. | |
sp_remove_selected_scientist_trait | Remove a trait from the scientist. Requires the facility view with an attached scientist to be open. ex: sp_remove_selected_scientist_trait my_trait_token | |
sp_research_allsp_ra | Research all special projects. If no scientist exist it will create one, otherwise it will pick an arbitrary one. Imagine there is a secret hidden facility in a controlled province where the projects are researched. | |
sp_set_selected_scientist_level | <Level>, <Specialization> (optional) | Set level and if specified, specifically to a specialization for a scientist. If no specialization is specified, the level will be added for each specialization. Requires the facility view with an attached scientist to be open. ex: sp_set_scientist_level 3 nuclear sp_set_scientist_level 2 |
sp_unlock_all | All Special Projects are always visible and available. Whether or not the triggers returns true, and whether the parents are completed. ex: sp_unlock_all | |
spawn_3D_models | No description in the game | |
spawnactor | <Actorname>, <Province ID>, <Animation> OPTIONAL | Spawns an actor with an optional animation |
tag | <Country tag> | Switch tag to another country |
tag_color | Test setting a country's color | |
teleporttp | <province_id> | Teleports selected armies or ships to the specified province |
test_log | Enable / Disable tests | |
test_save_mode | Sets if save game for failed test should be for current or previous day | |
testevent | <Event ID>, <Character ID> | Tests an event without triggering it |
testrtti | <test case> | Tests performance for RTTI |
threattension | threat amount | Adds or show threat level of player |
time | What time is it? | |
timer | Prints out debug timing info | |
timer_dump | Dumps 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 | |
toggle_hidden_techstht | Toggle show/hide all hidden techs. | |
track_unit_controller_weightstrack_ucw | Will start tracking unit controller weights for current country, should be used together with debug_unit_controller_weights to view the data. | |
traderoutes | Toggle visibility of trade routes | |
triggert | <tag> scripted_trigger_name | Runs a scripted trigger on selected scope |
trigger_ability | <ability_name> | triggers an ability |
trigger_docseffect_docs, scripting_docs, docs | Print docs for triggers, effects and variables | |
unit_address | Get the address of the first selected unit, for debugging | |
unit_stats | lists stats of selected units | |
update_loc | localization tag | Updates the localization tag file |
updateequipments | Updates the equipment database | |
updatesubunits | Updates the subunit database | |
version | Show current game version | |
war_relations | <tag> | Prints war relations info |
weather | Toggle weather simulation | |
whitepeacewp | <country tags> | White peace with the specified countries. |
windowwnd | Arguments: open/close, window gui name | Opens or closes the specified window |
xp | XP amount | Gives Army, navy and air experience to player |