Hands-On Usage
In Military Industrial Organization (MIO) related mods, add_mio_task_capacity is particularly useful when you want to reward players with additional task slots by completing certain traits or triggering events. For example, you can design an organizational trait called "Expand R&D Department" that grants the MIO one extra task capacity when unlocked.
# In an event option, add task capacity to a specific MIO
mio:my_custom_mio = {
add_mio_task_capacity = 1
}
Synergy
[set_mio_task_capacity](/wiki/effect/set_mio_task_capacity): Use when you need to directly specify the final base capacity rather than apply an increment. Combining both allows you to set a baseline value first, then stack adjustments with add for clearer logic.
[add_mio_size](/wiki/effect/add_mio_size): Organization size (size) is often conceptually linked to the number of tasks that can be handled. Increasing organization size alongside task capacity ensures numerical balance in your design.
[has_mio_size](/wiki/trigger/has_mio_size): Check whether the MIO's current size meets the threshold before executing capacity adjustments, preventing premature or unreasonable capacity expansion.
[complete_mio_trait](/wiki/effect/complete_mio_trait): Completing traits and adjusting task capacity are often bound in the same execution block, forming a complete reward chain of "unlock trait → gain more task slots".
Common Pitfalls
- Forgetting to switch to INDUSTRIAL_ORG scope: This effect can only be executed within an MIO scope. Writing it directly in a country scope's
immediate block will cause errors or be ignored. You must enter the corresponding organization's scope first via mio:xxx = { ... }.
- Assuming negative values cause errors or cap at the base value: When reducing capacity to a negative number, the game silently clamps the final capacity to 0 without throwing an error, making it difficult to debug "capacity unexpectedly zeroed out" issues during development. It's recommended to use protective conditional checks like
[has_mio_size](/wiki/trigger/has_mio_size) before reduction operations.