effect · select_tech_tree_icon_origin
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Override tech tree to use other countries icons
select_tech_tree_icon_originCOUNTRYnoneOverride tech tree to use other countries icons
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.
When your mod designs a completely new tech tree appearance for a nation but wants it to "borrow" another nation's icon style in display, select_tech_tree_icon_origin is extremely useful. For example, when creating puppet states or splitting nations, allowing newly formed nations to inherit their overlord/parent nation's tech tree icon set avoids missing or incorrect icon displays.
# Allow the newly independent nation to inherit Germany's tech tree icon style
REB = {
select_tech_tree_icon_origin = GER
}
[has_cosmetic_tag](/wiki/trigger/has_cosmetic_tag) — Commonly used to check whether the current nation has already applied a specific cosmetic tag, thereby deciding whether simultaneous replacement of the tech tree icon origin is needed to maintain visual consistency.[drop_cosmetic_tag](/wiki/effect/drop_cosmetic_tag) — When a nation switches or removes a cosmetic tag, the tech tree icon origin often needs to be reset as well; using both together ensures interface presentation stays synchronized.[add_ideas](/wiki/effect/add_ideas) — Within the same event or focus execution block, first assign ideas representing new forces, then set the icon origin—this is a standard combination for "nation transformation" operations.[has_completed_focus](/wiki/trigger/has_completed_focus) — Trigger icon origin override only after focus completion, ensuring the tech tree appearance changes only at specific historical moments and prevents premature activation.GER, USA). If the target nation does not exist in the game (such as not yet appeared or already eliminated), the icon origin will silently fail without error messages, but also without taking effect.[add_tech_bonus](/wiki/effect/add_tech_bonus) that genuinely affect research will lead to design logic errors.