EU4 set_flag Console Command

Documentation and detailed help with working examples.
set_flag Command
PlayerDLC: None

This command sets the specified global flag. Use clr_flag to remove.

set_flag [flag]

Parameters

flag

The name/key of the flag to set.

Looking for EU4 console commands?

Search our complete list!

Quick Overview

In Europa Universalis IV, the set_flag command is used to establish a global flag.

Flags are variables stored in the game's memory and can carry values such as true or false. These flags can be used in code to trigger conditions, events, or effects.

When set_flag is used, it creates a global flag, which is a flag that is relevant and accessible throughout the entire game.

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 .