EU4 assert Console Command

Documentation and detailed help with working examples.
assert Command
DeveloperDLC: None

This debug command asserts the specified trigger.

assert [Trigger]

Parameters

Trigger

The name of the trigger that you wish to assert.

Looking for EU4 console commands?

Search our complete list!

Quick Overview

The assert command in EU4 is used during the test phases of the game, specifically for debugging.

When a test is run and the conditions specified in the 'assert' command are not met, the test is marked as a failure.

It's essentially a way for the game developers to check if certain expected conditions are being properly fulfilled in the game's script or mechanics.

If things go as expected, the command does nothing. But if they don't, the assert command triggers an error.

Do note, this is mainly meant for game developers and modders, regular players usually don't need to use commands like these.

How to Open the Command Console

In EU4, cheats are executed from the command console, a text box that you type commands into.

To open the command console press the ~(tilde) key, which is typically located under ESC (escape).

If your keyboard does not have that key, or pressing ~ does not work, try the following keys:

  • ~
  • SHIFT + 2
  • SHIFT + 3
  • ALT + 2 + 1

Type your command into the console, and then press ENTER .