Dependency-aware meaning that if you try to craft Deadly Arrowheads but in your inventory you have arrowheads, Bloodseeker oil, and Bloodhunter oil it will first craft greater arrowheads, then craft deadlies.
There's no configuration needed other than your success % dialog has to be disabled. Just load the meta and in any channel type "!make X Recipe" with X being the number of items you want to make and Recipe being the case-sensitive name of the item you want to craft. It does require Mag-Tools to be installed as VTank expressions can not apply one item to another item of the same name, while Mag-Tools can. So Mag-Tools usei command is used for the actual crafting part.
If you have all the items needed to craft your request, down to the very bottom of the pyramid of requirements, it will craft X amount of items then stop. If runs out of base components (components that it can not craft, or tools) then it will just reset to the default state. When it is finished it will say "Finished".
The recipes included are from wubbie's recipe list. Anything that consists of one item being applied to another item will work and can be added. If you look at any item state you can see how the recipes are constructed. Every recipe is a single rule in a single state. The name of the state must be the exact case-sensitive name of the item.
Healing Carrot Cake:
Code: Select all
State: Healing Carrot Cake
Condition: Always
Action: All {
ExprAct setvar[use, Health Oil]
ExprAct setvar[on, Carrot Cake]
ExprAct setvar[skill, Cooking]
ExprAct setvar[difficulty, 100]
Call: CraftLoop, return to: CraftLoopReturn
}
To do:
- Add some sort of skill check. Will need to fill in missing skills and difficulties first.
- Attempt to use Mag-Tools to make the meta interact with the success % dialog.
- Add meaningful error message when a component is missing.
- Add more recipes.