Hands-On Usage
operative_leader_event is commonly used in intelligence mods to trigger narrative events after a spy executes a specific mission (such as infiltration, sabotage, or counter-intelligence), providing player feedback on mission outcomes or advancing the story. For example, when a spy is captured or completes an infiltration task, the corresponding event pops for the host country. Combined with the hours or days fields, you can create a sense of delay that simulates the realism of intelligence transmission.
# Triggers after a spy mission completes, with delayed reporting to the host country
operative_leader_event = {
id = spy_ops.5
days = 2
random_hours = 12
originator = FROM
tooltip = spy_ops.5.t
}
Synergy
[operative_leader_mission](/wiki/trigger/operative_leader_mission): Used in limit blocks to check the type of mission the operative is currently executing, ensuring only specific missions trigger this event and preventing event spam.
[harm_operative_leader](/wiki/effect/harm_operative_leader): Apply damage to the operative before triggering the event (such as reducing skill), then use this event to inform the player of the consequences, forming a complete "action—consequence—notification" flow.
[capture_operative](/wiki/effect/capture_operative): Execute the capture effect in the operative capture logic branch first, then use this effect to trigger the capture narrative event afterward; the two are semantically intertwined.
[is_operative_captured](/wiki/trigger/is_operative_captured): Use as a triggering condition to confirm the operative's captured status before deciding whether to send the corresponding event, avoiding narrative contradictions from state mismatches.
Common Pitfalls
- Incorrect scope prevents event from firing: This effect must be placed under
CHARACTER scope (i.e., the current scope is the operative character). If incorrectly placed in COUNTRY scope, it will error out or silently fail. Beginners often call this directly in the option block of a country_event and forget to switch to the operative's scope first.
- Unexpected recipient caused by default
originator/recipient behavior: When not explicitly specified, both default to the operative's host country. If the event logic requires distinguishing between "originator" and "recipient" (such as in cross-national spy events) but you forget to manually assign values, the event will be received by the wrong country, and this error won't trigger warnings in the logs, making it extremely difficult to debug.