Condition_IsMetRecipeRequirements
Description
Checks whether the starting conditions for the first step of the specified recipe are satisfied.
Self is used as the crafter entity and Target is used as the workbench entity. The crafting
policy determines how strictly the requirements are evaluated (e.g., CheckAll requires all
conditions to be met; CheckIngredient only checks ingredient availability).
Parameters
| Parameter | Description |
|---|
| BaseObject | Not directly used; Self is the crafter, Target is the workbench |
| CompareType | Equal: all first-step requirements are met; NotEqual: requirements are not met |
| S1 | Recipe ID from the crafting data table (row key) |
| S2 | Crafting policy type (e.g., CheckAll, CheckIngredient); defaults to CheckAll if omitted |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|
| Does self meet all requirements to start making BreadRecipe? | Self | IsMetRecipeRequirements | Equal | BreadRecipe | CheckAll |
| Does self meet requirements for PotionRecipe (ingredient only)? | Self | IsMetRecipeRequirements | Equal | PotionRecipe | CheckIngredient |
| Has self NOT met the requirements for SwordRecipe? | Self | IsMetRecipeRequirements | NotEqual | SwordRecipe | CheckAll |