EU4Commands.com

on_action Console Command

Documentation and examples for the on_action command in Europa Universalis IV.

on_action

Events

Runs the given on_action

ParameterDescription
IdentifierTextrequired

Command builder

Fill in the parameters to build a ready-to-paste on_action command.

Identifier

Overview

Manually runs an on_action — one of the engine's scripted hooks that normally fire automatically on game events (monthly ticks, ruler death, and so on). Used to test the effects bound to a hook.

Frequently asked questions

How do you use the on_action command in EU4?

Open the console with the grave (`) key while in-game, type on_action followed by its parameters, then press Enter. The console can't be opened in Ironman games.

What does the on_action command do?

Runs the given on_action.

What are the parameters for the on_action command?

The syntax is on_action [identifier]. It takes one argument: identifier.

Does the on_action command require any DLC?

No. on_action is part of the base game and works without any DLC.

Can you use on_action in Ironman mode?

No. The console is disabled in Ironman games, so on_action can't be entered. Because achievements are only earned in Ironman, console commands like on_action can't be used to unlock them.