Scripted Triggers

Create reusable boolean trigger blocks for Victoria 3 mod content.

21|8|Updated Jun 23, 2025
One-click install
npx skills add https://github.com/mattia2110/tech-and-res --skill scripted-triggers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Scripted Triggers
Source: https://github.com/mattia2110/tech-and-res/tree/main/.agents/skills/scripted_triggers
Command: npx skills add https://github.com/mattia2110/tech-and-res --skill scripted-triggers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps modders standardize and reuse boolean trigger logic for Victoria 3, reducing duplication and confusion across events, journal entries, scripted buttons, and AI systems.

Core Features & Use Cases

  • Create reusable trigger blocks that can be referenced by multiple game systems.
  • Centralize complex conditional logic to improve readability, debugging, and maintenance.
  • Align tooltip and scope considerations with consuming systems for consistent UI and behavior.

Quick Start

Create or review a reusable scripted trigger in common/scripted_triggers for the target condition used by events, journal entries, or scripted buttons.

Frequently Asked Questions about Scripted Triggers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable boolean triggers for Victoria 3 mods?

Reusable boolean triggers in Victoria 3 are created by defining scripted trigger blocks in the common/scripted_triggers directory. This standardizes conditional logic for events, journal entries, and AI systems, reducing duplication across your mod.

What is the best way to simplify complex conditional logic in Victoria 3 events?

Simplifying complex conditional logic in Victoria 3 is achieved by centralizing conditions into scripted triggers. This improves readability and maintenance by allowing multiple game systems to reference a single, stable trigger key.

Can I use custom tooltips with scripted triggers in Victoria 3?

Yes, scripted triggers in Victoria 3 support optional tooling including custom_tooltip features. This aligns tooltip presentations and scope considerations with consuming systems for consistent UI behavior.

How do scripted triggers apply to AI logic and scripted buttons in Victoria 3?

Scripted triggers apply to AI logic and scripted buttons by providing a reusable boolean block that these systems reference. This ensures stable conditional evaluation across various Victoria 3 game mechanics.

Does Victoria 3 support overriding existing scripted triggers safely?

Yes, Victoria 3 supports safe reuse of scripted triggers across consumers using REPLACE and REPLACE_OR_CREATE patterns. This allows modders to override or extend existing trigger logic without causing conflicts.

Why are my Victoria 3 scripted triggers causing scope errors in events?

Scope errors in Victoria 3 scripted triggers occur when the trigger block lacks clear scope guidance. Defining stable trigger keys with proper front-end metadata and scope alignment ensures consuming systems evaluate conditions correctly.