Hands-On Usage
When adding entry condition thresholds for custom factions in mods, you can use this effect to restrict the minimum requirements for member upgrade groups. For example, requiring allies to reach certain industrial or military standards before triggering specific faction upgrades. A typical scenario is dynamically adjusting faction upgrade thresholds after national focuses or decisions are completed to align with narrative progression.
# After a country completes a focus, set the minimum requirements for faction member upgrade groups
focus = {
id = tighten_faction_standards
...
completion_reward = {
set_faction_member_upgrade_min = {
upgrade = my_faction_military_upgrade
}
}
}
Synergy
[faction_upgrade_level](/wiki/trigger/faction_upgrade_level): Check the current faction upgrade level first, then decide whether to invoke this effect to raise the minimum threshold, avoiding repeated overwrites.
[add_faction_goal](/wiki/effect/add_faction_goal): Pair with faction goal settings; when the faction's overall objective reaches a certain stage, synchronously update the upgrade minimum requirements to keep faction development logic consistent.
[has_completed_faction_goal](/wiki/trigger/has_completed_faction_goal): Verify whether a specific faction goal has been completed before adjusting upgrade thresholds, ensuring the trigger sequence is correct.
[every_faction_member](/wiki/effect/every_faction_member): After iterating through all faction members to check their status, invoke this effect within the faction leader's scope to ensure modification timing matches the members' actual capabilities.
Common Pitfalls
- Scope Confusion: This effect must be executed within the COUNTRY scope (the faction leader or relevant country). If mistakenly written in STATE or another scope, it will cause script errors or silent failures. Use
error.log during debugging to confirm scope hierarchy.
- upgrade Token Mistakes: The
upgrade field must reference an actual TOKEN defined in the faction_member_upgrades definition file. If the spelling is incorrect or it references an upgrade group not belonging to the faction, the game will not issue an obvious error, and the threshold setting will be silently ignored.