Console commands

From Europa Universalis 4 Wiki
Revision as of 12:09, 17 June 2019 by 2001:7d0:888b:2c80:a59c:286d:a6e0:9358 (talk) (List of commands)
Jump to navigation Jump to search
This page deals with commands used in the console. For the modding 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). 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.

Commonly used

Command Effect
cash (Insert Number) [<Country tag> OPTIONAL] Extra Money
manpower (Insert Number) [<Country tag> OPTIONAL] Extra manpower (in thousands)
sailors (Insert Number) [<Country tag> OPTIONAL] Extra sailors
prestige [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Adds prestige. Gives 5 prestige if no amount is given.
legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] Sets the legitimacy of the current ruler
adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get administrative power points (if not specified, gives 999)
dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get diplomatic power points (if not specified, gives 999)
mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get military power points (if not specified, gives 999)
yesman Toggle AI diplomatic responses (on: always accept; off: normal response)
fow Toggles fog of war on/off
ti Toggles terra incognita on/off
debug_mode Displays province ID, country tag, and border distance when mousing over provinces.

List of commands

DLC Command Description
absolutism [<Amount>] [<Target Country tag> OPTIONAL] Adds Absolutism to the player
Mandate of Heaven.png age [X] Sets the age of the game: 0 is Age of Discovery,1 is Age of Reformation,2 is Age of Absolutism and 3 is Age of Revolution.
age_ruler [<age> <Country tag> OPTIONAL] Set rulers age
age_heir [<age> <Country tag> OPTIONAL] Set heirs age
Rights of Man.png age_consort [<age> <Country tag> OPTIONAL] Set consorts age
Common Sense.png add_backer [<prov id>] The province becomes a backer of the current issue in the parliament.
add_baseunrest [<Province ID>] [<Base Unrest>] Adds base unrest to a province
add_cardinal Adds 1 new cardinal to a Catholic nation.
add_cb [<casus belli tag>] [<target country tag>] [<Actor Country tag> OPTIONAL] Add casus belli against target country
add_claim [<Province ID>] [<Country tag> OPTIONAL] Add claim
add_colonist [<Country tag>] Adds a colonist to a country.
Rights of Man.png add_consort [<Target Country Tag> OPTIONAL] [<Origin Country Tag> OPTIONAL] Adds a consort from a tag
add_core [<Province ID>] [<Country tag> OPTIONAL] Add core
add_devastation [<Province ID>] [<Devastation>] Adds devastation to a province
add_diplo [<Country tag> OPTIONAL] Adds diplomatic enroute
add_faction [<factionname>] Adds a Faction to your country
add_heir [<Target Country Tag> OPTIONAL] Adds an heir (The current heir is immediately killed.)
add_idea_group [<Idea group key>] [<Country tag> OPTIONAL] Adds the specified idea group
add_interest [<Country tag>] Add specified country tag to your interest
Common Sense.png add_issue [<issue tag>] Adds issue to a parliament.
add_liberty_desire [<Amount>] [<Target Country tag> OPTIONAL] Add liberty desire to the player
add_local_autonomy [<Province ID>] [<Amount>] Adds local autonomy to a province
add_loyalty [<Target Estate>] [<Amount>] Adds loyalty to target estate
The estates have the following identifier:
  • estate_church
  • estate_nobles
  • estate_burghers
  • estate_cossacks
  • estate_nomadic_tribes
  • estate_dhimmi
  • estate_brahmins
  • estate_maratha
  • estate_vaisyas
  • estate_jains
  • estate_rajput
