Hands-On Usage
has_market_access_with is commonly used in trade agreements, resource-sharing, or economic diplomacy mods to check whether the current country has established market access with a target country, thereby determining whether to unlock certain decisions, national focuses, or rewards. For example, in an economic cooperation mod, it can be used to restrict a decision to only be available when market access exists with a specific country:
available = {
has_market_access_with = GER
is_in_faction_with = GER
}
Synergy
[has_attache](/wiki/trigger/has_attache): Military attaches and market access typically represent different levels of bilateral relations. Using them together allows precise filtering of countries with "economic + military" dual cooperation.
[any_allied_country](/wiki/trigger/any_allied_country): When used in conjunction within an any loop, it can check whether market access has been established with any allied countries, suitable for multilateral trade assessments.
[create_import](/wiki/effect/create_import): After confirming market access, trigger import creation. This is the standard combined workflow of "check access first, then establish trade."
[has_collaboration](/wiki/trigger/has_collaboration): Market access and collaboration level are often judged simultaneously in economic infiltration or intelligence mods, representing different dimensions of relationship depth between two countries.
Common Pitfalls
- Forgetting scope switching when the target is a variable rather than a fixed tag: This trigger's target supports pronouns like
THIS and ROOT, but if you write a country tag directly (such as GER), you must ensure the current scope is COUNTRY. It cannot be called directly under STATE scope, otherwise the script will fail silently or throw an error.
- Mistakenly assuming market access is symmetrical:
has_market_access_with = GER checks whether the current country has market access to GER; it does not mean GER also has access to the current country. Bidirectional checks require separate verification under two different scopes.