Hands-On Usage
modify_tech_sharing_bonus is commonly used in mods to dynamically adjust the research sharing benefits of a specific technology sharing group. For example, when a player completes a national focus or meets certain conditions, it can reward them with higher technology sharing bonuses within the Commonwealth research group. It is also frequently seen in event triggers that temporarily increase or decrease research sharing efficiency among allies, simulating the deepening or breakdown of cooperative relationships.
# Increase Commonwealth tech sharing bonus after completing a focus
focus = {
id = strengthen_commonwealth_research
...
completion_reward = {
modify_tech_sharing_bonus = {
id = commonwealth_research
bonus = 0.2
}
}
}
Synergy
[add_to_tech_sharing_group](/wiki/effect/add_to_tech_sharing_group): Usually first adds a country to a technology sharing group, then uses this command to adjust the group's bonus magnitude. Together they form a complete "join group + strengthen" workflow.
[add_tech_bonus](/wiki/effect/add_tech_bonus): When the shared bonus is insufficient to cover a critical technology, an additional one-time research award can be stacked as a supplementary measure.
[has_completed_focus](/wiki/trigger/has_completed_focus): Commonly serves as a trigger condition for events or decisions to determine whether the player has completed the corresponding cooperative national focus, then decides whether to execute this command to grant the bonus.
[add_ideas](/wiki/effect/add_ideas): Can simultaneously add an idea with technology sharing-related modifiers, working together with this command to form a multi-layered research bonus system.
Common Pitfalls
- Incorrect or non-existent
id: The id must correspond to an already-defined technology sharing group name in the game or mod (declared in technology_sharing_groups). If a non-existent group name is entered, the command will silently fail without error reporting, and the bonus will not take effect—making it extremely difficult to debug.
- Accumulation without limit awareness: When the same event or focus is triggered multiple times, the
bonus from this command will stack cumulatively. Beginners often forget to set protective conditions like has_country_flag, causing the bonus to be repeatedly added to abnormal values.