add_missionary [<Country tag>] Adds a missionary to a country
add_natives [<ProvinceID>] [<Amount>] Add natives to given province (100× [<Amount>])
add_opinion [<Actor Country tag>] [<Target Country tag> OPTIONAL] Add opinion to/from tag
add_pa [<Country tag>] Add patriarch authority to tag
add_permanent_claim [<Province ID>] [<Country tag> OPTIONAL] Add permanent claim
add_pi [<Country tag>] Add papal influence to tag
add_prosperity [<Province ID>] [<Prosperity>] Adds prosperity to a province's state.
add_reformlevel [<Amount>] Adds imperial reforms to the Holy Roman Empire
add_republican_tradition [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get republican tradition
Rights of Man.png add_trait [<personality tag>, <heir> OPTIONAL, <consort> OPTIONAL] Add ruler personality
add_unrest [<CID Type>] [<CID Index>] [<Unrest>] Adds unrest to a faction
adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get administrative power (default value: 999)
admiral [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] Create an admiral
ai_army_tick [<Country tag> OPTIONAL] [<File name for logging> OPTIONAL] Makes ai reevaluate all army movements
ai_minister [<0 = army, 1 = diplomacy, 2 = trade>] Enables/Disables specific AI ministers
ai_plan_regions [<Country tag> OPTIONAL] Makes ai reevaluate all region assignments
ai(ai) [<Target Country Tag>] Enables/Disables AI for all nations or a specific tag
aiinvalid Print invalid AI command counts to ai.log
aiview Toggles additional AI info
annex [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Annexes the specified tag without adding cores
Cradle of Civilization.png army_drill [<AMOUNT [0.0, 100.0]>] [<Country tag> OPTIONAL] Sets drill for all your subunits
army_tradition [<Amount>] [<Target Country tag> OPTIONAL] Adds army tradition to the player
Cradle of Civilization.png army_professionalism [<Amount>] [<Target Country tag> OPTIONAL] Adds army professionalism to the player
assimilate [<Province>] [<Tag> OPTIONAL] Change ownership, core, set culture and religion
El Dorado.png authority [<AMOUNT>] [<Country tag> OPTIONAL] 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).
Mandate of Heaven.png banner [<Province ID>]] Raise the banners in a state.
bearhaslanded [<Province ID> OPTIONAL] An unwise command to use
Spawns Jan Mayen.
bird_mana [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get diplomatic power (default value: 999)
Wealth of Nations.png canals Debug canals on map
cash [<Amount> OPTIONAL] [<Target Country tag> OPTIONAL] Adds ducats to the treasury. Default is 5000 ducats.
center_of_trade(cot) [CoT Level] [<Province ID>] Create or upgrade/downgrade a center of trade.
change_culture_court [<ruler/heir/consort/admadv/dipadv/miladv>] [<Culture>] Changes the culture of a court member.
change_religion [<province ID>/<Target Country tag>] [<religion>] Change religion of a province or country
The religions have the following identifier:
  • Catholic: catholic
  • Protestant: protestant
  • Reformed: reformed
  • Anglican: anglican
  • Orthodox: orthodox
  • Coptic: coptic
  • Sunni: sunni
  • Shia: shiite
  • Ibadi: ibadi
  • Theravada: buddhism
  • Vajrayana: vajrayana
  • Mahayana: mahayana
  • Confucian: confucianism
  • Shinto: shinto
  • Hindu: hinduism
  • Sikh: sikhism
  • Animist: animism
  • Fetishist: shamanism
  • Totemist: totemism
  • Inti: inti
  • Nahuatl: nahuatl
  • Mayan: mesoamerican_religion
  • Norse: norse_pagan_reformed
  • Tengri: tengri_pagan_reformed
  • Jewish: jewish
  • Zoroastrian: zoroastrian
Additional religions in converted CK2 games:
  • Nestorian: nestorian
  • Fraticelli: fraticelli
  • Cathar: cathar
  • Messalian: messalian
  • Waldensian: waldensian
  • Lollard: lollard
  • Monophysite: monophysite
  • Bogomilist: bogomilist
  • Monothelite: monothelite
  • Iconoclast: iconoclast
  • Paulician: paulician
  • Zikri: zikri
  • Yazidi: yazidi
  • Kharijite: kharijite
  • Druze: druze
  • Hurufi: hurufi
  • Mazdaki: mazdaki
  • Manichean: manichean
  • Samaritan: samaritan_faith
  • Karaite: karaite_faith
  • Jainism: jain
  • Romuva: baltic_pagan_reformed
  • Hellenic: hellenic_pagan
  • Slavic: slavic_pagan_reformed
  • Suomenusko: finnish_pagan_reformed
  • Zunist: zun_pagan_reformed
  • Bön: bon
change_religion_court [<ruler/heir/consort/admadv/dipadv/miladv>] [<Religion>] Changes the religion of a court member.
check_save Check save and load persistence
Common Sense.pngRule Britannia.png church_power [<Amount>] [<Target Country tag> OPTIONAL] Adds church power to the player (Protestant and Anglican religion)
clear Clears the console
clearae [<Against Country Tag>, <By Country Tag (empty for all)>] Clears Aggressive Expansion
clearreforms [Target tag <optional>] Removes all government reforms
Rights of Man.png clr_consort_flag [<Tag>] [<Flag>] Clears a flag from a consort
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 [province ID] Colonizes and cores an 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.

combat_dice [number] Fixes combat dice to a number you specify. -1 gives random dicerolls like normal.
combatsound How often does the combat view give a random sound? 0-50
control(controll) [<Province ID>] [<Country tag> OPTIONAL] Change controller
corrupt [<AMOUNT>] [<Country tag> OPTIONAL] Sets the corruption of the country to the given amount.
country_modifier [<country tag>] [<Modifier type>] Show country modifier values.
create_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] The specified tag becomes a march (of the actor country).
ct Puts timer info in clipboard
culture [<Province ID>] Changes culture on a province to your primary culture
cv Prints the game version, and copies to clipboard.
date [date in format yyyy.mm.dd] Changes current date
debug_info Toggles Debug info
debug_mode Makes some debug features available. Displays province 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 [<Country tag> OPTIONAL] Delete wars without removing truces
die(kill) [<Target Country Tag> OPTIONAL] The ruler (of the specified country) is killed.
dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get diplomatic power (default value: 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 [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Discover capital of target tag
El Dorado.png doom [<AMOUNT>] [<Country tag> OPTIONAL] Add to a country's doom (Nahuatl religion)
echo [Echo] Echoes the arguments in the console (also useful for commenting script files)
economy [] Prints out global economy statistics to game.log
embrace [<Province ID>] [<institution name> optional] Embraces an institutions in a province. If left blank, all institutions will be embraced.
The institution has the following identifier:
  • Feudalism: feudalism
  • Renaissance: renaissance
  • Colonialism: new_world_i
  • Printing Press: printing_press
  • Global Trade: global_trade
  • Manufactories: manufactories
  • Enlightenment: enlightenment
enable_game_controller
epicfail [<Target Country Tag> OPTIONAL] Makes all spies of target country fail
event [event id] [<Target Country Tag> OPTIONAL] [<Option id> OPTIONAL] Executes an event
exhaust [<Amount>] [<Country tag> OPTIONAL] Alter your war exhaustion
fast_colonize Toggles the fast colonize cheat.(affects AI as well)
fast_diplo Ignore the date check for enroute diplomats
The Cossacks.png favors [<Target Country tag>] [<Amount>] Adds favors with target country
Wealth of Nations.png fervor [<Amount>] [<Target Country tag> OPTIONAL] Adds fervor to the player (Reformed religion)
findcommands [<Search string>] Finds console commands
flagship_galley [<Ship Name>] [<Ability 1>] [<Ability 2>] [<Ability 3>] Creates a galley as flagship. Abilities are mass_load_cannons - 15% more cannons on flagship, trade_route_map - +1 Trade Power for all ships in fleet (not only lightships), command_aftercastle - +5% Morale to Ships in Fleet, improved_crows_nest - +3 Engagement Width, mortars - +1 Blockade Impact on Siege, standardized_signal_book - +1 Movement Speed for every ship in Fleet, hull_sheating - +1 Movement Speed for every ship in Fleet, portuguese_navigators - +100 Exploration Mission Range, portuguese_bombardier - -50% Naval Barrage Cost, portuguese_trade_route_map - +2 Trade power for every ship in the fleet, spanish_grand_armada - -30% Attrition for fleet, spanish_treasure_fleet - Cannons count twice for hunting pirates, spanish_mass_load_cannons - 30% More cannons on Flagship, dutch_courage - 10% Morale bonus in fleet, portuguese_corps_of_fusiliers - 66% faster Army movement speed onto and off fleet, integrated_marines - 33% faster Army movement speed onto and off fleet, scandinavian_flag_officers - +30% admiral skill gain on missions, flag_officers - +10% admiral skill gain on missions, spare_jolly_roger - +25% privateering efficiency in fleet, captains_log - gives +1 naval tradition in fleet and +1 prestige from battles in fleet
flagship_heavy Creates a heavy ship as flagship.
flagship_light Creates a light ship as flagship.
form_union [<Country tag>] [<Country tag> OPTIONAL] Forms Union with target
fow(debug_fow) [<Province ID> OPTIONAL] 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
Mandate of Heaven.png golden_age [<Country tag>] Starts a golden age in that country.
Third Rome.pngCradle of Civilization.png government_power(russian) [<Amount> OPTIONAL] Grants full government ability points or specified amount.
Works for Russian government types added in Third Rome (e.g. Principality/Tsardom) as well as governments added/updated in Cradle of Civilization (e.g. Mamluk)
Mandate of Heaven.png harmonization [<AMOUNT [0.0, 1.0]>] [<Country tag> OPTIONAL] Sets to country's Harmonization progress (Confucian religion)
Mandate of Heaven.png harmony [<AMOUNT>] [<Country tag> OPTIONAL] Adds harmony to the player (Confucian religion)
heir_history [] Prints out heir history
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.
highlight_islands [<threshold>]
The Cossacks.png horde_unity [<AMOUNT>] [<Country tag> OPTIONAL] Set the unity of a horde
ideadump Dump all countries that have generic national ideas to game.log
imperial_authority [<Amount>] [<Country tag> OPTIONAL] Increases the imperial authority of the emperor.
Mandate of Heaven.png incident [<IncidentTag>, <CountryTag> OPTIONAL] Trigger an incident for a country. (Shinto religion)
infinite_combat Infinite combat
inflation [<Amount>] [<Country tag> OPTIONAL] Changes inflation of the country
Rule Britannia.png innovativeness [<Amount> OPTIONAL] [<Country tag> OPTIONAL] Add Innovativeness (Default is 100)
insult [Sender] [Receiver] [Insult Index/Key] Sends a
integrate [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Integrates the specified tag into actor's country (adds cores)
invasion_target [<Province ID>] Force sets AI invasion target to province
Dharma.png invest [Investment Key] [Province ID] Toggles a Trade Company Investment defined by investment key in Trade Company defined by Province ID
Common Sense.png isolationism [level] Set your isolation level (Shinto religion)
Common Sense.png karma [<Amount>] [<Target Country tag> OPTIONAL] Adds karma to the player (Buddhist religions)
kill_advisors [<Country tag>] Kills all advisors in the court and from the pool
kill_cardinal [<Countrytag> OPTIONAL] Kills first cardinal in the list
Rights of Man.png kill_consort [<Target Country Tag> OPTIONAL] Kills your consort
kill_heir [<Target Country Tag> OPTIONAL] Kills the heir of a tag
kill_leader Kill a random leader with given death cause
leader [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] Creates a general with the given values.
leak Leaks memory
leak_gpu [Chunk size (bytes)] [Number of Chunks] Leaks GPU memory
legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] Set the legitimacy of the ruler
low_memory Simulates a low memory alert and tries to reduce memory usage
lucky [<Country tag> OPTIONAL] Toggles lucky nation status.
make_subject [<Tag>] [<Overlord tag> OPTIONAL] [<Subject type>] Make country a subject
Mandate of Heaven.png mandate [<Amount>] Changes mandate of the Emperor of China (to maximum without value).
manpower [<Amount>] [<Target Country tag> OPTIONAL] Adds manpower to pool (1000× [<Amount>]) (default 50)
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
Mandate of Heaven.png meritocracy [<AMOUNT>] [<Country tag> OPTIONAL] Set the meritocracy of the Chinese Emperor
mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get military power (default value: 999)
mission [Mission identifier] Toggles mission completion
morehumans(humans) [num] Adds more humans
msg Toggles all messages popup
native_uprising [<ProvinceID>] Create native uprising in given province
navy_tradition [<Amount>] [<Target Country tag> OPTIONAL] Adds navy tradition to the specified country
nextsong Changes the currently playing soundtrack.
nopausetext Toggles the pausebanner for nicer screenshots.
norevolts Toggles revolts
nowar Toggles AI war declarations
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
on_action [<Identifier>] Will run the giver on_action
oos Make the client go oos
own [<Province ID>] [<Country tag> OPTIONAL] Change ownership
own_core [<Province ID>] [<Country tag> OPTIONAL] Change ownership + add core
paper_mana [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get administrative power (default value: 999)
piety [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Adds piety. (Muslim religions) (default: +10)
pirate [<Province ID>] Starts a Pirate in a province
poll Polls valid Events
population [<ProvinceID>] [<Amount>] Adds population to a province. (Only for colonies.)
power [<stability/tech_table_key/idea_key>] [<Country tag> OPTIONAL] Adds the specified idea group
powerpoints [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get power in all powers.
Maximizes monarch points if no number specified.
powerspend [] Prints out global powerspend statistics to game.log
powerspend_count [] Prints out number of times powerspend was executed to game.log
prestige [<Amount>] [<Country tag> OPTIONAL] Changes prestige of the specified country. (default value: +6)
prices Price Info to game.log
print_flags Prints global flags
print_modifiers(file) Print gamestate modifiers to a file
The file will be in \Documents\Paradox Interactive\Europa Universalis IV\.
print_prov_flags [<Prov ID>] Prints province flags
PrintSynchStuff Prints random count and seed
province_modifier Show province modifier values.
reform [<Target Province ID>] Begin reformation in the specified province ID
reformprogress [Points to add] [Target tag <optional>] Adds Government reform progress (Default is 500.)
refresh_knowledge [] Will recalc bunch of stuff like neighbours, idea rules, etc.
refreshknowledgecount [] Refresh knowledge perf couner
reinitchat [] Posts a CChatSyncAllCommand
Cradle of Civilization.png religious_school [School] [<Target Country tag> OPTIONAL] Sets religious school for target country
The religious schools have the following identifier:
  • hanafi_school
  • hanbali_school
  • maliki_school
  • shafii_school
  • ismaili_school
  • jafari_school
  • zaidi_school
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>] [<target country tag>] [<Actor Country tag> OPTIONAL] Remove casus belli from target country
remove_claim [<Province ID>] [<Country tag> OPTIONAL] Remove claim
remove_core [<Province ID>] [<Country tag> OPTIONAL] Remove core
remove_defender_faith Removes the defender of the Faith for the players religion
remove_interest [<Country tag>] Removes specified country tag from your interest
remove_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Revokes march status of the specified country (with its normal effects).
remove_rival [<Country tag>] Removes a rival.
Rights of Man.png remove_trait [<personality tag>] Remove ruler personality.
rendertype Reports what render backend is used
repair [<Country tag>] Repairs all ships of country
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_powerspend [] Resets global powerspend statistics
Common Sense.png reshuffle_seat_bribes Will reshuffle all the seat bribes
revolt [<Province ID>] Starts a Revolt in a province
revolution_target [<CountryTag>] Sets the revolution target.
rgb(rgb) [<Amount>] Prints desired amount of random color values to game.log
run [] Runs effects in specified file.
Example: run my_script.txt
By default looks in \Documents\Paradox Interactive\Europa Universalis IV\ for files.
For mods, the game will look in \Documents\Paradox Interactive\Europa Universalis IV\mod\name_of_mod\.
run_commands Runs the specified file with list of console commands.
runyear [<year>] [<command filename>] Runs command once we reach year.
sailors [<Amount>] [<Target Country tag> OPTIONAL] Adds sailors (default value: 5000)
savegame Creates an savefile.
score Score data dumped to game.log
selflearningai Enables/Disables Self-Learning AI
set_base_manpower [<province id>, <value>] Sets base manpower of province to value.
set_base_production [<province id>, <value>] Sets base production of province to value.
set_base_tax [<province id>, <value>] Sets base tax of province to value.
Rights of Man.png set_consort_flag [<Tag>] [<Flag>] Sets a flag for a consort
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>] [<Amount>] Sets the missionary progress for a province.
SetRandomCount Sets the randomcount to 0 or arg
show_ideas [<Country tag>] National ideas of the specified country dumped to game.log
siege [<Province ID>] Wins the siege in the specified province
smoothframelog Toggles smooth frame logging
spawn [<Province ID>] [<SubUnit Type>] Spawns an 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>] [<Province ID>] [<Animation> OPTIONAL] Spawns an actor with an optional animation
spawn_all_units [<Animation state>] Spawns all units in capital for all existing countries. Requires unit_tester mod under Art/Test Resources enabled.
spectate(spectate) Goes into Spectator mode
splendor [<Amount>] [<Target Country tag> OPTIONAL] Adds splendor to the player (Default: 1000)
spritelevel [<Sprite level>] Sets a forced sprite level. Specify no argument to reset.
spynetwork [<Target Country tag>] [<Amount>] Adds spy network with target country
stability [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Changes the stability of the specified country (to maximum without value)
startup_screen Creates a new startup screen.
state [<Province ID>] Toggles State for owner of region of province.
stats Stats dumped to game.log
stop [<YYYY.MM.DD>] Pauses the game at a specified date
surrender Surrender
sword_mana [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] Get military power (default value: 999)
syntheticdawn [<Target Tag> OPTIONAL] Specified country changes to Synthetics
tag [<Country tag>] Switch tag to another country
tech [<AMOUNT>] Gets levels in all technology types
test [<test ID>] Runs a code test
test_achievement [<achievement>] tests a specific achievement
testevent [<Event ID>] [<Character ID>] Tests an event without triggering it
test_neighbour [<Tag>] Will tell you if target Tag counts as neighbour to your country
texture_usage Prints texture usage to memory.log
ti(debug_ti) Toggles Terra Incognita on/off
time Displays the current time in the command box.
timer Prints out debug timing info
timer_dump Dumps debug timing info to logs
timer_reset Resets debug timing
timer_restart Restarts (resets and starts) debug timing
timer_show Shows live timing data
timer_start Starts debug timing
timer_stop Stops debug timing
touch_test Testing touch
Mandate of Heaven.png tributary [<Tag>] Make country a Tributary State
trust [<Target Country tag>] [<Amount>] Adds trust with target country
update_loc [localization tag] Updates the localization tag file
validateevents Validates all events without triggering it
vassalize [<Target Country Tag>] [<Actor Country tag> OPTIONAL] Vassalize the specified tag
verify_loc Verifies the localization keys
Unlocalized keys are written to error.log.
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
writetestentities Writes test entities for all countries to local_temp.log.
yesman Toggles AI positive responses (on: always accept; off: normal response)
zombie zombie army debug on/off

Casus belli IDs

For use with add_cb and remove_cb.

List of events

Event ID Name of event Event's effect
5056 Diplomatic Insult Get Diplomatic Insult CB on neighbor / +60 opinion to neighbors
2001 The Protestant Reformation The capital of the country:
  • changes its religion to ProtestantismProtestant.
  • becomes a Protestant Center of reformation.png center of reformation.
  • gets the modifier “Religious Zeal” for 9000 days with the following effect:
    • Local missionary strength.png −100% local missionary strength.

The country and its capital are marked as ‘birthplace of the Reformation’.

5073 [<Province ID>] New Land Claimed Tax Base Icon.png+1 base tax / Manpower.png+1 base manpower/ Production.png+1 base production
flavor_jap.15 The Za Mercantilism.png+3% mercantilism
flavor_sco.8 The Glasgow Chamber of Commerce Mercantilism.png+5% mercantilism
colonial.12 [<Province ID>] The Call of the Hunt Sets trade good to Fur.pngfur
colonial.13 [<Province ID>] Fur Trade Dwindles Sets trade good to Naval supplies.pngnaval supplies / Grain.pnggrain
colonial.18 [<Province ID>] New World Coffee Sets trade good to Coffee.pngcoffee
9520 [<Province ID>] Slavery Abolished in $ProvinceName$ Sets trade good to Unknownunknown
9469 Lux Stella gives choice between heir with at least a 6 in Military power.png / Administrative power.png / Diplomatic power.png
ideagroups.606 Improved Reputation Increase diplomatic reputation by 1 for 10 years.
700 Election! Allows player to gain 1Military power.png / 1Administrative power.png / 1Diplomatic power.png to the current leader (Will Replace Queen Regents and Regency Councils)
ideagroups.1801 Our Cause is Just Gives the "Just Causes" modifier for 10 years, reducing Aggressive Expansion by 20%
ideagroups.1 New Traditions & Ambitions Changes your national ideas to match your current country tag.

See also