This debug command asserts the specified trigger.
Trigger | The name of the trigger that you wish to assert. |
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.
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:
Type your command into the console, and then press ENTER .