recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
recipes [2020/06/01 14:31] – [Recipe setup page] emozolyak | recipes [2020/06/01 15:13] – [Using recipes in scripts] emozolyak | ||
---|---|---|---|
Line 40: | Line 40: | ||
{{ :: | {{ :: | ||
- | When placing a list of recipes | + | ===== Using recipe |
- | * Category of recipes, or a complete list of all categories | + | When placing a recipes |
- | * Drop-down or multiline list | + | |
- | * Number of the register where the recipe number will change. (changing this register can be monitored in scripts when you need to perform some actions associated with this recipe) | + | |
- | * Whether to apply the recipe immediately or not (in the second case, only the register number will change where the current recipe number is stored) | + | |
- | {{ :recipe4.png?direct |dashboard}} | + | * // |
+ | * The // | ||
+ | * '// | ||
+ | * '// | ||
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | + | |
+ | {{ :: | ||
+ | |||
+ | If the user has right to edit the recipe, he can do this right in the selectoin box: | ||
+ | |||
+ | {{ quick_rcp_apply_edit.gif |}} | ||
+ | |||
+ | ===== Using recipes in scripts ===== | ||
+ | |||
+ | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | ||
+ | |||
+ | <code lua> | ||
+ | function | ||
+ | local id = GetReg(" | ||
+ | ApplyRecipe(id, userId) | ||
+ | AddInfoMessage(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | {{ recipe_in_scripts.gif? |
recipes.txt · Last modified: 2022/01/15 15:41 by 127.0.0.1