Stellaris trigger_file Console Command

Documentation and detailed help with working examples.

trigger_file Command

Developer

This command triggers a script file, which can be used to automate certain game events or actions.

trigger_file [Script Name]

Parameters

Script Name
File Name
The name of the script (placed in your game's folder) without .txt. If your script was called example.txt, you would enter 'example'.

Examples

Here are examples of how to use trigger_file.

trigger example_2
This command tests the trigger script with ID 'example_2.'
Looking for Stellaris console commands?

Search our complete list!

Quick Overview

The trigger_file command in Stellaris is used to test trigger scripts in the game.

This allows developers or players to check if a specific script is working properly. However, if the command detects an issue or error with the script, it crashes the entire game.

This crashing is the intentional reaction and serves as an indication of a problem with the test script.

How to Open the Command Console

In Stellaris, 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 .

Was this helpful?