Wiki

trigger · is_in_tech_sharing_group

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks if country is member specified technology sharing group.
Example: is_in_technology_sharing_group = commonwealth_research

Hands-On Notes

Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.

Hands-On Usage

Commonly seen in technology sharing alliance scenarios, such as checking whether a country has joined a player-defined research sharing group to unlock exclusive decisions, national focuses, or advisors. Typical usage involves restricting certain benefits to group members only within available or trigger blocks.

# Example: A decision available only to tech sharing group members
some_decision = {
    available = {
        is_in_tech_sharing_group = commonwealth_research
    }
    cost = 50
    ...
}

Synergy

  • [add_to_tech_sharing_group](/wiki/effect/add_to_tech_sharing_group): Adds a country to a specified sharing group; paired with this trigger, it forms a complete logic loop of "join group → verify membership".
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Often used to allow joining a tech group only after completing a focus; combining the two creates dual-layer restrictions on reward triggers.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): Awards research bonuses after confirming membership; a common method for distributing exclusive rewards to sharing group members.
  • [any_allied_country](/wiki/trigger/any_allied_country): When iterating through allies with this trigger, you can count or filter how many allied countries belong to the same sharing group.

Common Pitfalls

  1. Group name casing and definition must match exactly: The value of is_in_tech_sharing_group is a string key that must match the group name in the technology_sharing_group definition file precisely. Even a single character difference will cause a silent failure (returns false) with no error message from the game.
  2. Mistaken use outside COUNTRY scope: This trigger only supports COUNTRY scope; placing it in STATE or CHARACTER condition blocks will result in non-functional logic. During debugging, ensure the current scope has been switched to the target country.