Unlock Conditions
Conditions can be used to keep pages, entries or whole categories hidden until the condition is met. This is useful to give players a sense of progression.
Most progression is now handled through the Research System. The condition types below cover the remaining non-research conditions.
Conditions are JSON Objects that can be set as value for the "condition" field on page, entry or category JSONs as follows:
"condition": {
"type": "<type>",
... //condition specific fields
},
Note that only one condition can be supplied per entry or category. If you want to combine multiple conditions, you can use the modonomicon:and or modonomicon:or condition types.
Available Condition Types
The following condition types are available:
modonomicon:research_node_unlocked— Gates behind a completed research nodemodonomicon:research_stage_completed— Gates behind a specific stage of a research nodemodonomicon:mod_loaded— Gates behind a loaded modmodonomicon:category_has_visible_entries— Gates behind category visibilitymodonomicon:and/modonomicon:or— Combine conditionsmodonomicon:true/modonomicon:false— Debug/placeholder
Common Attributes
The following attributes are available for all condition types:
type (String, mandatory)
The type of condition, it determines which loader is used to load the json data.
Needs to be fully qualified domain:name, e.g. modonomicon:research_node_unlocked.
tooltip (DescriptionId or Component JSON, optional)
Default Value: A tooltip that explains what needs to be done to unlock the entry based on the condition type.
The tooltip to display when hovering over the entry locked by this condition. Will only display while the entry is still locked.