Hands-On Usage
Use this effect to directly override the base assignment cost of a Military Industrial Organization's design team when you need permanent changes to occur following specific events or decisions. Typical scenarios include reducing the daily political point consumption of an MIO following a nation's completion of certain technologies or national focuses, reflecting rewards for improved industrial maturity.
# After completing a decision, adjust the assignment base cost of the specified MIO to a lower value
complete_national_focus = {
mio:my_armor_mio = {
set_mio_design_team_assign_cost = 0.1
}
}
Synergy
[add_mio_design_team_assign_cost](/wiki/effect/add_mio_design_team_assign_cost): When you need to make relative increases or decreases to the existing base value rather than direct replacement, prioritize this command instead. The two can be combined by first setting to a baseline value and then making fine-grained adjustments with add.
[set_mio_industrial_manufacturer_assign_cost](/wiki/effect/set_mio_industrial_manufacturer_assign_cost): A similar "set assignment cost" command targeting the industrial manufacturer role. Both are commonly used side-by-side in the same MIO initialization block to uniformly manage costs across different task modes.
[is_mio_assigned_to_task](/wiki/trigger/is_mio_assigned_to_task): Use as a conditional check before executing cost adjustments to ensure the cost override only applies when the MIO is in a specific task state, avoiding logical conflicts.
[has_mio_size](/wiki/trigger/has_mio_size): Frequently paired with the above, determining whether to trigger cost rewriting based on the MIO's current size tier, enabling a tiered design where "larger MIOs have lower assignment costs."
Common Pitfalls
- Misusing negative values: This effect explicitly does not accept negative inputs. If a potentially negative
var:xxx is passed through a variable, the game will not error but behavior is undefined. Always ensure the variable is non-negative using a trigger or clamp before assignment.
- Confusing the override logic of set versus add:
set_mio_design_team_assign_cost directly replaces the base value rather than stacking on top of the original. Beginners often repeatedly call this in looping events, causing the cost to be reset rather than cumulatively reduced. You must read the current value first before deciding whether to use set or add.