Hands-On Usage
give_market_access is commonly used in diplomatic events or after national focus completion to establish trade relations between two countries. It is particularly useful when a minor nation joins an economic union and automatically grants market access between members, or in colonial/puppet independence events to maintain economic ties between the overlord and the newly independent nation.
# Brazil-Argentina trade agreement event
country_event = {
id = south_america.5
...
option = {
name = south_america.5.a
ARG = {
give_market_access = BRA
}
add_opinion_modifier = { target = BRA modifier = trade_partner }
}
}
Synergy
[add_opinion_modifier](/wiki/effect/add_opinion_modifier): Market access is typically accompanied by diplomatic relation improvements. Adding opinion modifiers simultaneously makes the script logic more complete.
[create_import](/wiki/effect/create_import): After opening the market, immediately create specific resource import agreements to materialize the trade relations.
[diplomatic_relation](/wiki/effect/diplomatic_relation): Used to simultaneously establish ambassador relations or non-aggression pacts, forming a complete bilateral agreement framework together with market access.
[has_country_flag](/wiki/trigger/has_country_flag): Use flags to check if market access has already been granted before executing, preventing duplicate triggers.
Common Pitfalls
- Misconception about bidirectionality: The official documentation states that this effect grants mutual market access to both parties. Beginners sometimes mistakenly believe they need to call it separately within both country scopes, when in fact you only need to call it once within one country's scope. Duplicate calls won't cause errors but are redundant.
- Reversed scope causing ineffectiveness: This effect must be executed within a
COUNTRY scope. If mistakenly used directly within a STATE scope (such as inside every_owned_state), the script will fail to correctly resolve the target. You should first switch to country scope using OWNER or a specific country tag before executing the effect.